Changeset 22 for issuevalue/src/test/java/geniusweb
- Timestamp:
- 09/22/20 16:26:36 (4 years ago)
- Location:
- issuevalue/src/test/java/geniusweb/issuevalue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issuevalue/src/test/java/geniusweb/issuevalue/BidTest.java
r4 r22 83 83 } 84 84 85 @SuppressWarnings("unused") 85 86 @Test 86 87 public void bidTestSimple() { … … 89 90 } 90 91 92 @SuppressWarnings("unused") 91 93 @Test(expected = IllegalArgumentException.class) 92 94 public void bidTestNull() { … … 96 98 } 97 99 100 @SuppressWarnings("unused") 98 101 @Test 99 102 public void bidTestOkIssueValue() { … … 148 151 } 149 152 153 @SuppressWarnings("unused") 150 154 @Test 151 155 public void smokeTestConstructor2() { … … 153 157 } 154 158 159 @SuppressWarnings("unused") 155 160 @Test 156 161 public void smokeTestConstructor2b() { … … 158 163 } 159 164 165 @SuppressWarnings("unused") 160 166 @Test(expected = NullPointerException.class) 161 167 public void smokeTestConstructor2Null1() { … … 163 169 } 164 170 171 @SuppressWarnings("unused") 165 172 @Test(expected = NullPointerException.class) 166 173 public void smokeTestConstructor2Null2() { -
issuevalue/src/test/java/geniusweb/issuevalue/NumberValueTest.java
r1 r22 17 17 import com.fasterxml.jackson.databind.ObjectMapper; 18 18 19 import geniusweb.issuevalue.NumberValue;20 import geniusweb.issuevalue.Value;21 19 import tudelft.utilities.junit.GeneralTests; 22 20 … … 88 86 public void testDeserializeShorts() throws IOException { 89 87 ObjectMapper jackson = new ObjectMapper(); 90 ArrayList list = jackson.readValue("[1,2,3,4,5]", ArrayList.class); 88 @SuppressWarnings("unchecked") 89 ArrayList<Integer> list = jackson.readValue("[1,2,3,4,5]", 90 ArrayList.class); 91 91 System.out.println(list); 92 92 System.out.println(list.get(0).getClass()); … … 97 97 public void testDeserializeMix() throws IOException { 98 98 ObjectMapper jackson = new ObjectMapper(); 99 ArrayList list = jackson.readValue("[\"short\",1,2,3,4,5]", 99 @SuppressWarnings("unchecked") 100 ArrayList<Object> list = jackson.readValue("[\"short\",1,2,3,4,5]", 100 101 ArrayList.class); 101 102 System.out.println(list);
Note:
See TracChangeset
for help on using the changeset viewer.