Skip to content

Commit 68c2e64

Browse files
committed
Refactor StorageSnippets and add integration tests for snippets
- Add script to append snippets to service interface - Modify StorageSnippets class to make it testable - Add profile for snippet testing - Add integration tests for StorageSnippets
1 parent 755e00f commit 68c2e64

4 files changed

Lines changed: 876 additions & 295 deletions

File tree

gcloud-java-examples/pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
<artifactId>maven-assembly-plugin</artifactId>
3333
<version>2.5.4</version>
3434
</dependency>
35+
<dependency>
36+
<groupId>junit</groupId>
37+
<artifactId>junit</artifactId>
38+
<version>4.12</version>
39+
<scope>test</scope>
40+
</dependency>
3541
</dependencies>
3642
<build>
3743
<plugins>
@@ -103,6 +109,34 @@
103109
</programs>
104110
</configuration>
105111
</plugin>
112+
<plugin>
113+
<groupId>org.apache.maven.plugins</groupId>
114+
<artifactId>maven-failsafe-plugin</artifactId>
115+
<version>2.19.1</version>
116+
<configuration>
117+
<excludes>
118+
<exclude>**/IT*Snippets.java</exclude>
119+
</excludes>
120+
</configuration>
121+
</plugin>
106122
</plugins>
107123
</build>
124+
<profiles>
125+
<profile>
126+
<!-- We use the snippets profile to run snippets ITs -->
127+
<id>snippets</id>
128+
<build>
129+
<plugins>
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-failsafe-plugin</artifactId>
133+
<version>2.19.1</version>
134+
<configuration>
135+
<excludes combine.self="override"></excludes>
136+
</configuration>
137+
</plugin>
138+
</plugins>
139+
</build>
140+
</profile>
141+
</profiles>
108142
</project>

0 commit comments

Comments
 (0)