@org.junit.Test public void testSetStatusNullClassMsg() throws Exception { System.out.println("testSetStatusNullClassMsg"); SetStatusRequestMsg req = new SetStatusRequestMsg(); StatusServiceImpl instance = new StatusServiceImpl(adminctx); try { SetStatusResponseMsg result = instance.setStatus(req); fail("unexpected success"); } catch (Exception ex) { } }
/** Test of removeStatus method, of class StatusServiceImpl. */ @org.junit.Test public void testRemoveStatusNullMsg() throws Exception { System.out.println("removeSttestRemoveStatusNullMsgatus"); RemoveStatusRequestMsg req = null; StatusServiceImpl instance = new StatusServiceImpl(adminctx); try { RemoveStatusResponseMsg result = instance.removeStatus(req); fail("unexpected success"); } catch (Exception ex) { } }
/** Test of getAllStatus method, of class StatusServiceImpl. */ @org.junit.Test public void testGetAllStatus() throws Exception { System.out.println("getAllStatus"); GetStatusRequestMsg req = null; StatusServiceImpl instance = new StatusServiceImpl(adminctx); try { List result = instance.getAllStatus(req); fail("unexpected success"); } catch (Exception ex) { } }
@org.junit.Test public void testRemoveStatusEmptyMsg() throws Exception { System.out.println("testRemoveStatusEmptyMsg"); RemoveStatusRequestMsg req = new RemoveStatusRequestMsg(); req.setClassification(new SecurityWrapper()); StatusServiceImpl instance = new StatusServiceImpl(adminctx); try { RemoveStatusResponseMsg result = instance.removeStatus(req); fail("unexpected success"); } catch (Exception ex) { } }
@org.junit.Test public void testRemoveStatusValidMsgUser() throws Exception { System.out.println("testRemoveStatusValidMsgUser"); RemoveStatusRequestMsg req = new RemoveStatusRequestMsg(); req.setClassification(new SecurityWrapper()); StatusServiceImpl instance = new StatusServiceImpl(userbobctx); try { req.getURI().add(url); RemoveStatusResponseMsg result = instance.removeStatus(req); fail("unexpected success"); } catch (Exception ex) { } }
@org.junit.Test public void testRemoveStatusValidMsgAdmin() throws Exception { System.out.println("testRemoveStatusValidMsgAdmin"); RemoveStatusRequestMsg req = new RemoveStatusRequestMsg(); req.setClassification(new SecurityWrapper()); StatusServiceImpl instance = new StatusServiceImpl(adminctx); try { req.getURI().add(url); RemoveStatusResponseMsg result = instance.removeStatus(req); assertNotNull(result); assertNotNull(result.getClassification()); } catch (Exception ex) { ex.printStackTrace(); fail("unexpected fault"); } }