[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 ch.eitchnet.privilege.model.Certificate;
|
||||
|
||||
/**
|
||||
* @author Robert von Burg <eitch@eitchnet.ch>
|
||||
*/
|
||||
|
@ -39,7 +41,12 @@ public class GreetingServiceTest extends AbstractServiceTest {
|
|||
GreetingArgument greetingArgument = new GreetingArgument();
|
||||
greetingArgument.name = "Robert"; //$NON-NLS-1$
|
||||
|
||||
GreetingResult greetingResult = serviceHandler.doService(null, greetingService, greetingArgument);
|
||||
assertThat(greetingResult.getGreeting(), containsString("Hello Robert. Nice to meet you!")); //$NON-NLS-1$
|
||||
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$
|
||||
} finally {
|
||||
getPrivilegeHandler().invalidateSession(certificate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<Runtime>
|
||||
<applicationName>StrolchPersistenceTest</applicationName>
|
||||
<Properties>
|
||||
<dataStoreMode>EMPTY</dataStoreMode>
|
||||
<verbose>true</verbose>
|
||||
</Properties>
|
||||
</Runtime>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<Runtime>
|
||||
<applicationName>StrolchPersistenceTest</applicationName>
|
||||
<Properties>
|
||||
<dataStoreMode>EMPTY</dataStoreMode>
|
||||
<verbose>true</verbose>
|
||||
</Properties>
|
||||
</Runtime>
|
||||
|
|
Loading…
Reference in New Issue