Skip to content

Commit

Permalink
Merge branch 'improvement/ghi-#8-sonarqube-minor-rule-squid-s3400' in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
arcticicestudio committed Dec 3, 2016
2 parents 9eab580 + b4d2e36 commit 7efc44c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 development@arcticicestudio.com +
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
9 changes: 7 additions & 2 deletions src/main/java/com/arcticicestudio/nord/Nord.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ public enum Nord {
*/
private final Color COLOR;

/**
* The <a href="https://github.com/arcticicestudio/arcver">ArcVer</a> version of the public API.
*/
private static final String VERSION = "0.1.0";

/**
* Constructs a new color object.
*
Expand Down Expand Up @@ -256,7 +261,7 @@ public Color get() {
* @return the ArcVer version string
* @see <a href="http://semver.org">SemVer</a>
*/
public String getVersion() {
return "0.1.0";
public static String getVersion() {
return VERSION;
}
}
6 changes: 4 additions & 2 deletions src/test/java/com/arcticicestudio/nord/NordTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,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 {@link Nord} public API.
Expand Down Expand Up @@ -63,7 +65,7 @@ public void shouldReturnTheCorrectRGBColorCode() {
}

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

0 comments on commit 7efc44c

Please sign in to comment.