< prev index next >

test/java/nio/channels/DatagramChannel/BasicMulticastTests.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 4527345
  26  * @summary Unit test for DatagramChannel's multicast support
  27  * @library /test/lib
  28  * @build BasicMulticastTests







  29  * @run main BasicMulticastTests
  30  */
  31 
  32 import java.nio.ByteBuffer;
  33 import java.nio.channels.*;
  34 import java.net.*;
  35 import java.util.*;
  36 import java.io.IOException;
  37 
  38 import jdk.test.lib.NetworkConfiguration;
  39 
  40 public class BasicMulticastTests {
  41 
  42     /**
  43      * Tests that existing membership key is returned by join methods and that
  44      * membership key methods return the expected results
  45      */
  46     static void membershipKeyTests(NetworkInterface nif,
  47                                    InetAddress group,
  48                                    InetAddress source)




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 4527345
  26  * @summary Unit test for DatagramChannel's multicast support
  27  * @library /test/lib
  28  * @build jdk.test.lib.NetworkConfiguration
  29  *        jdk.test.lib.Utils
  30  *        jdk.test.lib.Asserts
  31  *        jdk.test.lib.JDKToolFinder
  32  *        jdk.test.lib.JDKToolLauncher
  33  *        jdk.test.lib.Platform
  34  *        jdk.test.lib.process.*
  35  *        BasicMulticastTests
  36  * @run main BasicMulticastTests
  37  */
  38 
  39 import java.nio.ByteBuffer;
  40 import java.nio.channels.*;
  41 import java.net.*;
  42 import java.util.*;
  43 import java.io.IOException;
  44 
  45 import jdk.test.lib.NetworkConfiguration;
  46 
  47 public class BasicMulticastTests {
  48 
  49     /**
  50      * Tests that existing membership key is returned by join methods and that
  51      * membership key methods return the expected results
  52      */
  53     static void membershipKeyTests(NetworkInterface nif,
  54                                    InetAddress group,
  55                                    InetAddress source)


< prev index next >