Skip to content

Commit

Permalink
GHI-#8 Refactor getVersion() unit test to run against arcver-java
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Dec 3, 2016
1 parent e26e5cf commit b4d2e36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions nord-java.iml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: com.arcticicestudio:arcver-java:0.11.0-SNAPSHOT" level="project" />
</component>
</module>
10 changes: 8 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
title POM +
project nord-java +
version 0.1.0 +
repository https://github.com/arcticicestudio/nord-java +
author Arctic Ice Studio +
email [email protected] +
Expand All @@ -17,7 +16,7 @@ Apache Maven
(https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html)
Sonatype
(http://books.sonatype.com/mvnref-book/reference)
JFrog Bintray
JFrog
(https://bintray.com/docs/usermanual)
-->
<project
Expand Down Expand Up @@ -126,6 +125,13 @@ JFrog Bintray
<version>1.3</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.arcticicestudio</groupId>
<artifactId>arcver-java</artifactId>
<version>0.11.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/com/arcticicestudio/nord/NordTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ copyright Copyright (C) 2016 +
*/
package com.arcticicestudio.nord;

import com.arcticicestudio.arcver.Version;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
* Unit tests for the public API {@link Nord}.
Expand Down Expand Up @@ -65,6 +67,6 @@ public void shouldReturnTheCorrectRGBColorCode() {

@Test
public void shouldReturnTheCorrectVersionString() {
assertEquals(Nord.NORD0.getVersion(), "0.1.0");
assertTrue(Version.valueOf(Nord.getVersion()).satisfies("0.1.0"));
}
}

0 comments on commit b4d2e36

Please sign in to comment.