-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements in README and minor whitespace adjustments
- Loading branch information
Showing
3 changed files
with
49 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
src/test/java/com/baloise/confluence/digitalsignature/SignatureTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package com.baloise.confluence.digitalsignature; | ||
|
||
import org.junit.Test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertFalse; | ||
|
||
import org.junit.Test; | ||
|
||
public class SignatureTest { | ||
|
||
@Test | ||
public void testClone() throws Exception { | ||
Signature signature = new Signature(999, "title", "body"); | ||
signature.getMissingSignatures().add("Hans"); | ||
Signature cloned = signature.clone(); | ||
assertFalse(signature == cloned); | ||
assertEquals(signature, cloned); | ||
assertEquals("Hans", cloned.getMissingSignatures().iterator().next()); | ||
} | ||
|
||
} | ||
@Test | ||
public void testClone() throws Exception { | ||
Signature signature = new Signature(999, "title", "body"); | ||
signature.getMissingSignatures().add("Hans"); | ||
Signature cloned = signature.clone(); | ||
assertFalse(signature == cloned); | ||
assertEquals(signature, cloned); | ||
assertEquals("Hans", cloned.getMissingSignatures().iterator().next()); | ||
} | ||
} |