removed warnings
This commit is contained in:
parent
eed76e4518
commit
a52111e910
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="
|
||||
http://java.sun.com/xml/ns/javaee
|
||||
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
|
||||
</beans>
|
|
@ -154,7 +154,7 @@ public class TaskServiceImplTest {
|
|||
|
||||
@Test
|
||||
public void should_setTheReadFlag_when_taskIsRead() throws TaskNotFoundException {
|
||||
Task task = createUnitTestTask("1", "Unit Test Task 1", "1");
|
||||
createUnitTestTask("1", "Unit Test Task 1", "1");
|
||||
|
||||
Task readTask = taskServiceImpl.setTaskRead("1", true);
|
||||
Assert.assertTrue(readTask.isRead());
|
||||
|
|
|
@ -96,6 +96,7 @@ public class WorkbasketServiceImplTest {
|
|||
verify(workbasketMapper).insert(any());
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Test
|
||||
public void should_InitializeAndStoreWorkbasket_when_WorkbasketWithDistributionTargetsIsCreated() throws NotAuthorizedException {
|
||||
doNothing().when(workbasketMapper).insert(any());
|
||||
|
@ -141,6 +142,7 @@ public class WorkbasketServiceImplTest {
|
|||
verify(workbasketMapper).update(any());
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Test
|
||||
public void should_ReturnUpdatedWorkbasket_when_ExistingWorkbasketDistributionTargetIsChanged()
|
||||
throws NotAuthorizedException {
|
||||
|
@ -252,6 +254,7 @@ public class WorkbasketServiceImplTest {
|
|||
workbasketServiceImpl.checkAuthorization("1", WorkbasketAuthorization.READ);
|
||||
}
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@Test
|
||||
public void should_Pass_when_OperationIsAuthorized() throws NotAuthorizedException {
|
||||
when(taskanaEngine.getConfiguration()).thenReturn(taskanaEngineConfiguration);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE xml>
|
||||
<Configuration status="WARN">
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
|
|
|
@ -12,10 +12,6 @@ import javax.security.auth.spi.LoginModule;
|
|||
|
||||
public class SampleLoginModule implements LoginModule {
|
||||
|
||||
private Subject subject;
|
||||
private String password;
|
||||
private String username;
|
||||
|
||||
public boolean abort() throws LoginException {
|
||||
return true;
|
||||
}
|
||||
|
@ -26,16 +22,12 @@ public class SampleLoginModule implements LoginModule {
|
|||
|
||||
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState,
|
||||
Map<String, ?> options) {
|
||||
this.subject = subject;
|
||||
|
||||
try {
|
||||
NameCallback nameCallback = new NameCallback("prompt");
|
||||
PasswordCallback passwordCallback = new PasswordCallback("prompt", false);
|
||||
|
||||
callbackHandler.handle(new Callback[] { nameCallback, passwordCallback });
|
||||
|
||||
this.password = new String(passwordCallback.getPassword());
|
||||
this.username = nameCallback.getName();
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue