THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
@Test @Parameters({"true", "false"}) @TestCaseName("{method}({params})") public void testCopyOnReadWithBridgeServeruserFilesAreBackedUp(final boolean serializeEarlyuseRelativePath) throws Exception { |
This results in nicer test names in the results (ex: ClientDeserializationCopyOnReadRegressionTest):
Code Block |
---|
ClientDeserializationCopyOnReadRegressionTestFileSystemBackupWriterTest (org.apache.geode.internal.cache.backup) testCopyOnReadWithBridgeServeruserFilesAreBackedUp(true) testCopyOnReadWithBridgeServeruserFilesAreBackedUp(false) |
You can also use Strings that represent enums
(ex: CreateAndLocalDestroyInTXRegressionTest):
Code Block |
---|
private enum LocalOperation { LOCAL_DESTROY((region) -> region.localDestroy(KEY), TXStateStub_LOCAL_DESTROY_NOT_ALLOWED_IN_TRANSACTION), LOCAL_INVALIDATE((region) -> region.localInvalidate(KEY), TXStateStub_LOCAL_INVALIDATE_NOT_ALLOWED_IN_TRANSACTION); ... } @Test @Parameters({"LOCAL_DESTROY", "LOCAL_INVALIDATE"}) @TestCaseName("{method}({params})") public void createAndLocalOpShouldCreateEventWithNewValue(final LocalOperation operation) { |
...
Code Block |
---|
CreateAndLocalDestroyInTXRegressionTest createAndLocalOpShouldCreateEventWithNewValue CreateAndLocalDestroyInTXRegressionTest.createAndLocalOpShouldCreateEventWithNewValue(LOCAL_DESTROY) CreateAndLocalDestroyInTXRegressionTest.createAndLocalOpShouldCreateEventWithNewValue(LOCAL_INVALIDATE) |
Some good examples
- ClientDeserializationCopyOnReadRegressionTest
- CreateAndLocalDestroyInTXRegressionTest
- FileSystemBackupWriterTest