Java Code Examples for com.sun.tools.doclint.DocLint#getName()

The following examples show how to use com.sun.tools.doclint.DocLint#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 2
Source Project: jdk8u60   File: RunTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 3
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 4
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 5
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 6
Source Project: hottub   File: RunTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 7
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}
 
Example 8
Source Project: openjdk-8   File: RunTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
void testInit() {
    System.err.println("test init");
    DocLint dl = new DocLint();
    String name = dl.getName();
    if (!Objects.equals(name, "doclint"))
        error("unexpected result for DocLint.getName()");

    List<? extends JavaFileObject> files =
            Arrays.asList(createFile("Test.java", "/** &0; */ class Test{ }"));
    String[] goodArgs = { "-Xmsgs" };
    testInit(true, goodArgs, files);

    String[] badArgs = { "-unknown" };
    testInit(false, badArgs, files);
}