/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.bridgedb.uri;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.bridgedb.uri.tools.GraphResolver;
import org.bridgedb.uri.tools.RegexUriPattern;
import org.bridgedb.utils.BridgeDBException;
import org.bridgedb.utils.Reporter;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Christian
 */
public class GraphResolverTest {
    
    public GraphResolverTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of knownGraphs method, of class GraphResolver.
     */
    @Test
    public void testKnownGraphs() throws Exception {
        Reporter.println("knownGraphs");
        Set result = GraphResolver.knownGraphs();
    }

    /**
     * Test of getUriPatternsForGraph method, of class GraphResolver.
     */
    @Test
    public void testGetUriPatternsForGraph() throws Exception {
        Reporter.println("getUriPatternsForGraph");
        GraphResolver.addTestMappings();
        String graph = "http://www.conceptwiki.org";
        Set<RegexUriPattern> expResult = new HashSet<RegexUriPattern>();
        expResult.addAll(RegexUriPattern.existingByPattern("http://www.conceptwiki.org/concept/$id"));
        Set result = GraphResolver.getUriPatternsForGraph(graph);
        assertEquals(expResult, result);
    }

    /**
     * Test of getAllowedUriPatterns method, of class GraphResolver.
     */
    @Test
    public void testGetAllowedUriPatterns() throws BridgeDBException {
        Reporter.println("getAllowedUriPatterns");
        GraphResolver instance = GraphResolver.getInstance();
        Map result = instance.getAllowedUriPatterns();
    }
}

@@ -359,24 +359,25 @@
 s.Reporter;%0A
+%0A
 import org.j
@@ -384,123 +384,25 @@
 unit
-.After;%0Aimport org.junit.AfterClass;%0Aimport org
 .ju
-nit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test
+piter.api.*
 ;%0A
+%0A
 impo
@@ -557,21 +557,19 @@
  @Before
-Class
+All
 %0A    pub
@@ -620,21 +620,19 @@
   @After
-Class
+All
 %0A    pub
@@ -687,16 +687,20 @@
  @Before
+Each
 %0A    pub
@@ -739,16 +739,20 @@
   @After
+Each
 %0A    pub
@@ -852,32 +852,54 @@
 r.%0A     */%0A    @
+org.junit.jupiter.api.
 Test%0A    public 
@@ -1121,32 +1121,54 @@
 r.%0A     */%0A    @
+org.junit.jupiter.api.
 Test%0A    public 
@@ -1741,21 +1741,43 @@
      */%0A
-
     @
+org.junit.jupiter.api.
 Test%0A   

Update GraphResolverTest.java