Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test for debug action.

  • Loading branch information...
commit cf5acc6ea73db499085c15fdd561ff98d2a6de06 1 parent 419588f
@tadas-subonis tadas-subonis authored
View
9 test/unit/src/org/netbeans/gradle/project/view/GradleActionProviderTest.java
@@ -63,6 +63,9 @@ public void should_return_single_java_action_enabled() {
TestGradleActionProvider gradleActionProvider = new TestGradleActionProvider("java");
boolean actionEnabled = gradleActionProvider.isActionEnabled(ActionProvider.COMMAND_RUN_SINGLE, n);
assertTrue(actionEnabled);
+
+ actionEnabled = gradleActionProvider.isActionEnabled(ActionProvider.COMMAND_DEBUG_SINGLE, n);
+ assertTrue(actionEnabled);
}
@Test
@@ -73,6 +76,9 @@ public void should_return_single_groovy_action_enabled() {
boolean actionEnabled = gradleActionProvider.isActionEnabled(ActionProvider.COMMAND_RUN_SINGLE, n);
assertTrue(actionEnabled);
+
+ actionEnabled = gradleActionProvider.isActionEnabled(ActionProvider.COMMAND_DEBUG_SINGLE, n);
+ assertTrue(actionEnabled);
}
@Test
@@ -82,6 +88,9 @@ public void should_return_single_other_action_enabled() {
TestGradleActionProvider gradleActionProvider = new TestGradleActionProvider("txt");
boolean actionEnabled = gradleActionProvider.isActionEnabled(ActionProvider.COMMAND_RUN_SINGLE, n);
assertFalse(actionEnabled);
+
+ actionEnabled = gradleActionProvider.isActionEnabled(ActionProvider.COMMAND_DEBUG_SINGLE, n);
+ assertFalse(actionEnabled);
}
private static class TestGradleActionProvider extends GradleActionProvider {
Please sign in to comment.
Something went wrong with that request. Please try again.