source: domaineditor/src/test/java/geniusweb/domaineditor/ProfileEditorPanelTest.java@ 52

Last change on this file since 52 was 52, checked in by ruud, 14 months ago

Fixed small issues in domaineditor.

File size: 958 bytes
Line 
1package geniusweb.domaineditor;
2
3import java.awt.BorderLayout;
4
5import javax.swing.JFrame;
6import javax.swing.JPanel;
7
8import org.junit.Test;
9
10import geniusweb.domaineditor.model.DomainModel;
11import geniusweb.domaineditor.model.profile.LinearAdditiveUtilitySpaceModel;
12import geniusweb.domaineditor.panels.profile.ProfileEditorPanel;
13import tudelft.utilities.logging.Reporter;
14import tudelft.utilities.mvc.panels.PopupReporter;
15
16public class ProfileEditorPanelTest {
17 @Test
18 public void test() throws InterruptedException {
19 JFrame frame = new JFrame();
20 JPanel panel = new JPanel(new BorderLayout());
21 Reporter log = new PopupReporter(frame);
22
23 DomainModel domain = new DomainModel(log);
24 LinearAdditiveUtilitySpaceModel lamodel = new LinearAdditiveUtilitySpaceModel(
25 domain, log);
26
27 frame.getContentPane().add(new ProfileEditorPanel(lamodel, log));
28 frame.pack();
29 frame.setVisible(true);
30 Thread.sleep(10000);
31 frame.setVisible(false);
32 }
33}
Note: See TracBrowser for help on using the repository browser.