Skip to content

Commit

Permalink
Tests separated to unit,integration and functional folders
Browse files Browse the repository at this point in the history
  • Loading branch information
akolod committed Dec 7, 2020
1 parent 0fd8d7e commit c9a0a0b
Show file tree
Hide file tree
Showing 27 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.hltech.judged.agent

import spock.lang.Specification

import static ServiceLocator.*

class UpdateServicesTaskUT extends Specification {

UpdateServicesTask task;
Expand All @@ -17,7 +15,7 @@ class UpdateServicesTaskUT extends Specification {

def "UpdateServices"() {
setup:
locator.locateServices() >> [new Service("service1", "1.0"),new Service("service2", "1.0")]
locator.locateServices() >> [new ServiceLocator.Service("service1", "1.0"), new ServiceLocator.Service("service2", "1.0")]
when:
task.updateServices()
then:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import spock.lang.Subject

import static org.assertj.core.util.Lists.newArrayList

class JudgeDUT extends Specification {
class RestContractValidatorUT extends Specification {

def serviceContractsRepository = new InMemoryServiceContractsRepository()
def environmentRepository = new InMemoryEnvironmentRepository()
Expand Down
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<configuration>
<testSources>
<testSource>
<directory>${project.basedir}/src/test/groovy</directory>
<directory>${project.basedir}/src/test</directory>
<includes>
<include>**/*.groovy</include>
</includes>
Expand Down Expand Up @@ -137,6 +137,8 @@
<includes>
<include>**/*IT.java</include>
<include>**/*IT.groovy</include>
<include>**/*FT.java</include>
<include>**/*FT.groovy</include>
</includes>
</configuration>
<executions>
Expand Down

0 comments on commit c9a0a0b

Please sign in to comment.