Package test.utils.json.github

Examples of test.utils.json.github.MediaContent


    Assert.assertThat(o2.getList().get(1).get(1).getId(), is(1001));
  }
 
  @Test
  public void test6() {
     MediaContent record = MediaContent.createRecord();
     String json = Json.toJson(record);
      
       MediaContent r = Json.toObject(json, MediaContent.class);
       Assert.assertThat(r.getMedia().getPlayer(), is(Player.JAVA));
       Assert.assertThat(r.getImages().size(), is(2));
       Assert.assertThat(r.getImages().get(0).getSize(), is(Size.LARGE));
       Assert.assertThat(r.getImages().get(0).getHeight(), is(768));
  }
View Full Code Here

TOP

Related Classes of test.utils.json.github.MediaContent

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.