Search in sources :

Example 6 with UnitShard

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();
}
Also used : UnitShard(eu.ggnet.dwoss.uniqueunit.api.UnitShard) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

UnitShard (eu.ggnet.dwoss.uniqueunit.api.UnitShard)6 UnitOverseer (eu.ggnet.dwoss.redtapext.ee.UnitOverseer)2 UniqueUnitEao (eu.ggnet.dwoss.uniqueunit.ee.eao.UniqueUnitEao)2 UniqueUnit (eu.ggnet.dwoss.uniqueunit.ee.entity.UniqueUnit)2 Result (eu.ggnet.dwoss.util.interactiveresult.Result)2 Position (eu.ggnet.dwoss.redtape.ee.entity.Position)1 UnitAvailabilityViewCask (eu.ggnet.dwoss.redtapext.ui.cap.UnitAvailabilityViewCask)1 StockUnitEao (eu.ggnet.dwoss.stock.ee.eao.StockUnitEao)1 StockUnit (eu.ggnet.dwoss.stock.ee.entity.StockUnit)1 HtmlPane (eu.ggnet.dwoss.util.HtmlPane)1 Tuple2 (eu.ggnet.dwoss.util.Tuple2)1 UserInfoException (eu.ggnet.dwoss.util.UserInfoException)1 Guardian (eu.ggnet.saft.core.auth.Guardian)1 JLabel (javax.swing.JLabel)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1