Examples of TestRunnable


Examples of org.apache.myfaces.test.TestRunnable

            String getBundleName(FacesContext facesContext, String name)
            {
                return "bundleName";
            }
        };
        assertThrowable(FacesException.class, new TestRunnable()
        {
            public void run()
            {
                myApp.getResourceBundle(context, "xxx");
            }
View Full Code Here

Examples of org.apache.myfaces.test.TestRunnable

        context = new MockFacesContext12();
    }
   
    public void testCreateMethodBinding() throws Exception
    {
        assertThrowable(ReferenceSyntaxException.class, new TestRunnable() {
            public void run() throws Throwable
            {
                app.createMethodBinding("xxx", null);
            }
        });
View Full Code Here

Examples of org.apache.myfaces.test.TestRunnable

     * Test method for
     * {@link org.apache.myfaces.application.ApplicationImpl#getResourceBundle(javax.faces.context.FacesContext, java.lang.String)}.
     */
    public void testGetResourceBundleNPE()
    {
        assertThrowable(NullPointerException.class, new TestRunnable()
        {
            public void run()
            {
                app.getResourceBundle(null, "xxx");
            }
        });
        assertThrowable(NullPointerException.class, new TestRunnable()
        {
            public void run()
            {
                app.getResourceBundle(context, null);
            }
View Full Code Here

Examples of org.apache.myfaces.test.TestRunnable

            String getBundleName(FacesContext facesContext, String name)
            {
                return "bundleName";
            }
        };
        assertThrowable(FacesException.class, new TestRunnable()
        {
            public void run()
            {
                myApp.getResourceBundle(context, "xxx");
            }
View Full Code Here

Examples of org.mt4j.test.testUtil.TestRunnable

    return this.scene.getCanvas();
  }
 
 
  public void testShapeCreation(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
       
            MTPolygon poly = new MTPolygon(
                new Vertex[]{
View Full Code Here

Examples of org.mt4j.test.testUtil.TestRunnable

  }
 
 
 
  public void testSetWidthHeight(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
        MTRectangle rect1 = new MTRectangle(150,0, 150,300, getMTApplication());
        parent.addChild(rect1);
       
View Full Code Here

Examples of org.mt4j.test.testUtil.TestRunnable

  }
 
 
 
  public void testRectCenterPoint(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
        MTRectangle rect1 = new MTRectangle(100, 100, 100, 200, 100, getMTApplication());
        parent.addChild(rect1);
       
View Full Code Here

Examples of org.mt4j.test.testUtil.TestRunnable

    this.scene = new DummyScene(app, "scene");
    app.addScene(scene);
  }
 
  public void testLoadFonts(){
    this.runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
        IFont font1 = FontManager.getInstance().createFont(getMTApplication(), "arial.ttf", 16, MTColor.GREY, MTColor.GREY, true);
        IFont font2 = FontManager.getInstance().createFont(getMTApplication(), "arial", 16, MTColor.BLACK, MTColor.BLACK, false);
       
View Full Code Here

Examples of org.mt4j.test.testUtil.TestRunnable

  public MTCanvas getCanvas(){
    return this.scene.getCanvas();
  }
 
  public void testComponentAddRemove(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
        System.out.println("\nTesting some base MTComponent functions..");
        System.out.println("Ext supported: " + Tools3D.isGLExtensionSupported(app, "test"));
       
View Full Code Here

Examples of org.mt4j.test.testUtil.TestRunnable

    });
  }
 
 
  public void testPicking(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
        //Create 3 rectangles
        MTRectangle rect1 = new MTRectangle(100,100,getMTApplication());
        rect1.setFillColor(new MTColor(255,0,0));
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.