use of eu.ggnet.dwoss.stock.upi.impl.StockUpiImpl in project dwoss by gg-net.
the class ShipmentDialogTryout method testShipment.
@Test
public void testShipment() throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
Dl.local().add(Guardian.class, new AbstractGuardian() {
{
setRights(new Operator("Testuser", 0, Arrays.asList(AtomicRight.values())));
}
@Override
public void login(String user, char[] pass) throws AuthenticationException {
}
});
StockUpiImpl su = new StockUpiImpl();
su.setActiveStock(new PicoStock(0, "Demostock"));
Dl.local().add(StockUpi.class, su);
Dl.remote().add(StockAgent.class, new StockAgentStub());
ShipmentController controller = new ShipmentController();
ShipmentDialog dialog = new ShipmentDialog(new javax.swing.JFrame(), controller);
dialog.setVisible(true);
}
Aggregations