[New] Implemented EMPTY and TRANSIENT dataStoreModes.
Refactored Agent to be responsible for starting the container. And it requires the runtime configuration.
This commit is contained in:
parent
86db450fb6
commit
f49f113b70
|
@ -27,6 +27,8 @@ import li.strolch.service.test.GreetingService.GreetingArgument;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import ch.eitchnet.privilege.model.Certificate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Robert von Burg <eitch@eitchnet.ch>
|
* @author Robert von Burg <eitch@eitchnet.ch>
|
||||||
*/
|
*/
|
||||||
|
@ -39,7 +41,12 @@ public class GreetingServiceTest extends AbstractServiceTest {
|
||||||
GreetingArgument greetingArgument = new GreetingArgument();
|
GreetingArgument greetingArgument = new GreetingArgument();
|
||||||
greetingArgument.name = "Robert"; //$NON-NLS-1$
|
greetingArgument.name = "Robert"; //$NON-NLS-1$
|
||||||
|
|
||||||
GreetingResult greetingResult = serviceHandler.doService(null, greetingService, greetingArgument);
|
Certificate certificate = getPrivilegeHandler().authenticate("jill", "jill".getBytes()); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
|
try {
|
||||||
|
GreetingResult greetingResult = serviceHandler.doService(certificate, greetingService, greetingArgument);
|
||||||
assertThat(greetingResult.getGreeting(), containsString("Hello Robert. Nice to meet you!")); //$NON-NLS-1$
|
assertThat(greetingResult.getGreeting(), containsString("Hello Robert. Nice to meet you!")); //$NON-NLS-1$
|
||||||
|
} finally {
|
||||||
|
getPrivilegeHandler().invalidateSession(certificate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<Runtime>
|
<Runtime>
|
||||||
<applicationName>StrolchPersistenceTest</applicationName>
|
<applicationName>StrolchPersistenceTest</applicationName>
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<dataStoreMode>EMPTY</dataStoreMode>
|
||||||
<verbose>true</verbose>
|
<verbose>true</verbose>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Runtime>
|
</Runtime>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<Runtime>
|
<Runtime>
|
||||||
<applicationName>StrolchPersistenceTest</applicationName>
|
<applicationName>StrolchPersistenceTest</applicationName>
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<dataStoreMode>EMPTY</dataStoreMode>
|
||||||
<verbose>true</verbose>
|
<verbose>true</verbose>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Runtime>
|
</Runtime>
|
||||||
|
|
Loading…
Reference in New Issue