Created
July 17, 2019 11:54
-
-
Save kenparker/1ff1cab42699052d3aebebc92ce148f6 to your computer and use it in GitHub Desktop.
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
public class PersistenceTest { | |
private String a = "Angel"; | |
private String b = "Marc"; | |
private String c = "Lucy"; | |
private String d = "Bert"; | |
@Test | |
public void givenACyclopsVector_whenTheVectorIsModified_thenPreviousVersionIsNotChanged() { | |
Vector<String> vector = Vector.of(a, b, c); | |
vector.append(d); | |
assertThat(vector).contains(a, b, c).doesNotContain(d); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment