public abstract class LogTest extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LogTest.CountingReader |
protected static class |
LogTest.LatchMessageReader
Test MessageReader implementation.
|
protected static class |
LogTest.StoringReader |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SENDER_ID |
| Constructor and Description |
|---|
LogTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
mediumSendReceiveSerial() |
abstract LogManager |
openLogManager(String senderId,
boolean requiresOrderPreserving) |
void |
sendReceive(int readers,
int numMessages,
int delayMS,
boolean expectMessageOrder,
long timeoutMS) |
void |
setup(org.junit.jupiter.api.TestInfo testInfo) |
void |
shutdown(org.junit.jupiter.api.TestInfo testInfo) |
protected void |
simpleSendReceive(int numMessages,
int delayMS) |
void |
smallSendReceiveSerial() |
void |
testFuzzMessagesSerial() |
void |
testLogIsDurableAcrossReopenSerial() |
void |
testMultipleLogsWithSingleReaderSerial() |
void |
testMultipleReadersOnSingleLog() |
void |
testMultipleReadersOnSingleLogSerial() |
void |
testReadMarkerCompatibility() |
void |
testReadMarkerResumesInMiddleOfLog() |
void |
testSeparateReadersAndLogsInSharedManager() |
void |
testUnregisterReaderSerial() |
public static final String DEFAULT_SENDER_ID
public abstract LogManager openLogManager(String senderId, boolean requiresOrderPreserving) throws BackendException
senderId - The unique id identifying the sending instancerequiresOrderPreserving - whether it is required by the test case that write order is preserved when reading.BackendException@BeforeEach
public void setup(org.junit.jupiter.api.TestInfo testInfo)
throws Exception
Exception@AfterEach
public void shutdown(org.junit.jupiter.api.TestInfo testInfo)
throws Exception
Exception@Test
@Tag(value="requiresOrderPreserving")
public void smallSendReceiveSerial()
throws Exception
Exception@Test
@Tag(value="requiresOrderPreserving")
public void mediumSendReceiveSerial()
throws Exception
Exception@Tag(value="requiresOrderPreserving")
public void testMultipleReadersOnSingleLogSerial()
throws Exception
Exception@Test
public void testMultipleReadersOnSingleLog()
throws Exception
Exception@Test
public void testReadMarkerResumesInMiddleOfLog()
throws Exception
Exception@Test
@Tag(value="requiresOrderPreserving")
public void testLogIsDurableAcrossReopenSerial()
throws Exception
Exception@Test
@Tag(value="requiresOrderPreserving")
public void testMultipleLogsWithSingleReaderSerial()
throws Exception
Exception@Test
public void testSeparateReadersAndLogsInSharedManager()
throws Exception
Exception@Test
@Tag(value="requiresOrderPreserving")
public void testFuzzMessagesSerial()
throws Exception
Exception@Test
public void testReadMarkerCompatibility()
throws Exception
Exception@Test
@Tag(value="requiresOrderPreserving")
public void testUnregisterReaderSerial()
throws Exception
Exceptionprotected void simpleSendReceive(int numMessages,
int delayMS)
throws Exception
ExceptionCopyright © 2012–2024. All rights reserved.