Skip to content

Commit

Permalink
[griddynamics#1028] - Revert test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsvato committed Sep 3, 2013
1 parent 93e0c45 commit 9ea793b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import com.griddynamics.genesis.workflow.Step
import scala.beans.BeanProperty
import scala.collection.mutable
import scala.collection.JavaConversions._
import java.io.FileInputStream


class MacrosTest extends AssertionsForJUnit with MockitoSugar with DSLTestUniverse with Logging {
Expand All @@ -31,13 +30,9 @@ class MacrosTest extends AssertionsForJUnit with MockitoSugar with DSLTestUniver

val body = IoUtil.streamAsString(classOf[GroovyTemplateServiceTest].getResourceAsStream("/groovy/Macros.genesis"))

val rjaBody = IoUtil.streamAsString(new FileInputStream("/Users/sreentenko/wrk/rja/genesis/genesis/resources/templates/base-template.genesis"))

Mockito.when(templateRepository.listSources()).thenReturn(Map(VersionedTemplate("1") -> body, VersionedTemplate("2") -> rjaBody))
Mockito.when(templateRepository.listSources()).thenReturn(Map(VersionedTemplate("1") -> body))
when(configService.get(Matchers.any(), Matchers.any())).thenReturn(Some(new api.Configuration(Some(0), "", 0, None, Map())))



@Test
def testStepsInserted() {
val template: Option[TemplateDefinition] = templateService.findTemplate(0, "Macros", "0.1", 0)
Expand Down

0 comments on commit 9ea793b

Please sign in to comment.