/**
  * Performs roundtrip test for the specified class.
  *
  * @param <TClass> Item class
  * @param item Item to be checked
  * @return Deserialized object after the roundtrip
  * @throws IOException JSON Conversion error
  * @throws AssertionError Validation error
  */
 @SuppressWarnings("unchecked")
 public static <TClass> TClass testRoundTrip(TClass item) throws IOException, AssertionError {
   return testRoundTrip(item, (Class<TClass>) item.getClass());
 }
 @Test
 public void testSum() throws Exception {
   Assert.assertEquals(4, tClass.Sum(2, 2));
 }
Exemple #3
0
 @Rename("getClass")
 public final TClass<?> getClass0() {
   return TClass.getClass(Platform.getPlatformObject(this).getPlatformClass());
 }
  @Test
  public void testDel() throws Exception {

    assertEquals(2, tClass.Del(4, 2));
  }