Examples of AbstractProcessor


Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

  /**
   * Override inherited test.
   */
  public void failingtestGetOutputFileName1() {
    AbstractProcessor compiler = MetaObjectCompiler.getInstance();
    String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.cpp", null);
    assertEquals("hello" + getObjectExtension(), output[0]);
    output = compiler.getOutputFileNames("c:/foo\\bar/hello.cpp", null);
    assertEquals("hello" + getObjectExtension(), output[0]);
    output = compiler.getOutputFileNames("hello.cpp", null);
    assertEquals("hello" + getObjectExtension(), output[0]);
    output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null);
    assertEquals("moc_hello.cpp", output[0]);
    output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null);
    assertNull("moc_hello.cpp", output[0]);
  }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

     * Override of
     *
     * @see com.github.maven_nar.cpptasks.compiler.TestAbstractProcessor#testBid()
     */
    public void testBid() {
        AbstractProcessor compiler = create();
        int bid = compiler.bid("c:/foo\\bar\\hello.o");
        assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, bid);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

        AbstractProcessor compiler = create();
        int bid = compiler.bid("c:/foo\\bar\\hello.o");
        assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, bid);
    }
    public void testGetIdentfier() {
        AbstractProcessor processor = create();
        String id = processor.getIdentifier();
        assertTrue(id.indexOf("ar") >= 0);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

    public void testCanParseTlb() {
        AbstractCompiler compiler = (AbstractCompiler) create();
        assertEquals(false, compiler.canParse(new File("sample.tlb")));
    }
    public void failingtestGetOutputFileName1() {
        AbstractProcessor compiler = create();
        String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.c", null);
        assertEquals("hello" + getObjectExtension(), output[0]);
        output = compiler.getOutputFileNames("c:/foo\\bar/hello.c", null);
        assertEquals("hello" + getObjectExtension(), output[0]);
        output = compiler.getOutputFileNames("hello.c", null);
        assertEquals("hello" + getObjectExtension(), output[0]);
        output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null);
        assertEquals(0, output.length);
        output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null);
        assertEquals(0, output.length);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

    }
    protected AbstractProcessor create() {
        return new DummyAbstractProcessor();
    }
    public void failingtestBid() {
        AbstractProcessor compiler = create();
        int bid = compiler.bid("c:/foo\\bar\\hello.c");
        assertEquals(100, bid);
        bid = compiler.bid("c:/foo\\bar/hello.c");
        assertEquals(100, bid);
        bid = compiler.bid("c:/foo\\bar\\hello.h");
        assertEquals(1, bid);
        bid = compiler.bid("c:/foo\\bar/hello.h");
        assertEquals(1, bid);
        bid = compiler.bid("c:/foo\\bar/hello.pas");
        assertEquals(0, bid);
        bid = compiler.bid("c:/foo\\bar/hello.java");
        assertEquals(0, bid);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

        assertEquals(0, bid);
        bid = compiler.bid("c:/foo\\bar/hello.java");
        assertEquals(0, bid);
    }
    public void testGetIdentfier() {
        AbstractProcessor compiler = create();
        String id = compiler.getIdentifier();
        assertEquals("dummy", id);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

    }
    public void testGetIdentfier() {
        if (!Os.isFamily("windows")) {
            return;
        }
        AbstractProcessor compiler = create();
        String id = compiler.getIdentifier();
        boolean hasMSLinker = ((id.indexOf("Microsoft") >= 0) && (id
                .indexOf("Linker") >= 0))
                || id.indexOf("link") >= 0;
        assertTrue(hasMSLinker);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

    }
    protected AbstractProcessor create() {
        return new DummyAbstractLinker();
    }
    public void testBid() {
        AbstractProcessor compiler = create();
        int bid = compiler.bid("c:/foo\\bar\\hello.obj");
        assertEquals(100, bid);
        bid = compiler.bid("c:/foo\\bar/hello.lib");
        assertEquals(100, bid);
        bid = compiler.bid("c:/foo\\bar\\hello.map");
        assertEquals(0, bid);
        bid = compiler.bid("c:/foo\\bar/hello.map");
        assertEquals(0, bid);
        bid = compiler.bid("c:/foo\\bar/hello.c");
        assertEquals(1, bid);
        bid = compiler.bid("c:/foo\\bar/hello.cpp");
        assertEquals(1, bid);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

  /**
   * Override inherited test.
   */
  public void failingtestGetOutputFileName1() {
    AbstractProcessor compiler = MetaObjectCompiler.getInstance();
    String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.cpp", null);
    assertEquals("hello" + getObjectExtension(), output[0]);
    output = compiler.getOutputFileNames("c:/foo\\bar/hello.cpp", null);
    assertEquals("hello" + getObjectExtension(), output[0]);
    output = compiler.getOutputFileNames("hello.cpp", null);
    assertEquals("hello" + getObjectExtension(), output[0]);
    output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null);
    assertEquals("moc_hello.cpp", output[0]);
    output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null);
    assertNull("moc_hello.cpp", output[0]);
  }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.compiler.AbstractProcessor

    }
    protected AbstractProcessor create() {
        return new DummyAbstractProcessor();
    }
    public void failingtestBid() {
        AbstractProcessor compiler = create();
        int bid = compiler.bid("c:/foo\\bar\\hello.c");
        assertEquals(100, bid);
        bid = compiler.bid("c:/foo\\bar/hello.c");
        assertEquals(100, bid);
        bid = compiler.bid("c:/foo\\bar\\hello.h");
        assertEquals(1, bid);
        bid = compiler.bid("c:/foo\\bar/hello.h");
        assertEquals(1, bid);
        bid = compiler.bid("c:/foo\\bar/hello.pas");
        assertEquals(0, bid);
        bid = compiler.bid("c:/foo\\bar/hello.java");
        assertEquals(0, bid);
    }
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.