0,0 → 1,36 |
package de.viathinksoft.distributed.apps.immortal.iterator.marschall; |
|
import static org.junit.Assert.fail; |
|
import org.junit.Test; |
|
import de.viathinksoft.distributed.apps.immortal.exception.InitialNumberIsOneException; |
import de.viathinksoft.distributed.apps.immortal.exception.InitialNumberNotImmortableException; |
import de.viathinksoft.distributed.apps.immortal.iterator.marschall.SectionImmortableNumber; |
|
public class SectionImmortableNumberTest { |
|
@Test |
public void oneExceptionTest() throws InitialNumberNotImmortableException { |
try { |
new SectionImmortableNumber(1); |
fail(); |
} catch (InitialNumberIsOneException e) { |
} |
} |
|
@Test |
public void mortableExceptionTest() throws InitialNumberIsOneException { |
try { |
new SectionImmortableNumber(12); |
fail(); |
} catch (InitialNumberNotImmortableException e) { |
} |
} |
|
@Test |
public void successfulConstructTest() throws InitialNumberNotImmortableException, InitialNumberIsOneException { |
new SectionImmortableNumber(25); |
} |
|
} |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |