1 package org.apache.maven.surefire.its;
2
3 import java.io.File;
4 import java.io.IOException;
5
6 import org.apache.maven.it.VerificationException;
7 import org.apache.maven.it.Verifier;
8 import org.apache.maven.it.util.ResourceExtractor;
9
10
11
12
13 public class WorkingDirectoryIsInvalidPropertyIT
14 extends AbstractSurefireIntegrationTestClass
15 {
16 private File testDir;
17
18 public void setUp()
19 throws IOException
20 {
21 testDir = ResourceExtractor.simpleExtractResources( getClass(), "/working-directory-is-invalid-property" );
22 }
23
24 public void testWorkingDirectory()
25 throws Exception
26 {
27 Verifier verifier = new Verifier( testDir.getAbsolutePath() );
28 try
29 {
30 executeGoal( verifier, "test" );
31 }
32 catch ( VerificationException e )
33 {
34 }
35 verifier.verifyTextInLog( "workingDirectory cannot be null" );
36 verifier.resetStreams();
37 }
38 }