Gaurav Sood
Gaurav Sood

Reputation: 155

Integration testing in grails using netbeans

I am using netbeans as the ide to develop grails web applications and am facing problems in integration testing.i created an integration test for a domain class ProgressData as ProgressDataIntegration in netbeans and it generated a code full of errors

package main
import static org.junit.Assert.*
import org.junit.*

class ProgressDataIntegrationTests{

@Before
void setUp() {
    // Setup logic here
}

@After
void tearDown() {
    // Tear down logic here
}

@Test
void testSomething() {
    fail "Implement me"
}
}

need help on how to remove these errors

Upvotes: 0

Views: 138

Answers (1)

krock
krock

Reputation: 29629

Whenever you create a grails domain class an integration test will also be created for you containing the code you posted. By default the test fails, as a prompt to write some tests for your new domain class, i.e. The line:

fail "Implement me"

If you remove this line your test will pass, but it also fails to actually test anything.

Upvotes: 1

Related Questions