From 2992d7c515376367455c3a8813d221bda6fec28f Mon Sep 17 00:00:00 2001 From: James Carnegie Date: Mon, 24 Apr 2017 23:05:43 +0100 Subject: [PATCH] Failing test for atomist/rug#523 --- .../atomist/source/ArtifactContainerTest.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/scala/com/atomist/source/ArtifactContainerTest.scala diff --git a/src/test/scala/com/atomist/source/ArtifactContainerTest.scala b/src/test/scala/com/atomist/source/ArtifactContainerTest.scala new file mode 100644 index 0000000..e4718c8 --- /dev/null +++ b/src/test/scala/com/atomist/source/ArtifactContainerTest.scala @@ -0,0 +1,17 @@ +package com.atomist.source + +import org.scalatest.{FlatSpec, Matchers} + +class ArtifactContainerTest extends FlatSpec with Matchers{ + + it should "find files in /" in { + val src = SimpleFileBasedArtifactSource( + StringFileArtifact("Foo.java", + """ + |public class Foo { + |} + """.stripMargin) + ) + assert(src.findFile("/Foo.java").nonEmpty) + } +}