Skip to content

Commit

Permalink
Add some final qualifiers to the MappedListTest class (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
madoar authored Feb 24, 2019
1 parent bb0e17d commit f3296fb
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/test/java/org/phoenicis/javafx/collections/MappedListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
public class MappedListTest {
@Test
public void testListCreation() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -29,10 +29,10 @@ public void testListCreation() {

@Test
public void testListAdd() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -47,10 +47,10 @@ public void testListAdd() {

@Test
public void testListRemove() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -65,10 +65,10 @@ public void testListRemove() {

@Test
public void testListUpdate() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -83,11 +83,11 @@ public void testListUpdate() {

@Test
public void testListPermutation() {
SortedList<Integer> sortedList = FXCollections.observableArrayList(List.of(3, 7, 1, 5))
final SortedList<Integer> sortedList = FXCollections.observableArrayList(List.of(3, 7, 1, 5))
.sorted(Comparator.naturalOrder());
MappedList<String, Integer> mappedList = new MappedList<>(sortedList, String::valueOf);
final MappedList<String, Integer> mappedList = new MappedList<>(sortedList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -102,10 +102,10 @@ public void testListPermutation() {

@Test
public void testMapperChange() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -120,10 +120,10 @@ public void testMapperChange() {

@Test
public void testMapperChangeToNull() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList, String::valueOf);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand All @@ -138,10 +138,10 @@ public void testMapperChangeToNull() {

@Test
public void testMapperChangeFromNull() {
ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
MappedList<String, Integer> mappedList = new MappedList<>(observableList);
final ObservableList<Integer> observableList = FXCollections.observableArrayList(List.of(3, 7, 1, 5));
final MappedList<String, Integer> mappedList = new MappedList<>(observableList);

List<String> actual = new ArrayList<>();
final List<String> actual = new ArrayList<>();

Bindings.bindContent(actual, mappedList);

Expand Down

0 comments on commit f3296fb

Please sign in to comment.