Skip to content

Commit

Permalink
fixed bug in DefaultActions
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlehansen committed May 26, 2017
1 parent 842a433 commit 8204ce7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}
}
compile('no.fint:fint-event-model:0.0.14')
compile('no.fint:fint-event-model:0.0.15')
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sourceCompatibility = 1.8

jar {
baseName = 'fint-event-model'
version = '0.0.15-SNAPSHOT'
version = '0.0.15'
}

repositories {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/no/fint/event/model/DefaultActions.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package no.fint.event.model;

public enum DefaultActions {
;

public static final String HEALTH = "health";
HEALTH
}
2 changes: 1 addition & 1 deletion src/main/java/no/fint/event/model/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public void addData(T data) {
*/
@JsonIgnore
public boolean isHealthCheck() {
return DefaultActions.HEALTH.equals(action);
return DefaultActions.HEALTH.name().equals(action);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/test/groovy/no/fint/event/model/EventSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class EventSpec extends Specification {

def "Check if event is health check when action is HEALTH"() {
when:
def event = new Event(action: DefaultActions.HEALTH)
def event = new Event(action: 'HEALTH')

then:
event.isHealthCheck()
Expand Down

0 comments on commit 8204ce7

Please sign in to comment.