1 package org.apache.maven.scm.tck.command.mkdir;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23
24 import org.apache.maven.scm.ScmFileSet;
25 import org.apache.maven.scm.ScmTckTestCase;
26 import org.apache.maven.scm.command.mkdir.MkdirScmResult;
27
28
29
30
31
32
33
34 public abstract class MkdirCommandTckTest
35 extends ScmTckTestCase
36 {
37 public void testMkdirCommandMkdirLocal()
38 throws Exception
39 {
40 ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), new File( getMissingDirectory() ) );
41
42 MkdirScmResult result = getScmManager().mkdir( getScmRepository(), fileSet, null, true );
43
44 assertResultIsSuccess( result );
45
46 assertNotNull( result.getCreatedDirs() );
47
48 assertTrue( "Directory should have been added.", 1 == result.getCreatedDirs().size() );
49 }
50
51 protected String getMissingDirectory()
52 {
53 return "missing";
54 }
55 }