[hg] main-silver: Enforcing unnecessary order of tests for Prefe...

  • From: Jan Lahoda < >
  • To:
  • Subject: [hg] main-silver: Enforcing unnecessary order of tests for Prefe...
  • Date: Fri, 29 Mar 2013 15:43:47 -0700

changeset 84e3dce5afdb in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/84e3dce5afdb
description:
        Enforcing unnecessary order of tests for PreferencesTest

diffstat:

 
editor.settings.storage/test/unit/src/org/netbeans/modules/editor/settings/storage/preferences/PreferencesTest.java
 |  14 ++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diffs (35 lines):

diff --git 
a/editor.settings.storage/test/unit/src/org/netbeans/modules/editor/settings/storage/preferences/PreferencesTest.java
 
b/editor.settings.storage/test/unit/src/org/netbeans/modules/editor/settings/storage/preferences/PreferencesTest.java
--- 
a/editor.settings.storage/test/unit/src/org/netbeans/modules/editor/settings/storage/preferences/PreferencesTest.java
+++ 
b/editor.settings.storage/test/unit/src/org/netbeans/modules/editor/settings/storage/preferences/PreferencesTest.java
@@ -47,10 +47,12 @@
 import java.util.prefs.PreferenceChangeEvent;
 import java.util.prefs.PreferenceChangeListener;
 import java.util.prefs.Preferences;
+import junit.framework.TestSuite;
 import org.netbeans.api.editor.mimelookup.MimeLookup;
 import org.netbeans.api.editor.mimelookup.MimePath;
 import org.netbeans.core.startup.Main;
 import org.netbeans.junit.NbTestCase;
+import org.netbeans.junit.NbTestSuite;
 import org.netbeans.junit.RandomlyFails;
 import org.netbeans.modules.editor.settings.storage.EditorTestLookup;
 import org.netbeans.modules.editor.settings.storage.StorageImpl;
@@ -90,6 +92,18 @@
         Main.initializeURLFactory();
     }
     
+    public static TestSuite suite() {
+        NbTestSuite suite = new NbTestSuite();
+        
+        suite.addTest(new PreferencesTest("testSimple"));
+        suite.addTest(new PreferencesTest("testWriting"));
+        suite.addTest(new PreferencesTest("testEvents1"));
+        suite.addTest(new PreferencesTest("testEvents2"));
+        suite.addTest(new PreferencesTest("testEvents142723"));
+        
+        return suite;
+    }
+    
     public void testSimple() {
         Preferences prefs = 
MimeLookup.getLookup(MimePath.EMPTY).lookup(Preferences.class);
         assertEquals("Wrong value for 'simple-value-setting-A'", "value-A", 
prefs.get("simple-value-setting-A", null));

[hg] main-silver: Enforcing unnecessary order of tests for Prefe...

Jan Lahoda 03/29/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close