use of eu.ggnet.dwoss.uniqueunit.api.UnitShard in project dwoss by gg-net.
the class UnitOverseerRestIT method testUnit.
// WebClient an Aquillian are a little more difficult, if there is time .....
@Ignore
@Test
public void testUnit() throws InterruptedException {
uniqueUnits = receiptGenerator.makeUniqueUnits(4, true, true);
String refurbishId = uniqueUnits.get(0).getRefurbishId();
UnitShard unitShard = getWebClient().path(UnitOverseerRest.FIND_PATH).path(refurbishId).get(UnitShard.class);
assertThat(unitShard).isNotNull();
assertThat(unitShard.getRefurbishedId()).isEqualTo(refurbishId);
assertThat(unitShard.isAvailable()).isTrue();
}
Aggregations