Skip to content

Commit

Permalink
Rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
calixtus committed May 23, 2024
1 parent 37fa15b commit a5674f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void parseStringLists(List<KeyBinding> keybindings, List<String> bindings) {
List<String> bindNames = keybindings.stream().map(KeyBinding::getConstant).toList();
KeyBindingRepository keyBindingRepository = new KeyBindingRepository(bindNames, bindings);

assertEquals(keyBindingRepository.get(bindNames.get(0)), bindings.get(0));
assertEquals(keyBindingRepository.get(bindNames.getFirst()), bindings.getFirst());
assertEquals(keyBindingRepository.get(bindNames.get(1)), bindings.get(1));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ public static void setup() {
public void mainTableColumnModelParserRetrievesCorrectType() {
MainTableColumnModel testColumnModel = MainTableColumnModel.parse(testQualifier);

assertEquals(testColumnModel.getType(), testType);
assertEquals(testType, testColumnModel.getType());
}

@Test
public void mainTableColumnModelParserRetrievesCorrectQualifier() {
MainTableColumnModel testColumnModel = MainTableColumnModel.parse(testQualifier);

assertEquals(testColumnModel.getQualifier(), testQualifier);
assertEquals(testQualifier, testColumnModel.getQualifier());
}

@Test
public void fullMainTableColumnModelParserRetrievesCorrectType() {
MainTableColumnModel testColumnModel = MainTableColumnModel.parse(testName);

assertEquals(testColumnModel.getType(), testType);
assertEquals(testType, testColumnModel.getType());
}

@Test
public void fullMainTableColumnModelParserRetrievesCorrectQualifier() {
MainTableColumnModel testColumnModel = MainTableColumnModel.parse(testName);

assertEquals(testColumnModel.getQualifier(), testQualifier);
assertEquals(testQualifier, testColumnModel.getQualifier());
}

@Test
public void typeOnlyMainTableColumnModelParserRetrievesCorrectType() {
MainTableColumnModel testColumnModel = MainTableColumnModel.parse(testTypeOnlyName);

assertEquals(testColumnModel.getType(), testTypeOnlyType);
assertEquals(testTypeOnlyType, testColumnModel.getType());
}

@Test
Expand Down

0 comments on commit a5674f4

Please sign in to comment.