From 3f5dd00a741620db23cdf5c1fb9cb1df31676a97 Mon Sep 17 00:00:00 2001 From: Giuseppe La Scaleia Date: Sat, 17 Feb 2018 09:32:19 +0100 Subject: [PATCH] Try to Fix Jenkins Build Failure --- .../wfs/WFSGetFeaturesRequestTest.java | 2 +- .../DoubleParserFromStringHandler.java | 67 +++++++++---------- .../GPPrimitiveParserFromStringHandler.java | 66 +++++++++--------- .../responsibility/GPPrimitiveParserTest.java | 67 +++++++++---------- .../src/test/resources/logback-test.xml | 1 + 5 files changed, 101 insertions(+), 102 deletions(-) diff --git a/geoplatform-shared/geoplatform-wfs-support/src/test/java/org/geosdi/geoplatform/wfs/WFSGetFeaturesRequestTest.java b/geoplatform-shared/geoplatform-wfs-support/src/test/java/org/geosdi/geoplatform/wfs/WFSGetFeaturesRequestTest.java index fae2fb69e7..c903260ec1 100644 --- a/geoplatform-shared/geoplatform-wfs-support/src/test/java/org/geosdi/geoplatform/wfs/WFSGetFeaturesRequestTest.java +++ b/geoplatform-shared/geoplatform-wfs-support/src/test/java/org/geosdi/geoplatform/wfs/WFSGetFeaturesRequestTest.java @@ -93,7 +93,7 @@ public class WFSGetFeaturesRequestTest { // private final static FeatureSchemaReader featureReaderXSD = new GPFeatureSchemaReader(); - //@Ignore(value = "Geoserver is Down") + @Ignore(value = "Geoserver is Down") @Test public void getAllFeaturesTest() throws Exception { String wfsURL = "http://geoserver.wfppal.org/geoserver/wfs"; diff --git a/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/DoubleParserFromStringHandler.java b/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/DoubleParserFromStringHandler.java index 2cc417eaf9..2df675b184 100644 --- a/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/DoubleParserFromStringHandler.java +++ b/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/DoubleParserFromStringHandler.java @@ -1,37 +1,36 @@ /** - * - * geo-platform - * Rich webgis framework - * http://geo-platform.org - * ==================================================================== - * - * Copyright (C) 2008-2018 geoSDI Group (CNR IMAA - Potenza - ITALY). - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. You should have received a copy of the GNU General - * Public License along with this program. If not, see http://www.gnu.org/licenses/ - * - * ==================================================================== - * - * Linking this library statically or dynamically with other modules is - * making a combined work based on this library. Thus, the terms and - * conditions of the GNU General Public License cover the whole combination. - * - * As a special exception, the copyright holders of this library give you permission - * to link this library with independent modules to produce an executable, regardless - * of the license terms of these independent modules, and to copy and distribute - * the resulting executable under terms of your choice, provided that you also meet, - * for each linked independent module, the terms and conditions of the license of - * that module. An independent module is a module which is not derived from or - * based on this library. If you modify this library, you may extend this exception - * to your version of the library, but you are not obligated to do so. If you do not - * wish to do so, delete this exception statement from your version. + * geo-platform + * Rich webgis framework + * http://geo-platform.org + * ==================================================================== + *

+ * Copyright (C) 2008-2018 geoSDI Group (CNR IMAA - Potenza - ITALY). + *

+ * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. This program is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. You should have received a copy of the GNU General + * Public License along with this program. If not, see http://www.gnu.org/licenses/ + *

+ * ==================================================================== + *

+ * Linking this library statically or dynamically with other modules is + * making a combined work based on this library. Thus, the terms and + * conditions of the GNU General Public License cover the whole combination. + *

+ * As a special exception, the copyright holders of this library give you permission + * to link this library with independent modules to produce an executable, regardless + * of the license terms of these independent modules, and to copy and distribute + * the resulting executable under terms of your choice, provided that you also meet, + * for each linked independent module, the terms and conditions of the license of + * that module. An independent module is a module which is not derived from or + * based on this library. If you modify this library, you may extend this exception + * to your version of the library, but you are not obligated to do so. If you do not + * wish to do so, delete this exception statement from your version. */ package org.geosdi.geoplatform.support.primitive.string.responsibility; @@ -44,7 +43,7 @@ class DoubleParserFromStringHandler extends AbstractPrimitiveParserFromStringHandler { public DoubleParserFromStringHandler() { - super.setSuccessor(new TemporalParserFromStringHandler()); + super.setSuccessor(new LongParserFromStringHandler()); } /** diff --git a/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserFromStringHandler.java b/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserFromStringHandler.java index f3f35ee314..5befee469a 100644 --- a/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserFromStringHandler.java +++ b/geoplatform-support/geoplatform-primitive-type/src/main/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserFromStringHandler.java @@ -1,37 +1,36 @@ /** - * - * geo-platform - * Rich webgis framework - * http://geo-platform.org - * ==================================================================== - * - * Copyright (C) 2008-2018 geoSDI Group (CNR IMAA - Potenza - ITALY). - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. You should have received a copy of the GNU General - * Public License along with this program. If not, see http://www.gnu.org/licenses/ - * - * ==================================================================== - * - * Linking this library statically or dynamically with other modules is - * making a combined work based on this library. Thus, the terms and - * conditions of the GNU General Public License cover the whole combination. - * - * As a special exception, the copyright holders of this library give you permission - * to link this library with independent modules to produce an executable, regardless - * of the license terms of these independent modules, and to copy and distribute - * the resulting executable under terms of your choice, provided that you also meet, - * for each linked independent module, the terms and conditions of the license of - * that module. An independent module is a module which is not derived from or - * based on this library. If you modify this library, you may extend this exception - * to your version of the library, but you are not obligated to do so. If you do not - * wish to do so, delete this exception statement from your version. + * geo-platform + * Rich webgis framework + * http://geo-platform.org + * ==================================================================== + *

+ * Copyright (C) 2008-2018 geoSDI Group (CNR IMAA - Potenza - ITALY). + *

+ * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. This program is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. You should have received a copy of the GNU General + * Public License along with this program. If not, see http://www.gnu.org/licenses/ + *

+ * ==================================================================== + *

+ * Linking this library statically or dynamically with other modules is + * making a combined work based on this library. Thus, the terms and + * conditions of the GNU General Public License cover the whole combination. + *

+ * As a special exception, the copyright holders of this library give you permission + * to link this library with independent modules to produce an executable, regardless + * of the license terms of these independent modules, and to copy and distribute + * the resulting executable under terms of your choice, provided that you also meet, + * for each linked independent module, the terms and conditions of the license of + * that module. An independent module is a module which is not derived from or + * based on this library. If you modify this library, you may extend this exception + * to your version of the library, but you are not obligated to do so. If you do not + * wish to do so, delete this exception statement from your version. */ package org.geosdi.geoplatform.support.primitive.string.responsibility; @@ -82,6 +81,7 @@ interface IGPPrimitiveParserFromStringType { enum GPPrimitiveParserFromStringType implements IGPPrimitiveParserFromStringType { INTEGER("Interger"), DOUBLE("Double"), + LONG("Long"), TEMPORAL("Temporal"), STRING("String"); diff --git a/geoplatform-support/geoplatform-primitive-type/src/test/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserTest.java b/geoplatform-support/geoplatform-primitive-type/src/test/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserTest.java index a798be2d26..2d90b78d09 100644 --- a/geoplatform-support/geoplatform-primitive-type/src/test/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserTest.java +++ b/geoplatform-support/geoplatform-primitive-type/src/test/java/org/geosdi/geoplatform/support/primitive/string/responsibility/GPPrimitiveParserTest.java @@ -1,37 +1,36 @@ /** - * - * geo-platform - * Rich webgis framework - * http://geo-platform.org - * ==================================================================== - * - * Copyright (C) 2008-2018 geoSDI Group (CNR IMAA - Potenza - ITALY). - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without - * even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. You should have received a copy of the GNU General - * Public License along with this program. If not, see http://www.gnu.org/licenses/ - * - * ==================================================================== - * - * Linking this library statically or dynamically with other modules is - * making a combined work based on this library. Thus, the terms and - * conditions of the GNU General Public License cover the whole combination. - * - * As a special exception, the copyright holders of this library give you permission - * to link this library with independent modules to produce an executable, regardless - * of the license terms of these independent modules, and to copy and distribute - * the resulting executable under terms of your choice, provided that you also meet, - * for each linked independent module, the terms and conditions of the license of - * that module. An independent module is a module which is not derived from or - * based on this library. If you modify this library, you may extend this exception - * to your version of the library, but you are not obligated to do so. If you do not - * wish to do so, delete this exception statement from your version. + * geo-platform + * Rich webgis framework + * http://geo-platform.org + * ==================================================================== + *

+ * Copyright (C) 2008-2018 geoSDI Group (CNR IMAA - Potenza - ITALY). + *

+ * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. This program is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. You should have received a copy of the GNU General + * Public License along with this program. If not, see http://www.gnu.org/licenses/ + *

+ * ==================================================================== + *

+ * Linking this library statically or dynamically with other modules is + * making a combined work based on this library. Thus, the terms and + * conditions of the GNU General Public License cover the whole combination. + *

+ * As a special exception, the copyright holders of this library give you permission + * to link this library with independent modules to produce an executable, regardless + * of the license terms of these independent modules, and to copy and distribute + * the resulting executable under terms of your choice, provided that you also meet, + * for each linked independent module, the terms and conditions of the license of + * that module. An independent module is a module which is not derived from or + * based on this library. If you modify this library, you may extend this exception + * to your version of the library, but you are not obligated to do so. If you do not + * wish to do so, delete this exception statement from your version. */ package org.geosdi.geoplatform.support.primitive.string.responsibility; @@ -85,4 +84,4 @@ public void parseDateTime1Test() throws Exception { logger.info("#######################PARSE_DATE_TIME : {}\n", primitiveParserHandlerManager.parseValue("2010-07-05T11:47:14Z").getSimpleName()); } -} +} \ No newline at end of file diff --git a/geoplatform-support/geoplatform-primitive-type/src/test/resources/logback-test.xml b/geoplatform-support/geoplatform-primitive-type/src/test/resources/logback-test.xml index 0a57c8dcbf..dd4ca5fe5c 100644 --- a/geoplatform-support/geoplatform-primitive-type/src/test/resources/logback-test.xml +++ b/geoplatform-support/geoplatform-primitive-type/src/test/resources/logback-test.xml @@ -24,5 +24,6 @@ +