From a20a9d25675c6a813e6b23960470124440e92f83 Mon Sep 17 00:00:00 2001 From: Mauricio Jost Date: Mon, 25 Dec 2017 20:54:04 +0100 Subject: [PATCH] Include file-patterns in end-to-end test --- .../scala/org/mauritania/photosync/starter/StarterSpec.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/scala/org/mauritania/photosync/starter/StarterSpec.scala b/src/test/scala/org/mauritania/photosync/starter/StarterSpec.scala index 5d4b4cf..0f944a2 100644 --- a/src/test/scala/org/mauritania/photosync/starter/StarterSpec.scala +++ b/src/test/scala/org/mauritania/photosync/starter/StarterSpec.scala @@ -19,6 +19,7 @@ class StarterSpec extends Specification with TempDir { "works correctly under normal conditions" in { withTmpDir { tmp => val expectedDownloadedFile = new File(tmp, new File("100OLYMP", "OR.ORF").getPath) + val notExpectedDownloadedFile = new File(tmp, new File("100OLYMP", "VI.AVI").getPath) val server = HttpServer.create(new InetSocketAddress(8085), 0) server.createContext("/", new RootHandler()) @@ -29,6 +30,7 @@ class StarterSpec extends Specification with TempDir { Array( "--server-name", "localhost", "--server-port", "8085", + "--file-patterns", "*.ORF", "--output-directory", tmp.getAbsolutePath ) ) @@ -36,6 +38,7 @@ class StarterSpec extends Specification with TempDir { server.stop(0) expectedDownloadedFile.exists() must beTrue + notExpectedDownloadedFile.exists() must beFalse } } @@ -59,6 +62,7 @@ wlansd[0]="/DCIM/,100OLYMP,0,0,0,0";