- final TestValue<String> post1 = new TestValue<String>(null);
- final TestValue<String> post2 = new TestValue<String>(null);
- final TestValue<String> post3 = new TestValue<String>(null);
- when(configuration.getStringValue("Bookmarks/Post/0/ID"))
- .thenReturn(post1);
- when(configuration.getStringValue("Bookmarks/Post/1/ID"))
- .thenReturn(post2);
- when(configuration.getStringValue("Bookmarks/Post/2/ID"))
- .thenReturn(post3);
- HashSet<String> originalPosts =
- new HashSet<String>(asList("Post1", "Post2"));
+ final Value<String> post1 = TestValue.<String>from(null);
+ final Value<String> post2 = TestValue.<String>from(null);
+ final Value<String> post3 = TestValue.<String>from(null);
+ when(configuration.getStringValue("Bookmarks/Post/0/ID")).thenReturn(post1);
+ when(configuration.getStringValue("Bookmarks/Post/1/ID")).thenReturn(post2);
+ when(configuration.getStringValue("Bookmarks/Post/2/ID")).thenReturn(post3);
+ HashSet<String> originalPosts = new HashSet<String>(asList("Post1", "Post2"));