- @Test(expected = IllegalArgumentException.class)
- public void soneOfSoneInserterCanNotBeSetToADifferentSone() {
- Sone sone = mock(Sone.class);
- SoneInserter soneInserter = new SoneInserter(core, eventBus, freenetInterface, sone);
- soneInserter.setSone(mock(Sone.class));
- }
-
- @Test
- public void soneCanBeSetToEqualSone() {
- Sone sone = mock(Sone.class);
- SoneInserter soneInserter = new SoneInserter(core, eventBus, freenetInterface, sone);
- soneInserter.setSone(sone);
- }
-