1 package org.apache.maven.surefire.its.jiras;
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.surefire.its.fixture.*;
25 import org.codehaus.plexus.util.FileUtils;
26 import org.junit.Test;
27
28
29
30
31
32
33 public class Surefire162CharsetProviderIT
34 extends SurefireJUnit4IntegrationTestCase
35 {
36 @SuppressWarnings( { "ResultOfMethodCallIgnored" } )
37 @Test
38 public void testCharsetProvider()
39 throws Exception
40 {
41 SurefireLauncher unpack = unpack( "/surefire-162-charsetProvider" );
42 MavenLauncher maven = unpack.maven();
43 OutputValidator verifier = maven.getValidator();
44 File jarFile = maven.getArtifactPath( "jcharset", "jcharset", "1.2.1", "jar" );
45 File pomFile = maven.getArtifactPath( "jcharset", "jcharset", "1.2.1", "pom" );
46 jarFile.getParentFile().mkdirs();
47 FileUtils.copyFile( verifier.getSubFile( "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.jar" ), jarFile );
48 FileUtils.copyFile( verifier.getSubFile( "repo/jcharset/jcharset/1.2.1/jcharset-1.2.1.pom" ), pomFile );
49 unpack.executeTest().verifyErrorFree( 1 );
50 }
51 }