Project

General

Profile

« Previous | Next » 

Revision da3cc7e3

Added by Cherian Mathew over 8 years ago

Correct properties file load and server info test

View differences:

eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/ui/dialogs/CdmServerInfoTest.java
12 12
import java.util.List;
13 13

  
14 14
import org.junit.Assert;
15
import org.junit.Ignore;
16 15
import org.junit.Test;
17 16
import org.unitils.UnitilsJUnit4;
18 17

  
......
36 35
        }
37 36
    }
38 37

  
39
    // FIXME:Remoting this is an integration test and should be run against a
40
    //  cdmserver
41
    @Ignore
38

  
42 39
    @Test
43 40
    public void pingInstancesTest() {
44
        CdmServerInfo csii = new CdmServerInfo("localhost", "localhost", 8080);
41
        CdmServerInfo csii = new CdmServerInfo("edit-test", "test.e-taxonomy.eu", 8080);
45 42
        try {
46 43
            csii.refreshInstances();
47 44
            List<CdmInstanceInfo> instances = csii.getInstances();
......
67 64

  
68 65
    @Test
69 66
    public void refreshInstancesTest() throws CDMServerException {
70
        CdmServerInfo cdmServerInfo = new CdmServerInfo(CdmServerInfo.NAME_LOCALHOST_MGD, CdmServerInfo.SERVER_LOCALHOST,8080);
67
        CdmServerInfo cdmServerInfo = new CdmServerInfo("edit-test", "test.e-taxonomy.eu", 8080);
71 68
        cdmServerInfo.refreshInstances();
72 69
        List<CdmInstanceInfo> instances = cdmServerInfo.getInstances();
73 70
        Assert.assertTrue(instances != null && !instances.isEmpty());

Also available in: Unified diff