Test cases has unique names BLD200211010100
authordkaspar@netbeans.org
Thu, 31 Oct 2002 16:12:57 +0000
changeset 2749ba686084afa8
parent 2748 d83ecb7af67b
child 2750 797e37065248
Test cases has unique names
jndi/test/qa-functional/src/providers/CNSTest/CNSTest.java
jndi/test/qa-functional/src/providers/CNSTest/data/goldenfiles/CNSTest/testAll_CNS.pass
jndi/test/qa-functional/src/providers/LDAPTest/LDAPTest.java
jndi/test/qa-functional/src/providers/LDAPTest/data/goldenfiles/LDAPTest/testAll_LDAP.pass
jndi/test/qa-functional/src/providers/NISTest/NISTest.java
jndi/test/qa-functional/src/providers/NISTest/data/goldenfiles/NISTest/testAll_NIS.pass
jndi/test/qa-functional/src/providers/RefFSTest/RefFSTest.java
jndi/test/qa-functional/src/providers/RefFSTest/data/goldenfiles/RefFSTest/testAll_FS.pass
jndi/test/qa-functional/src/providers/RegistryTest/RegistryTest.java
jndi/test/qa-functional/src/providers/RegistryTest/data/goldenfiles/RegistryTest/testAll_Reg.pass
jndi/test/qa-functional/src/suite/Validation.java
     1.1 --- a/jndi/test/qa-functional/src/providers/CNSTest/CNSTest.java	Thu Oct 31 12:57:16 2002 +0000
     1.2 +++ b/jndi/test/qa-functional/src/providers/CNSTest/CNSTest.java	Thu Oct 31 16:12:57 2002 +0000
     1.3 @@ -115,7 +115,7 @@
     1.4      PrintStream ref;
     1.5      PrintStream log;
     1.6      
     1.7 -    public void testAll () throws Exception {
     1.8 +    public void testAll_CNS () throws Exception {
     1.9          
    1.10          name += new SimpleDateFormat ("yyyyMMddHHmmss").format (new Date (System.currentTimeMillis()));
    1.11          
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/jndi/test/qa-functional/src/providers/CNSTest/data/goldenfiles/CNSTest/testAll_CNS.pass	Thu Oct 31 16:12:57 2002 +0000
     2.3 @@ -0,0 +1,44 @@
     2.4 +Lookup copy code on node: CNSTestContext.CNSTestContextKind
     2.5 +/** Inserted by Jndi module */
     2.6 +java.util.Properties jndiProperties = new java.util.Properties();
     2.7 +jndiProperties.put("java.naming.provider.url","iiop://localhost:11198");
     2.8 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
     2.9 +try {
    2.10 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    2.11 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("CNSTestRoot.CNSTestRootKind");
    2.12 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("CNSTestContext.CNSTestContextKind");
    2.13 +} catch (javax.naming.NamingException ne) {
    2.14 +    ne.printStackTrace();
    2.15 +}
    2.16 +
    2.17 +Binding copy code on node: CNSTestContext.CNSTestContextKind
    2.18 +/** Inserted by Jndi module */
    2.19 +java.util.Properties jndiProperties = new java.util.Properties();
    2.20 +jndiProperties.put("java.naming.provider.url","iiop://localhost:11198");
    2.21 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    2.22 +try {
    2.23 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    2.24 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("CNSTestRoot.CNSTestRootKind");
    2.25 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("CNSTestContext.CNSTestContextKind");
    2.26 +    jndiObject.bind("<Name>",<Object>);
    2.27 +} catch (javax.naming.NamingException ne) {
    2.28 +    ne.printStackTrace();
    2.29 +}
    2.30 +
    2.31 +Lookup copy code on node: CNSBinding.CNSBindingKind
    2.32 +/** Inserted by Jndi module */
    2.33 +java.util.Properties jndiProperties = new java.util.Properties();
    2.34 +jndiProperties.put("java.naming.provider.url","iiop://localhost:11198");
    2.35 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    2.36 +try {
    2.37 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    2.38 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("CNSTestRoot.CNSTestRootKind");
    2.39 +    com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1 jndiObject = (com.sun.corba.se.internal.iiop.CDRInputStream_1_0$1)jndiRootCtx.lookup("CNSTestContext.CNSTestContextKind/CNSBinding.CNSBindingKind");
    2.40 +} catch (javax.naming.NamingException ne) {
    2.41 +    ne.printStackTrace();
    2.42 +}
    2.43 +
    2.44 +dirNode.hasCustomizer (): false
    2.45 +dirNode.getCustomizer (): null
    2.46 +bindNode.hasCustomizer (): false
    2.47 +bindNode.getCustomizer (): null
     3.1 --- a/jndi/test/qa-functional/src/providers/LDAPTest/LDAPTest.java	Thu Oct 31 12:57:16 2002 +0000
     3.2 +++ b/jndi/test/qa-functional/src/providers/LDAPTest/LDAPTest.java	Thu Oct 31 16:12:57 2002 +0000
     3.3 @@ -113,7 +113,7 @@
     3.4      PrintStream ref;
     3.5      PrintStream log;
     3.6      
     3.7 -    public void testAll () throws Exception {
     3.8 +    public void testAll_LDAP () throws Exception {
     3.9          String dirname = System.getProperty("LDAP_SUB_CONTEXT");
    3.10          name += new SimpleDateFormat ("yyyyMMddHHmmss").format (new Date (System.currentTimeMillis()));
    3.11          
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/jndi/test/qa-functional/src/providers/LDAPTest/data/goldenfiles/LDAPTest/testAll_LDAP.pass	Thu Oct 31 16:12:57 2002 +0000
     4.3 @@ -0,0 +1,29 @@
     4.4 +Lookup copy code on node: <LDAP_SUB_CONTEXT>
     4.5 +/** Inserted by Jndi module */
     4.6 +java.util.Properties jndiProperties = new java.util.Properties();
     4.7 +jndiProperties.put("java.naming.provider.url","<LDAP_SERVER>");
     4.8 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.ldap.LdapCtxFactory");
     4.9 +try {
    4.10 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    4.11 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("<LDAP_CONTEXT>");
    4.12 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("<LDAP_SUB_CONTEXT>");
    4.13 +} catch (javax.naming.NamingException ne) {
    4.14 +    ne.printStackTrace();
    4.15 +}
    4.16 +
    4.17 +Binding copy code on node: <LDAP_SUB_CONTEXT>
    4.18 +/** Inserted by Jndi module */
    4.19 +java.util.Properties jndiProperties = new java.util.Properties();
    4.20 +jndiProperties.put("java.naming.provider.url","<LDAP_SERVER>");
    4.21 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.ldap.LdapCtxFactory");
    4.22 +try {
    4.23 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    4.24 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("<LDAP_CONTEXT>");
    4.25 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("<LDAP_SUB_CONTEXT>");
    4.26 +    jndiObject.bind("<Name>",<Object>);
    4.27 +} catch (javax.naming.NamingException ne) {
    4.28 +    ne.printStackTrace();
    4.29 +}
    4.30 +
    4.31 +dirNode.hasCustomizer (): true
    4.32 +dirNode.getCustomizer (): null
     5.1 --- a/jndi/test/qa-functional/src/providers/NISTest/NISTest.java	Thu Oct 31 12:57:16 2002 +0000
     5.2 +++ b/jndi/test/qa-functional/src/providers/NISTest/NISTest.java	Thu Oct 31 16:12:57 2002 +0000
     5.3 @@ -113,7 +113,7 @@
     5.4      PrintStream ref;
     5.5      PrintStream log;
     5.6      
     5.7 -    public void testAll () throws Exception {
     5.8 +    public void testAll_NIS () throws Exception {
     5.9          name += new SimpleDateFormat ("yyyyMMddHHmmss").format (new Date (System.currentTimeMillis()));
    5.10  
    5.11          String bindname = System.getProperty ("NIS_SUB_CONTEXT");
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/jndi/test/qa-functional/src/providers/NISTest/data/goldenfiles/NISTest/testAll_NIS.pass	Thu Oct 31 16:12:57 2002 +0000
     6.3 @@ -0,0 +1,31 @@
     6.4 +Lookup copy code on node: NISCtx
     6.5 +/** Inserted by Jndi module */
     6.6 +java.util.Properties jndiProperties = new java.util.Properties();
     6.7 +jndiProperties.put("java.naming.provider.url","<NIS_SERVER>");
     6.8 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.nis.NISCtxFactory");
     6.9 +try {
    6.10 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    6.11 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("<NIS_CONTEXT>");
    6.12 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("<NIS_SUB_CONTEXT>");
    6.13 +} catch (javax.naming.NamingException ne) {
    6.14 +    ne.printStackTrace();
    6.15 +}
    6.16 +
    6.17 +Binding copy code on node: NISCtx
    6.18 +/** Inserted by Jndi module */
    6.19 +java.util.Properties jndiProperties = new java.util.Properties();
    6.20 +jndiProperties.put("java.naming.provider.url","<NIS_SERVER>");
    6.21 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.nis.NISCtxFactory");
    6.22 +try {
    6.23 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    6.24 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("<NIS_CONTEXT>");
    6.25 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("<NIS_SUB_CONTEXT>");
    6.26 +    jndiObject.bind("<Name>",<Object>);
    6.27 +} catch (javax.naming.NamingException ne) {
    6.28 +    ne.printStackTrace();
    6.29 +}
    6.30 +
    6.31 +testNode.hasCustomizer (): true
    6.32 +testNode.getCustomizer (): null
    6.33 +bindNode.hasCustomizer (): true
    6.34 +bindNode.getCustomizer (): null
     7.1 --- a/jndi/test/qa-functional/src/providers/RefFSTest/RefFSTest.java	Thu Oct 31 12:57:16 2002 +0000
     7.2 +++ b/jndi/test/qa-functional/src/providers/RefFSTest/RefFSTest.java	Thu Oct 31 16:12:57 2002 +0000
     7.3 @@ -129,7 +129,7 @@
     7.4      PrintStream ref;
     7.5      PrintStream log;
     7.6      
     7.7 -    public void testAll () throws Exception {
     7.8 +    public void testAll_FS () throws Exception {
     7.9          name += new SimpleDateFormat ("yyyyMMddHHmmss").format (new Date (System.currentTimeMillis()));
    7.10          
    7.11          try {
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/jndi/test/qa-functional/src/providers/RefFSTest/data/goldenfiles/RefFSTest/testAll_FS.pass	Thu Oct 31 16:12:57 2002 +0000
     8.3 @@ -0,0 +1,44 @@
     8.4 +Lookup copy code on node: RefFSTestDir
     8.5 +/** Inserted by Jndi module */
     8.6 +java.util.Properties jndiProperties = new java.util.Properties();
     8.7 +jndiProperties.put("java.naming.provider.url","file://");
     8.8 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.fscontext.RefFSContextFactory");
     8.9 +try {
    8.10 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    8.11 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("tmp");
    8.12 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("RefFSTestDir");
    8.13 +} catch (javax.naming.NamingException ne) {
    8.14 +    ne.printStackTrace();
    8.15 +}
    8.16 +
    8.17 +Binding copy code on node: RefFSTestDir
    8.18 +/** Inserted by Jndi module */
    8.19 +java.util.Properties jndiProperties = new java.util.Properties();
    8.20 +jndiProperties.put("java.naming.provider.url","file://");
    8.21 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.fscontext.RefFSContextFactory");
    8.22 +try {
    8.23 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    8.24 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("tmp");
    8.25 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiRootCtx.lookup("RefFSTestDir");
    8.26 +    jndiObject.bind("<Name>",<Object>);
    8.27 +} catch (javax.naming.NamingException ne) {
    8.28 +    ne.printStackTrace();
    8.29 +}
    8.30 +
    8.31 +Lookup copy code on node: RefFSTestBinding
    8.32 +/** Inserted by Jndi module */
    8.33 +java.util.Properties jndiProperties = new java.util.Properties();
    8.34 +jndiProperties.put("java.naming.provider.url","file://");
    8.35 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.fscontext.RefFSContextFactory");
    8.36 +try {
    8.37 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
    8.38 +    javax.naming.Context jndiRootCtx = (javax.naming.Context) jndiCtx.lookup("tmp");
    8.39 +    javax.naming.Reference jndiObject = (javax.naming.Reference)jndiRootCtx.lookup("RefFSTestDir/RefFSTestBinding");
    8.40 +} catch (javax.naming.NamingException ne) {
    8.41 +    ne.printStackTrace();
    8.42 +}
    8.43 +
    8.44 +dirNode.hasCustomizer (): false
    8.45 +dirNode.getCustomizer (): null
    8.46 +bindNode.hasCustomizer (): false
    8.47 +bindNode.getCustomizer (): null
     9.1 --- a/jndi/test/qa-functional/src/providers/RegistryTest/RegistryTest.java	Thu Oct 31 12:57:16 2002 +0000
     9.2 +++ b/jndi/test/qa-functional/src/providers/RegistryTest/RegistryTest.java	Thu Oct 31 16:12:57 2002 +0000
     9.3 @@ -111,7 +111,7 @@
     9.4      PrintStream ref;
     9.5      PrintStream log;
     9.6      
     9.7 -    public void testAll () throws Exception {
     9.8 +    public void testAll_Reg () throws Exception {
     9.9          name += new SimpleDateFormat ("yyyyMMddHHmmss").format (new Date (System.currentTimeMillis()));
    9.10          try {
    9.11          ref = getRef ();
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/jndi/test/qa-functional/src/providers/RegistryTest/data/goldenfiles/RegistryTest/testAll_Reg.pass	Thu Oct 31 16:12:57 2002 +0000
    10.3 @@ -0,0 +1,41 @@
    10.4 +Lookup copy code on node: RegistryCtx
    10.5 +/** Inserted by Jndi module */
    10.6 +java.util.Properties jndiProperties = new java.util.Properties();
    10.7 +jndiProperties.put("java.naming.provider.url","rmi://localhost:11199");
    10.8 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.rmi.registry.RegistryContextFactory");
    10.9 +try {
   10.10 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
   10.11 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiCtx.lookup("");
   10.12 +} catch (javax.naming.NamingException ne) {
   10.13 +    ne.printStackTrace();
   10.14 +}
   10.15 +
   10.16 +Binding copy code on node: RegistryCtx
   10.17 +/** Inserted by Jndi module */
   10.18 +java.util.Properties jndiProperties = new java.util.Properties();
   10.19 +jndiProperties.put("java.naming.provider.url","rmi://localhost:11199");
   10.20 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.rmi.registry.RegistryContextFactory");
   10.21 +try {
   10.22 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
   10.23 +    javax.naming.Context jndiObject = (javax.naming.Context)jndiCtx.lookup("");
   10.24 +    jndiObject.bind("<Name>",<Object>);
   10.25 +} catch (javax.naming.NamingException ne) {
   10.26 +    ne.printStackTrace();
   10.27 +}
   10.28 +
   10.29 +Lookup copy code on node: RegistryBinding
   10.30 +/** Inserted by Jndi module */
   10.31 +java.util.Properties jndiProperties = new java.util.Properties();
   10.32 +jndiProperties.put("java.naming.provider.url","rmi://localhost:11199");
   10.33 +jndiProperties.put("java.naming.factory.initial","com.sun.jndi.rmi.registry.RegistryContextFactory");
   10.34 +try {
   10.35 +    javax.naming.directory.DirContext jndiCtx = new javax.naming.directory.InitialDirContext(jndiProperties);
   10.36 +    providers.RegistryTest.RegistryBindingImpl_Stub jndiObject = (providers.RegistryTest.RegistryBindingImpl_Stub)jndiCtx.lookup("RegistryBinding");
   10.37 +} catch (javax.naming.NamingException ne) {
   10.38 +    ne.printStackTrace();
   10.39 +}
   10.40 +
   10.41 +testNode.hasCustomizer (): false
   10.42 +testNode.getCustomizer (): null
   10.43 +bindNode.hasCustomizer (): false
   10.44 +bindNode.getCustomizer (): null
    11.1 --- a/jndi/test/qa-functional/src/suite/Validation.java	Thu Oct 31 12:57:16 2002 +0000
    11.2 +++ b/jndi/test/qa-functional/src/suite/Validation.java	Thu Oct 31 16:12:57 2002 +0000
    11.3 @@ -22,11 +22,11 @@
    11.4      public static junit.framework.Test suite () {
    11.5          org.netbeans.junit.NbTestSuite test = new org.netbeans.junit.NbTestSuite();
    11.6          test.addTest (new basic.JNDITest.JNDITest ("testJNDI"));
    11.7 -        test.addTest (new providers.CNSTest.CNSTest ("testAll"));
    11.8 -        test.addTest (new providers.LDAPTest.LDAPTest ("testAll"));
    11.9 -        test.addTest (new providers.NISTest.NISTest ("testAll"));
   11.10 -        test.addTest (new providers.RefFSTest.RefFSTest ("testAll"));
   11.11 -        test.addTest (new providers.RegistryTest.RegistryTest ("testAll"));
   11.12 +        test.addTest (new providers.CNSTest.CNSTest ("testAll_CNS"));
   11.13 +        test.addTest (new providers.LDAPTest.LDAPTest ("testAll_LDAP"));
   11.14 +        test.addTest (new providers.NISTest.NISTest ("testAll_NIS"));
   11.15 +        test.addTest (new providers.RefFSTest.RefFSTest ("testAll_FS"));
   11.16 +        test.addTest (new providers.RegistryTest.RegistryTest ("testAll_Reg"));
   11.17          test.addTest (new a11y.Main ("testAll"));
   11.18          return test;
   11.19      }