Package com.google.appengine.tools.mapreduce.testModels

Examples of com.google.appengine.tools.mapreduce.testModels.SampleClassWithNestedCollection


    BigQueryDataMarshallerTester<SampleClassWithNestedCollection> tester = new BigQueryDataMarshallerTester<SampleClassWithNestedCollection>(new BigQueryMarshallerByType<SampleClassWithNestedCollection>(SampleClassWithNestedCollection.class));
    List<List<String>> toTest = new ArrayList<>();
    toTest.add(Lists.newArrayList("", ""));
    try {
      tester.testGeneratedJson("{\"name\":\"test\",\"id\":1, \"value\":1.5}",
          new SampleClassWithNestedCollection(toTest));
    } catch (IllegalArgumentException e) {
      assertEquals(
          "Invalid field. Cannot marshal fields of type Collection<GenericType> or GenericType[].",
          e.getMessage());
      return;
View Full Code Here

TOP

Related Classes of com.google.appengine.tools.mapreduce.testModels.SampleClassWithNestedCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.