/*
*BridgeDb,
*An abstraction layer for identifier mapping services, both local and online.
*Copyright (c) 2006-2009 BridgeDb developers
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and limitations under the License.
*/

package org.bridgedb.statistics;

import org.junit.Assert;

public class DataSetInfoTest {

    @org.junit.Test
    public void getSysCode() {
        DataSetInfo dataSetInfo = new DataSetInfo("En", "Ensembl");
        Assert.assertEquals("En", dataSetInfo.getSysCode());
    }

    @org.junit.Test
    public void getFullName() {
        DataSetInfo dataSetInfo = new DataSetInfo("En", "Ensembl");
        Assert.assertEquals("Ensembl", dataSetInfo.getFullName());
    }

    @org.junit.Test
    public void equals() {
        DataSetInfo dataSetInfo = new DataSetInfo("En", "Ensembl");
        Object object = new DataSetInfo("En", "Ensembl");
        Assert.assertTrue(object.equals(dataSetInfo));
    }

    @org.junit.Test
    public void compareTo() {
        DataSetInfo dataSetInfo = new DataSetInfo("En", "Ensembl");
        DataSetInfo other = new DataSetInfo("X", "Affy");
        DataSetInfo dataSetInfo1 = new DataSetInfo("En", "Ensembl");
        Assert.assertNotEquals(0, dataSetInfo.compareTo(other));
        Assert.assertEquals(0, dataSetInfo.compareTo(dataSetInfo1));
    }

    @org.junit.Test
    public void testToString() {
        DataSetInfo dataSetInfo = new DataSetInfo(null, "Affy");
        Assert.assertEquals("Affy", dataSetInfo.toString());
        DataSetInfo dataSetInfo1 = new DataSetInfo("En", "Ensembl");
        Assert.assertEquals("En",dataSetInfo1.toString());
    }
}

@@ -106,35 +106,46 @@
 ) 20
-06-2009 BridgeDb developers
+19 Manas Awasthi, %3Cmarvex17@gmail.com%3E
 %0A*%0A*
@@ -714,16 +714,23 @@
 %0Aimport 
+static 
 org.juni
@@ -731,22 +731,40 @@
 g.junit.
-Assert
+jupiter.api.Assertions.*
 ;%0A%0Apubli
@@ -797,32 +797,44 @@
 %0A    @org.junit.
+jupiter.api.
 Test%0A    public 
@@ -921,39 +921,32 @@
 embl%22);%0A        
-Assert.
 assertEquals(%22En
@@ -989,32 +989,44 @@
 %0A    @org.junit.
+jupiter.api.
 Test%0A    public 
@@ -1114,39 +1114,32 @@
 embl%22);%0A        
-Assert.
 assertEquals(%22En
@@ -1188,32 +1188,44 @@
 %0A    @org.junit.
+jupiter.api.
 Test%0A    public 
@@ -1370,31 +1370,24 @@
 %22);%0A        
-Assert.
 assertTrue(o
@@ -1428,32 +1428,44 @@
 %0A    @org.junit.
+jupiter.api.
 Test%0A    public 
@@ -1682,31 +1682,24 @@
 %22);%0A        
-Assert.
 assertNotEqu
@@ -1736,39 +1736,32 @@
 ther));%0A        
-Assert.
 assertEquals(0, 
@@ -1820,16 +1820,28 @@
 g.junit.
+jupiter.api.
 Test%0A   
@@ -1935,39 +1935,32 @@
 Affy%22);%0A        
-Assert.
 assertEquals(%22Af
@@ -2070,15 +2070,8 @@
     
-Assert.
 asse
@@ -2116,10 +2116,8 @@
 ;%0A    %7D%0A
-%7D%0A

Update DataSetInfoTest.java