use of jetbrains.buildServer.server.rest.util.fieldInclusion.FieldInclusionChecker in project teamcity-rest by JetBrains.
the class FieldInclusionCheckerTest method testDefaultsIncludeNonDefault.
@Test
public void testDefaultsIncludeNonDefault() {
FieldInclusionChecker checker = FieldInclusionChecker.getForClass(Model.class);
Assert.assertNull(checker.isIncluded("includeNonDefault", Fields.SHORT));
Assert.assertNull(checker.isIncluded("includeNonDefault", Fields.LONG));
Assert.assertFalse(checker.isIncluded("includeNonDefault", Fields.NONE));
Assert.assertTrue(checker.isIncluded("includeNonDefault", Fields.ALL));
}
use of jetbrains.buildServer.server.rest.util.fieldInclusion.FieldInclusionChecker in project teamcity-rest by JetBrains.
the class FieldInclusionCheckerTest method testDefaultsInclude.
@Test
public void testDefaultsInclude() {
FieldInclusionChecker checker = FieldInclusionChecker.getForClass(Model.class);
Assert.assertTrue(checker.isIncluded("include", Fields.SHORT));
Assert.assertTrue(checker.isIncluded("include", Fields.LONG));
Assert.assertFalse(checker.isIncluded("include", Fields.NONE));
Assert.assertTrue(checker.isIncluded("include", Fields.ALL));
}
use of jetbrains.buildServer.server.rest.util.fieldInclusion.FieldInclusionChecker in project teamcity-rest by JetBrains.
the class FieldInclusionCheckerTest method testInclude.
@Test
public void testInclude() {
FieldInclusionChecker checker = FieldInclusionChecker.getForClass(Model.class);
Assert.assertTrue(checker.isIncluded("getter", new Fields("getter")));
}
Aggregations