[hg] main-silver: #184845: Unit tests correction.

  • From: Martin Kozeny < >
  • To:
  • Subject: [hg] main-silver: #184845: Unit tests correction.
  • Date: Fri, 03 May 2013 03:48:07 -0700

changeset 035545a93d7b in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/035545a93d7b
description:
        #184845:  Unit tests correction.

diffstat:

 
apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/spi/BrandingSupportTest.java
 |  12 +++++-----
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (46 lines):

diff --git 
a/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/spi/BrandingSupportTest.java
 
b/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/spi/BrandingSupportTest.java
--- 
a/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/spi/BrandingSupportTest.java
+++ 
b/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/spi/BrandingSupportTest.java
@@ -92,25 +92,25 @@
     public void testBranding1() throws IOException {
         assertFalse(instance.getBrandingRoot().exists());
         implOfBundleKeyTest("org.netbeans.core.startup",
-                "org/netbeans/core/startup/Bundle.properties", 
Collections.singleton("CTL_About_Title"), "About");
+                "org/netbeans/core/startup/Bundle.properties", 
Collections.singleton("CTL_About_Title"), "About", 
instance.getBrandedBundleKeys());
     }
     
     public void testBranding2() throws IOException {
         assertFalse(instance.getBrandingRoot().exists());
-        implOfBundleKeyTest("org.netbeans.core.startup", null, 
Collections.singleton("CTL_About_Title"), "About");
+        implOfBundleKeyTest("org.netbeans.core.startup", null, 
Collections.singleton("CTL_About_Title"), "About", 
instance.getBrandedBundleKeys());
     }
     
     
     public void testBranding3() throws IOException {
         assertFalse(instance.getBrandingRoot().exists());
         implOfBundleKeyTest("org.netbeans.core",
-                "org/netbeans/core/ui/Bundle.properties", 
Collections.singleton("LBL_SwingBrowserDescription"), "Simple HTML Browser 
based on a Swing component");
+                "org/netbeans/core/ui/Bundle.properties", 
Collections.singleton("LBL_SwingBrowserDescription"), "Simple HTML Browser 
based on a Swing component", instance.getBrandedBundleKeys());
     }
 
     public void testBranding4() throws IOException {
         assertFalse(instance.getBrandingRoot().exists());
         implOfBundleKeyTest("org.netbeans.core.windows",
-                "org/netbeans/core/windows/view/ui/Bundle.properties", 
Collections.singleton("CTL_MainWindow_Title"), "NetBeans Platform {0}");
+                "org/netbeans/core/windows/view/ui/Bundle.properties", 
Collections.singleton("CTL_MainWindow_Title"), "NetBeans Platform {0}", 
instance.getBrandedBundleKeys());
     }
     
     public void testBrandingFile() throws IOException {
@@ -178,10 +178,10 @@
     }
     
     
-    private void implOfBundleKeyTest(final String moduleCodeNameBase, final 
String bundleEntry, final Set<String> keys, String expectedValue) throws 
IOException {
+    private void implOfBundleKeyTest(final String moduleCodeNameBase, final 
String bundleEntry, final Set<String> keys, String expectedValue, 
Set<BrandingSupport.BundleKey> bundleKeys) throws IOException {
         Set<BrandingSupport.BundleKey> bKeys;
         if (bundleEntry != null) {
-            bKeys= 
instance.getBundleKeys(moduleCodeNameBase,bundleEntry,keys);
+            bKeys= 
instance.getBundleKeys(moduleCodeNameBase,bundleEntry,keys, bundleKeys);
         } else {
             bKeys= instance.getLocalizingBundleKeys(moduleCodeNameBase,keys);
         }

[hg] main-silver: #184845: Unit tests correction.

Martin Kozeny 05/03/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 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