Package org.japura.controller

Examples of org.japura.controller.Context


  Assert.assertNotNull(context.getId());
  }

  @Test
  public void test7() {
  Context context = new Context("TEST");
  Assert.assertEquals(true, context.equals(context));
  }
View Full Code Here


  Assert.assertEquals(true, context.equals(context));
  }

  @Test
  public void test8() {
  Context context1 = new Context("TEST");
  Context context2 = new Context("TEST");
  Assert.assertEquals(false, context1.equals(context2));
  }
View Full Code Here

  Assert.assertEquals(false, context1.equals(context2));
  }

  @Test
  public void test9() {
  Context context = new Context("TEST");
  Assert.assertEquals(false, context.equals(null));
  }
View Full Code Here

  Assert.assertEquals(false, context.equals(null));
  }

  @Test
  public void test10() {
  Context context = new Context("TEST");
  Assert.assertEquals(false, context.equals(""));
  }
View Full Code Here

  Application.reset();
  }

  @Test
  public void defaultConstructorTest() {
  Context mainContext = Context.getMainContext();

  ControllerA controller = new ControllerA();
  Assert.assertEquals(true, mainContext.equals(controller.getContext()));
  Assert.assertNotNull(controller.getGroup());
  Assert.assertNull(controller.getParent());
  }
View Full Code Here

  @Test
  public void sameGroupDifContextsTest() {
  thrown.expect(ControllerException.class);

  Context mainContext = Context.getMainContext();
  Context newContext = new Context("NEW CONTEXT");

  ControllerA root = new ControllerA(newContext, null);
  new ControllerA(mainContext, root);
  }
View Full Code Here

TOP

Related Classes of org.japura.controller.Context

Copyright © 2018 www.massapicom. 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.