};
}
@Test
public void testSingleCommandsEnabledForJava() throws Exception {
NbGradleProject project = rootProject;
ActionProvider actionProvider = project.getLookup().lookup(ActionProvider.class);
Set<String> supportedActions = new HashSet<>(Arrays.asList(actionProvider.getSupportedActions()));
FileObject javaFile = project.getProjectDirectory().getFileObject(
"src/main/java/org/netbeans/gradle/Sample.java");
for (String command: getSingleCommands()) {
Lookup lookup = Lookups.fixed(javaFile);
boolean actionEnabled = actionProvider.isActionEnabled(command, lookup);
assertTrue(actionEnabled);