package org.mskcc.cbio.portal.util;

import junit.framework.TestCase;
import org.mskcc.cbio.portal.util.SkinUtil;

/**
 * Tests the SkinUtil Class.
 *
 * @author Ethan Cerami.
 */
public class TestSkinUtil extends TestCase {

    public void test1() {
        String contactEmail = SkinUtil.getEmailContact();
        assertEquals("<span class=\"mailme\" title=\"Contact us\">cancergenomics at " +
                "cbio dot mskcc dot org</span>", contactEmail);
    }

    public void test2() {
        assertEquals(true, SkinUtil.showNewsTab());
        assertEquals(true, SkinUtil.showDataTab());
        assertEquals(true, SkinUtil.showRightNavDataSets());
        assertEquals(true, SkinUtil.showRightNavExamples());
        assertEquals("Access to this portal is only available to authorized users.",
                SkinUtil.getAuthorizationMessage());
    }

}

@@ -303,24 +303,18 @@
 tact();%0A
-        
+%09%09
 assertEq
@@ -368,68 +368,52 @@
 %5C%22%3Ec
-ancergenomics at %22 +%0A                %22cbio dot mskcc
+bioportal at %22 +%0A%09%09%09%09%09 %22googlegroups
  dot 
-org
+com
 %3C/sp

update to email contact test