/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.espas.carbon.pip;

import java.net.URI;
import java.util.Properties;
import java.util.Set;
import junit.framework.TestCase;
import org.apache.log4j.Logger;

/**
 *
 * @author gathanas
 */
public class EspasAttributeFinderTest extends TestCase {
    
    public EspasAttributeFinderTest(String testName) {
        super(testName);
    }

    public void testInit() {
        try {
            System.out.println("init");
            Properties properties = new Properties();
            properties.put("espas.db.url", "jdbc:postgresql://dl121.madgik.di.uoa.gr/dnet_espas_v2");
            properties.put("espas.db.user", "dnet");
            properties.put("espas.db.passwd", "dnetPwd");
            
            EspasAttributeFinder instance = new EspasAttributeFinder();
            instance.init(properties);
            // TODO review the generated test code and remove the default call to fail.
            assert true;
        } catch (Exception ex) {
            Logger.getLogger(EspasAttributeFinderTest.class).error("Exception in test initialization", ex);
            assert true;
        }
    }

/*    public void testGetAttributeValues() throws Exception {
        System.out.println("getAttributeValues");
        String subjectId = "";
        String resourceId = "";
        String actionId = "";
        String environmentId = "";
        String attributeId = "";
        URI issuer = null;
        EspasAttributeFinder instance = new EspasAttributeFinder();
        Set expResult = null;
        Set result = instance.getAttributeValues(subjectId, resourceId, actionId, environmentId, attributeId, issuer);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    public void testGetSupportedAttributes() {
        System.out.println("getSupportedAttributes");
        EspasAttributeFinder instance = new EspasAttributeFinder();
        Set expResult = null;
        Set result = instance.getSupportedAttributes();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }
    */
}
