@Test public void shouldSaveCommodityActionWithDataSet() throws Exception { commodityService.initialise(new User("test", "pass")); Commodity testCommodity = commodityService.all().get(0); assertThat(testCommodity.getCommodityActionsSaved().size(), is(not(0))); CommodityAction actual = (CommodityAction) testCommodity.getCommodityActionsSaved().toArray()[0]; assertThat(actual.getCommodityActionDataSets(), is(notNullValue())); }
@Test public void shouldSaveCommodityCommodityActivities() { commodityService.initialise(new User("test", "pass")); Commodity testCommodity = commodityService.all().get(0); assertThat(testCommodity.getCommodityActionsSaved().size(), is(not(0))); }