Skip to content

Commit

Permalink
Fix NullPointerException in InspireValidatorUtilsTest (#3929)
Browse files Browse the repository at this point in the history
Fix a NPE in InspireValidatorUtilsTest  caused by @Autowired without Spring
Context introduced in #3915 (cc9ef24).
  • Loading branch information
juanluisrp committed Jul 16, 2019
1 parent 47e8cc9 commit 12c168a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package org.fao.geonet.api.records.editing;

import static org.junit.Assert.assertEquals;

import javassist.NotFoundException;
import org.fao.geonet.services.AbstractServiceIntegrationTest;
import org.junit.Ignore;
import org.junit.Test;

import javassist.NotFoundException;
import org.springframework.beans.factory.annotation.Autowired;

public class InspireValidatorUtilsTest {
import static org.junit.Assert.assertEquals;

public class InspireValidatorUtilsTest extends AbstractServiceIntegrationTest {

private static String URL = "http://inspire-sandbox.jrc.ec.europa.eu/etf-webapp";

Expand Down Expand Up @@ -39,7 +39,7 @@ public void testLifeCycle() {

// FIRST TEST IF OFFICIAL ETF IS AVAILABLE
// Needed to avoid GN errors when ETF is not available
if(inspireValidatorUtils.checkServiceStatus(URL, null)) {
if (inspireValidatorUtils.checkServiceStatus(URL, null)) {

try {
// No file
Expand Down

0 comments on commit 12c168a

Please sign in to comment.