mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 05:27:17 +00:00
Rename the org.bitcoinj.core.CheckpointManagerTest test package to lowercase.
This commit is contained in:
@@ -34,28 +34,28 @@ public class CheckpointManagerTest {
|
|||||||
|
|
||||||
@Test(expected = NullPointerException.class)
|
@Test(expected = NullPointerException.class)
|
||||||
public void shouldThrowNullPointerExceptionWhenCheckpointsNotFound() throws IOException {
|
public void shouldThrowNullPointerExceptionWhenCheckpointsNotFound() throws IOException {
|
||||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/notFound");
|
expect(params.getId()).andReturn("org/bitcoinj/core/checkpointmanagertest/notFound");
|
||||||
replay(params);
|
replay(params);
|
||||||
new CheckpointManager(params, null);
|
new CheckpointManager(params, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IOException.class)
|
@Test(expected = IOException.class)
|
||||||
public void shouldThrowNullPointerExceptionWhenCheckpointsInUnknownFormat() throws IOException {
|
public void shouldThrowNullPointerExceptionWhenCheckpointsInUnknownFormat() throws IOException {
|
||||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/unsupportedFormat");
|
expect(params.getId()).andReturn("org/bitcoinj/core/checkpointmanagertest/unsupportedFormat");
|
||||||
replay(params);
|
replay(params);
|
||||||
new CheckpointManager(params, null);
|
new CheckpointManager(params, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = IllegalStateException.class)
|
@Test(expected = IllegalStateException.class)
|
||||||
public void shouldThrowIllegalStateExceptionWithNoCheckpoints() throws IOException {
|
public void shouldThrowIllegalStateExceptionWithNoCheckpoints() throws IOException {
|
||||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/noCheckpoints");
|
expect(params.getId()).andReturn("org/bitcoinj/core/checkpointmanagertest/noCheckpoints");
|
||||||
replay(params);
|
replay(params);
|
||||||
new CheckpointManager(params, null);
|
new CheckpointManager(params, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void canReadTextualStream() throws IOException {
|
public void canReadTextualStream() throws IOException {
|
||||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/validTextualFormat");
|
expect(params.getId()).andReturn("org/bitcoinj/core/checkpointmanagertest/validTextualFormat");
|
||||||
expect(params.getSerializer(false)).andReturn(
|
expect(params.getSerializer(false)).andReturn(
|
||||||
new BitcoinSerializer(params, false));
|
new BitcoinSerializer(params, false));
|
||||||
expect(params.getProtocolVersionNum(NetworkParameters.ProtocolVersion.CURRENT))
|
expect(params.getProtocolVersionNum(NetworkParameters.ProtocolVersion.CURRENT))
|
||||||
|
|||||||
Reference in New Issue
Block a user