adding pssibility to change component/subcomponent manually deploy_20070419
authorjhorvath@netbeans.org
Thu, 19 Apr 2007 08:19:18 +0000
changeset 2094057b80de7a1c
parent 2093 7a833b09b640
child 2095 974e2fe10c33
adding pssibility to change component/subcomponent manually
logger/StrutsExceptions/test/org/netbeans/modules/exceptions/web/PersistenceUtilsAbstractTest.java
logger/StrutsExceptions/test/org/netbeans/modules/exceptions/web/PersistenceUtilsTest.java
     1.1 --- a/logger/StrutsExceptions/test/org/netbeans/modules/exceptions/web/PersistenceUtilsAbstractTest.java	Wed Apr 18 18:53:12 2007 +0000
     1.2 +++ b/logger/StrutsExceptions/test/org/netbeans/modules/exceptions/web/PersistenceUtilsAbstractTest.java	Thu Apr 19 08:19:18 2007 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  import org.junit.Assert;
     1.5  import org.junit.Test;
     1.6  import org.netbeans.modules.exceptions.entity.Jarfile;
     1.7 +import org.netbeans.modules.exceptions.utils.PersistenceUtils;
     1.8  
     1.9  /**
    1.10   *
    1.11 @@ -32,7 +33,7 @@
    1.12       */
    1.13      public PersistenceUtilsAbstractTest() throws Exception {
    1.14          PersistenceUtils.setEmf(emF);
    1.15 -        persUtil = PersistenceUtils.getInstance();
    1.16 +        persUtil = PersistenceUtils.lookupInstance();
    1.17          // initialized embedde database only once. It seems that BeforeClass annotation doesn't work :-(
    1.18          // This one is only workaround !!!!
    1.19          if(!isDBInit) {
     2.1 --- a/logger/StrutsExceptions/test/org/netbeans/modules/exceptions/web/PersistenceUtilsTest.java	Wed Apr 18 18:53:12 2007 +0000
     2.2 +++ b/logger/StrutsExceptions/test/org/netbeans/modules/exceptions/web/PersistenceUtilsTest.java	Thu Apr 19 08:19:18 2007 +0000
     2.3 @@ -36,8 +36,8 @@
     2.4      @Test
     2.5      public void testSingleton() {
     2.6          System.out.println("testSingleton");
     2.7 -        PersistenceUtils in1 = PersistenceUtils.getInstance();
     2.8 -        PersistenceUtils in2 = PersistenceUtils.getInstance();
     2.9 +        PersistenceUtils in1 = PersistenceUtils.lookupInstance();
    2.10 +        PersistenceUtils in2 = PersistenceUtils.lookupInstance();
    2.11          assertSame(in2, in1);
    2.12  
    2.13          List<Jarfile> jars = persUtil.getAll(Jarfile.class);