Changeset 53 for domaineditor/src/test/java/geniusweb/panels
- Timestamp:
- 12/18/24 13:28:59 (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
domaineditor/src/test/java/geniusweb/panels/ComboBoxTest.java
r52 r53 14 14 import org.junit.Test; 15 15 16 import geniusweb.domaineditor.ProfileEditor; 16 17 import geniusweb.domaineditor.model.DiscreteValueSetModel; 17 18 import geniusweb.domaineditor.model.DomainModel; … … 32 33 public void GuiTest() throws InterruptedException { 33 34 34 StringModel a = new StringModel("apples", log );35 StringModel b = new StringModel("bears", log );36 StringModel c = new StringModel("carrots", log );35 StringModel a = new StringModel("apples", log, ProfileEditor.TIME); 36 StringModel b = new StringModel("bears", log, ProfileEditor.TIME); 37 StringModel c = new StringModel("carrots", log, ProfileEditor.TIME); 37 38 38 39 JFrame f = new JFrame(); … … 40 41 f.getContentPane().add(panel); 41 42 DefaultListModel<StringModel> model = new DefaultListModel( 42 Arrays.asList(a, b, c), log) { 43 44 }; 43 Arrays.asList(a, b, c), log, ProfileEditor.TIME); 45 44 DefaultSelectionModel<StringModel> selectionmodel1 = new DefaultSelectionModel( 46 model );45 model, log, true); 47 46 panel.add(new ComboBox<StringModel>(selectionmodel1), 48 47 BorderLayout.NORTH); … … 60 59 public void testEqualsDeep() { 61 60 62 StringModel redvalue = new StringModel("red", log); 63 StringModel greenvalue = new StringModel("green", log); 61 StringModel redvalue = new StringModel("red", log, ProfileEditor.TIME); 62 StringModel greenvalue = new StringModel("green", log, 63 ProfileEditor.TIME); 64 64 DiscreteValueSetModel issue1values = new DiscreteValueSetModel( 65 65 Arrays.asList(redvalue, greenvalue), log); 66 66 67 StringModel issue1 = new StringModel("issue", log );67 StringModel issue1 = new StringModel("issue", log, ProfileEditor.TIME); 68 68 69 SelectionModel issue1valuessel = new DefaultSelectionModel( 70 issue1values);69 SelectionModel issue1valuessel = new DefaultSelectionModel(issue1values, 70 log, true); 71 71 Map<StringModel, SelectionModel> a = Collections.singletonMap(issue1, 72 72 issue1valuessel); 73 73 DefaultMapModel<StringModel, SelectionModel> issuevalues = new DefaultMapModel<StringModel, SelectionModel>( 74 a, log ) {74 a, log, ProfileEditor.TIME) { 75 75 76 76 @Override … … 92 92 93 93 MapModel<StringModel, ValueSetModel> issuevaluesmodel = new DefaultMapModel<StringModel, ValueSetModel>( 94 Collections.singletonMap(issue1, issue1values), log) { 94 Collections.singletonMap(issue1, issue1values), log, 95 ProfileEditor.TIME) { 95 96 96 97 @Override … … 110 111 111 112 }; 112 DomainModel domain = new DomainModel(new StringModel("testdomain", log), 113 DomainModel domain = new DomainModel( 114 new StringModel("testdomain", log, ProfileEditor.TIME), 113 115 issuevaluesmodel, log); 114 116
Note:
See TracChangeset
for help on using the changeset viewer.