CPPValueProviderFactory implements ValueProviderFactory { @Override public ValueProvider newInstance(FolderEntry projectFolder) { return new CPPValueProvider(projectFolder); }  @Override ValueProvider newInstance(FolderEntry projectFolder);  }
@Test public void testGetValuesWhenProjectNotContainsCPPFiles() throws Exception { Project cppProject = pm.createProject(workspace, "cppProject", new ProjectConfig("test project", "cpp", new HashMap<>(), null, null, null), null, null); FolderEntry baseFolder = cppProject.getBaseFolder(); FolderEntry firstFolder = baseFolder.createFolder("firstFolder"); FolderEntry secondFolder = baseFolder.createFolder("secondFolder"); firstFolder.createFile("test.txt", "test".getBytes(), MediaType.TEXT_PLAIN); secondFolder.createFile("test.java", "test".getBytes(), MediaType.TEXT_PLAIN); List<String> values = cppValueProviderFactory.newInstance(baseFolder).getValues(HAS_CPP_FILES); Assert.assertNotNull(values); Assert.assertTrue(values.isEmpty()); }