Examples of SgsTestNode


Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassNameInvalid() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY, "34 skidoo");
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassNotFound() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             "ThisClassIsNotFound");
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassNotPublic() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             NonPublicCoordinator.class.getName());
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassAbstract() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             AbstractCoordinator.class.getName());
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassNotImplementing() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             NotImplementingCoordinator.class.getName());
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassMissingConstructor() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             MissingConstructorCoordinator.class.getName());
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    public void testClassNonPublicConstructor() throws Exception {
  properties.setProperty(
      ACCESS_COORDINATOR_PROPERTY,
      NonPublicConstructorCoordinator.class.getName());
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testClassNotHandle() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             NotHandleCoordinator.class.getName());
  try {
      new SgsTestNode(
    "TestKernelSetAccessCoordinator", null, properties);
      fail("Expected InvocationTargetException");
  } catch (InvocationTargetException e) {
      Throwable cause = e.getCause();
      assertTrue("Expected IllegalArgumentException: " + cause,
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testNullCoordinator() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             NullAccessCoordinator.class.getName());
  SgsTestNode node = new SgsTestNode(
      "TestKernelSetAccessCoordinator", null, properties);
  node.shutdown(false);
    }
View Full Code Here

Examples of com.sun.sgs.test.util.SgsTestNode

    @Test
    public void testLockingAccessCoordinator() throws Exception {
  properties.setProperty(ACCESS_COORDINATOR_PROPERTY,
             LockingAccessCoordinator.class.getName());
  SgsTestNode node = new SgsTestNode(
      "TestKernelSetAccessCoordinator", null, properties);
  node.shutdown(false);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.