From d71c101943f2661b23f7f2097efdecf6ed354d5b Mon Sep 17 00:00:00 2001 From: pierrejego Date: Wed, 30 Mar 2016 17:52:29 +0200 Subject: [PATCH] Add missing integration test --- .../service/ImageParcelleControllerTest.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 cadastrapp/src/test/java/org/georchestra/cadastrapp/service/ImageParcelleControllerTest.java diff --git a/cadastrapp/src/test/java/org/georchestra/cadastrapp/service/ImageParcelleControllerTest.java b/cadastrapp/src/test/java/org/georchestra/cadastrapp/service/ImageParcelleControllerTest.java new file mode 100644 index 00000000..91e6677c --- /dev/null +++ b/cadastrapp/src/test/java/org/georchestra/cadastrapp/service/ImageParcelleControllerTest.java @@ -0,0 +1,41 @@ +/** + * + */ +package org.georchestra.cadastrapp.service; + + +import javax.ws.rs.core.Response; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; + +/** + * @author gfi + * + */ +//@RunWith(SpringJUnit4ClassRunner.class) +//@ContextConfiguration(locations = { "classpath:test-config.xml" }) +public class ImageParcelleControllerTest { + + + + + /** + * Test method for {@link org.georchestra.cadastrapp.service.ImageParcelleController#createImageBordereauParcellaire(java.lang.String)}. + */ + // @Test This more an integration test than a unit test + public void testCreateImageBordereauParcellaire() { + // Test realized on integration server with specific data + // If you want to test this, change cadastrapp-test.properties with good value for WMS and WFS serveur information + // and change value of parcelle id + + ImageParcelleController imageParcelleController = new ImageParcelleController(); + + Response response = imageParcelleController.createImageBordereauParcellaire("2014630103000AO0351"); + + + } + +}