Java Code Examples for javax.tools.DocumentationTool#Location

The following examples show how to use javax.tools.DocumentationTool#Location . 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
Source File: DocumentationToolLocationTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 2
Source File: DocumentationToolLocationTest.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 3
Source File: DocumentationToolLocationTest.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 4
Source File: DocumentationToolLocationTest.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 5
Source File: DocumentationToolLocationTest.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 6
Source File: DocumentationToolLocationTest.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 7
Source File: DocumentationToolLocationTest.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 8
Source File: DocumentationToolLocationTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 9
Source File: DocumentationToolLocationTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 10
Source File: DocumentationToolLocationTest.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 11
Source File: DocumentationToolLocationTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 12
Source File: DocumentationToolLocationTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 13
Source File: DocumentationToolLocationTest.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 14
Source File: DocumentationToolLocationTest.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 15
Source File: DocumentationToolLocationTest.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 16
Source File: DocumentationToolLocationTest.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 17
Source File: DocumentationToolLocationTest.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test getName() method
 */
@Test
public void testGetName() throws Exception {
    // getName() returns name(). This is for test coverage of getName.
    for (DocumentationTool.Location dl: DocumentationTool.Location.values()) {
        String expect = dl.name();
        String found = dl.getName();
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}
 
Example 18
Source File: DocumentationToolLocationTest.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test generated enum methods values() and valueOf()
 */
@Test
public void testEnumMethods() throws Exception {
    DocumentationTool.Location[] values = DocumentationTool.Location.values();
    if (values.length != 3)
        throw new Exception("unexpected number of values returned");

    for (DocumentationTool.Location dl: values) {
        DocumentationTool.Location expect = dl;
        DocumentationTool.Location found = DocumentationTool.Location.valueOf(dl.name());
        if (!Objects.equals(expect, found))
            throw new Exception("mismatch for " + dl + "; expected " + expect + ", found " + found);
    }
}