1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugin.testing;
20
21 import java.io.IOException;
22
23 import org.junit.jupiter.api.Test;
24
25 import static org.junit.jupiter.api.Assertions.assertFalse;
26 import static org.junit.jupiter.api.Assertions.assertTrue;
27
28 public class ArtifactStubFactoryTest {
29 @Test
30 public void testVersionChecks() throws IOException {
31 ArtifactStubFactory factory = new ArtifactStubFactory();
32 assertTrue(factory.getReleaseArtifact().isRelease());
33 assertFalse(factory.getReleaseArtifact().isSnapshot());
34 assertTrue(factory.getSnapshotArtifact().isSnapshot());
35 assertFalse(factory.getSnapshotArtifact().isRelease());
36 }
37
38 @Test
39 public void testCreateFiles() throws IOException {
40 ArtifactStubFactory factory = new ArtifactStubFactory();
41 assertFalse(factory.isCreateFiles());
42 }
43 }