001/**
002 * Copyright (C) 2014  Universidade de Aveiro, DETI/IEETA, Bioinformatics Group - http://bioinformatics.ua.pt/
003 *
004 * This file is part of Dicoogle/dicoogle.
005 *
006 * Dicoogle/dicoogle is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 *
011 * Dicoogle/dicoogle is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014 * GNU General Public License for more details.
015 *
016 * You should have received a copy of the GNU General Public License
017 * along with Dicoogle.  If not, see <http://www.gnu.org/licenses/>.
018 */
019
020package pt.ua.dicoogle.webui;
021
022import org.junit.After;
023import org.junit.AfterClass;
024import org.junit.Before;
025import org.junit.BeforeClass;
026import org.junit.Test;
027import static org.junit.Assert.*;
028import static pt.ua.dicoogle.server.web.servlets.webui.WebUIServlet.camelize;
029
030/**
031 *
032 * @author Eduardo Pinho <eduardopinho@ua.pt>
033 */
034public class CamelizeTest {
035    
036    public CamelizeTest() {
037    }
038    
039    @BeforeClass
040    public static void setUpClass() {
041    }
042    
043    @AfterClass
044    public static void tearDownClass() {
045    }
046    
047    @Before
048    public void setUp() {
049    }
050    
051    @After
052    public void tearDown() {
053    }
054
055    @Test
056    public void theTest() {
057        assertEquals("dicoogleAnnotationEngine", camelize("dicoogle-annotation-engine"));
058        assertEquals("somethingHere", camelize("something-here"));
059        assertEquals("iAmIronMan", camelize("i-am-iron-man"));
060        assertEquals("cantPlayTricksOnMe", camelize("cant-play--tricks---on----me"));
061    }
062}