1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.simpligility.maven.plugins.android.sample;
17
18 import io.takari.maven.testing.TestResources;
19 import io.takari.maven.testing.executor.MavenExecutionResult;
20 import io.takari.maven.testing.executor.MavenRuntime;
21 import io.takari.maven.testing.executor.MavenVersions;
22 import io.takari.maven.testing.executor.MavenRuntime.MavenRuntimeBuilder;
23 import io.takari.maven.testing.executor.junit.MavenJUnitTestRunner;
24
25 import java.io.File;
26
27 import org.junit.Rule;
28 import org.junit.Test;
29 import org.junit.runner.RunWith;
30
31 import com.simpligility.maven.plugins.android.PluginInfo;
32
33 @RunWith(MavenJUnitTestRunner.class)
34 @MavenVersions({"3.3.9"})
35 public class AarActionbarsherlockExampleSampleIT {
36
37 @Rule
38 public final TestResources resources = new TestResources();
39
40 public final MavenRuntime mavenRuntime;
41
42 public AarActionbarsherlockExampleSampleIT(MavenRuntimeBuilder builder) throws Exception {
43 this.mavenRuntime = builder.build();
44 }
45
46 @Test
47 public void buildDeployAndRun() throws Exception {
48 File basedir = resources.getBasedir( "aar-actionbarsherlock-example" );
49 MavenExecutionResult result = mavenRuntime
50 .forProject(basedir)
51 .execute( "clean", PluginInfo.getQualifiedGoal( "undeploy" ),
52 "install", PluginInfo.getQualifiedGoal( "deploy" ),
53 PluginInfo.getQualifiedGoal( "run" ) );
54 result.assertErrorFreeLog();
55 }
56
57 }