mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
CheckpointManagerTest: Fix name of test data directory.
This commit is contained in:
parent
3f2a8f11c5
commit
b6360e0858
4 changed files with 4 additions and 4 deletions
|
@ -34,28 +34,28 @@ public class CheckpointManagerTest {
|
|||
|
||||
@Test(expected = NullPointerException.class)
|
||||
public void shouldThrowNullPointerExceptionWhenCheckpointsNotFound() throws IOException {
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointsManagerTest/notFound");
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/notFound");
|
||||
replay(params);
|
||||
new CheckpointManager(params, null);
|
||||
}
|
||||
|
||||
@Test(expected = IOException.class)
|
||||
public void shouldThrowNullPointerExceptionWhenCheckpointsInUnknownFormat() throws IOException {
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointsManagerTest/unsupportedFormat");
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/unsupportedFormat");
|
||||
replay(params);
|
||||
new CheckpointManager(params, null);
|
||||
}
|
||||
|
||||
@Test(expected = IllegalStateException.class)
|
||||
public void shouldThrowIllegalStateExceptionWithNoCheckpoints() throws IOException {
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointsManagerTest/noCheckpoints");
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/noCheckpoints");
|
||||
replay(params);
|
||||
new CheckpointManager(params, null);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void canReadTextualStream() throws IOException {
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointsManagerTest/validTextualFormat");
|
||||
expect(params.getId()).andReturn("org/bitcoinj/core/CheckpointManagerTest/validTextualFormat");
|
||||
expect(params.getSerializer(false)).andReturn(
|
||||
new BitcoinSerializer(params, false));
|
||||
expect(params.getProtocolVersionNum(NetworkParameters.ProtocolVersion.CURRENT))
|
||||
|
|
Loading…
Add table
Reference in a new issue