-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added direct tests from some new classes * Broke up some of the geocoding tests to not be so huge
- Loading branch information
1 parent
1d5ffea
commit 218e667
Showing
12 changed files
with
1,015 additions
and
753 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
.../org/schoellerfamily/gedbrowser/datamodel/visitor/test/PersonConfidentialVisitorTest.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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.schoellerfamily.gedbrowser.datamodel.visitor.test; | ||
|
||
import static org.junit.Assert.assertFalse; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
import org.junit.Test; | ||
import org.schoellerfamily.gedbrowser.datamodel.Person; | ||
import org.schoellerfamily.gedbrowser.datamodel.util.GedObjectBuilder; | ||
import org.schoellerfamily.gedbrowser.datamodel.visitor.PersonConfidentialVisitor; | ||
|
||
/** | ||
* @author Dick Schoeller | ||
*/ | ||
public class PersonConfidentialVisitorTest { | ||
/** */ | ||
private final GedObjectBuilder builder = new GedObjectBuilder(); | ||
|
||
/** */ | ||
@Test | ||
public void testNotConfidential() { | ||
final Person person = | ||
builder.createPerson("I1", "J. Random/Schoeller/"); | ||
final PersonConfidentialVisitor visitor = | ||
new PersonConfidentialVisitor(); | ||
person.accept(visitor); | ||
assertFalse("Should not be confidential", visitor.isConfidential()); | ||
} | ||
|
||
/** */ | ||
@Test | ||
public void testIsConfidential() { | ||
final Person person = | ||
builder.createPerson("I1", "J. Random/Schoeller/"); | ||
builder.createAttribute(person, "Restriction", "confidential"); | ||
final PersonConfidentialVisitor visitor = | ||
new PersonConfidentialVisitor(); | ||
person.accept(visitor); | ||
assertTrue("Should be confidential", visitor.isConfidential()); | ||
} | ||
} |
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
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
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
Oops, something went wrong.