Package org.mt4j.test.testUtil

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


  }
 
 
 
  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

  }
 
 
 
  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

    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

  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

    });
  }
 
 
  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

    this.sceneC = new DummyScene(app, "Dummy SceneC");
    app.addScene(sceneC);
  }
 
  public void testSceneChange(){
    runTest(new TestRunnable() {
      @Override
      public void runMTTestCode() {
        assertTrue(getMTApplication().isRenderThreadCurrent());
       
        assertEquals(getMTApplication().getScene("Dummy SceneA"), sceneA);
View Full Code Here

TOP

Related Classes of org.mt4j.test.testUtil.TestRunnable

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.