< prev index next >

test/jdk/com/sun/jndi/dns/AttributeTests/GetAny.java

Print this page




  59         env = DNSTestUtils.initEnv(socket, GetAny.class.getName(), argv);
  60 
  61         DirContext ctx = null;
  62 
  63         try {
  64             // connect to server
  65             ctx = new InitialDirContext(env);
  66 
  67             // Any type from IN class
  68             Attributes retAttrs = ctx.getAttributes(KEY, new String[] { "*" });
  69             DNSTestUtils.verifySchema(retAttrs, MANDATORY, OPTIONAL);
  70 
  71             retAttrs = ctx.getAttributes(KEY, new String[] { "* *" });
  72             DNSTestUtils.verifySchema(retAttrs, MANDATORY, OPTIONAL);
  73 
  74             retAttrs = ctx.getAttributes(KEY, new String[] { "IN *" });
  75             DNSTestUtils.verifySchema(retAttrs, MANDATORY, OPTIONAL);
  76 
  77         } finally {
  78             DNSTestUtils.cleanup(ctx);

  79         }
  80     }
  81 }


  59         env = DNSTestUtils.initEnv(socket, GetAny.class.getName(), argv);
  60 
  61         DirContext ctx = null;
  62 
  63         try {
  64             // connect to server
  65             ctx = new InitialDirContext(env);
  66 
  67             // Any type from IN class
  68             Attributes retAttrs = ctx.getAttributes(KEY, new String[] { "*" });
  69             DNSTestUtils.verifySchema(retAttrs, MANDATORY, OPTIONAL);
  70 
  71             retAttrs = ctx.getAttributes(KEY, new String[] { "* *" });
  72             DNSTestUtils.verifySchema(retAttrs, MANDATORY, OPTIONAL);
  73 
  74             retAttrs = ctx.getAttributes(KEY, new String[] { "IN *" });
  75             DNSTestUtils.verifySchema(retAttrs, MANDATORY, OPTIONAL);
  76 
  77         } finally {
  78             DNSTestUtils.cleanup(ctx);
  79             DNSTestUtils.cleanupClosableRes(socket);
  80         }
  81     }
  82 }
< prev index next >