GeezerVison is showing github.com — fix · lerndevops/samplejavaapp@ef979f8
File tree
Expand file treeCollapse file tree
Open diff view settings
main/java/com/devopsdemo/tutorial/addressbook test/java/com/devopsdemo/utilities
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/main/java/com/devopsdemo/tutorial/addressbook/AddressbookUI.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ public class AddressbookUI extends VerticalLayout { |
19 | 19 |
|
20 | 20 | private final TextField filter = new TextField("Filter contacts..."); |
21 | 21 | private final Grid<Contact> contactList = new Grid<>(Contact.class); |
22 | | - private final Button newContact = new Button("New contact"); |
| 22 | + final Button newContact = new Button("New contact"); |
23 | 23 | private final ContactForm contactForm = new ContactForm(); |
24 | 24 | private final ContactService service = ContactService.createDemoService(); |
25 | 25 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: src/test/java/com/devopsdemo/utilities/TestCaseInsensitiveComparator.java +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
6 | 6 | class TestCaseInsensitiveComparator { |
7 | 7 |
|
8 | 8 | @Test |
| 9 | + |
9 | 10 | void testCompareEqualStrings() { |
10 | | - CaseInsensitiveComparator comparator = new CaseInsensitiveComparator(); |
| 11 | + CaseInsensitiveComparator comparator = new CaseInsensitiveComparator("", true); |
11 | 12 | assertEquals(0, comparator.compare("test", "TEST")); |
12 | 13 | } |
13 | 14 |
|
14 | 15 | @Test |
| 16 | + |
15 | 17 | void testCompareDifferentStrings() { |
16 | | - CaseInsensitiveComparator comparator = new CaseInsensitiveComparator(); |
| 18 | + CaseInsensitiveComparator comparator = new CaseInsensitiveComparator("", true); |
17 | 19 | assertTrue(comparator.compare("apple", "banana") < 0); |
18 | 20 | } |
19 | 21 |
|
20 | 22 | @Test |
21 | 23 | void testCompareNullStrings() { |
22 | | - CaseInsensitiveComparator comparator = new CaseInsensitiveComparator(); |
| 24 | + CaseInsensitiveComparator comparator = new CaseInsensitiveComparator("", true); |
23 | 25 | assertThrows(NullPointerException.class, () -> comparator.compare(null, "test")); |
24 | 26 | assertThrows(NullPointerException.class, () -> comparator.compare("test", null)); |
25 | 27 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: src/test/java/com/devopsdemo/utilities/TestGenericResourceBundle.java +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | + |
1 | 2 | package com.devopsdemo.utilities; |
| 3 | +import com.devopsdemo.helper.GenericResourceBundle; |
2 | 4 |
|
3 | 5 | import org.junit.jupiter.api.Test; |
4 | 6 | import java.util.Locale; |
|