File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/test/java/org/geoserver/shell Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 66import org .junit .Test ;
77
88import java .io .File ;
9+ import java .util .List ;
910
1011import static com .xebialabs .restito .builder .stub .StubHttp .whenHttp ;
1112import static com .xebialabs .restito .builder .verify .VerifyHttp .verifyHttp ;
1213import static com .xebialabs .restito .semantics .Action .status ;
1314import static com .xebialabs .restito .semantics .Action .stringContent ;
1415import static com .xebialabs .restito .semantics .Condition .*;
16+ import static junit .framework .Assert .assertEquals ;
1517import static junit .framework .Assert .assertTrue ;
1618
1719public class ShapefilesCommandsTest extends BaseTest {
@@ -40,5 +42,12 @@ public void zipShapefile() throws Exception {
4042 File zipFile = File .createTempFile ("points" ,".zip" );
4143 boolean result = commands .zip (file , zipFile );
4244 assertTrue (result );
45+ List <String > names = getFileNamesFromZip (zipFile );
46+ assertEquals (5 , names .size ());
47+ assertTrue (names .contains ("points.shp" ));
48+ assertTrue (names .contains ("points.dbf" ));
49+ assertTrue (names .contains ("points.prj" ));
50+ assertTrue (names .contains ("points.shx" ));
51+ assertTrue (names .contains ("points.fix" ));
4352 }
4453}
You can’t perform that action at this time.
0 commit comments