Search in sources :

Example 1 with VisibilityPatternParser

use of com.facebook.buck.rules.VisibilityPatternParser in project buck by facebook.

the class VisibilityPatternParserTest method visibilityParserCanHandleSpecialCasedPublicVisibility.

@Test
public void visibilityParserCanHandleSpecialCasedPublicVisibility() throws NoSuchBuildTargetException {
    VisibilityPatternParser parser = new VisibilityPatternParser();
    VisibilityPattern publicPattern = parser.parse(null, "PUBLIC");
    assertNotNull(publicPattern);
    assertEquals("PUBLIC", publicPattern.getRepresentation());
}
Also used : VisibilityPattern(com.facebook.buck.rules.VisibilityPattern) VisibilityPatternParser(com.facebook.buck.rules.VisibilityPatternParser) Test(org.junit.Test)

Aggregations

VisibilityPattern (com.facebook.buck.rules.VisibilityPattern)1 VisibilityPatternParser (com.facebook.buck.rules.VisibilityPatternParser)1 Test (org.junit.Test)1