@@ -0,0 +1,2678 @@
+import static org.junit.Assert.*;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport us.nineworlds.serenity.core.externalplayer.ExternalPlayer;%0Aimport us.nineworlds.serenity.core.externalplayer.ExternalPlayerFactory;%0Aimport us.nineworlds.serenity.core.externalplayer.MXPlayer;%0Aimport us.nineworlds.serenity.core.externalplayer.MXPlayerPro;%0Aimport us.nineworlds.serenity.core.externalplayer.ViMuPlayer;%0A%0A/**%0A * The MIT License (MIT)%0A * Copyright (c) 2012 David Carver%0A * Permission is hereby granted, free of charge, to any person obtaining%0A * a copy of this software and associated documentation files (the%0A * %22Software%22), to deal in the Software without restriction, including%0A * without limitation the rights to use, copy, modify, merge, publish,%0A * distribute, sublicense, and/or sell copies of the Software, and to%0A * permit persons to whom the Software is furnished to do so, subject to%0A * the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included%0A * in all copies or substantial portions of the Software.%0A * %0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS%0A * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS%0A * OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,%0A * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF%0A * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0A * SOFTWARE.%0A */%0A%0A/**%0A * @author dcarver%0A *%0A */%0Apublic class ExternalPlayerFactoryTest %7B%0A%0A%09private ExternalPlayerFactory player;%0A%09%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09player = new ExternalPlayerFactory(null, null);%0A%09%7D%0A%0A%09/**%0A%09 * @throws java.lang.Exception%0A%09 */%0A%09@After%0A%09public void tearDown() throws Exception %7B%0A%09%09player = null;%0A%09%7D%0A%0A%09/**%0A%09 * Test method for %7B@link us.nineworlds.serenity.core.externalplayer.ExternalPlayerFactory#createExternalPlayer(java.lang.String)%7D.%0A%09 */%0A%09@Test%0A%09public void testCreateExternalPlayer() %7B%0A%09%09assertNotNull(player);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testCreateMXPlayer() %7B%0A%09%09ExternalPlayer p = player.createExternalPlayer(%22mxplayer%22);%0A%09%09assertNotNull(p);%0A%09%09assertTrue(p instanceof MXPlayer);%0A%09%7D%0A%09%0A%09@Test%0A%09public void testCreateMXPlayerPro() %7B%0A%09%09ExternalPlayer p = player.createExternalPlayer(%22mxplayerpro%22);%0A%09%09assertNotNull(p);%0A%09%09assertTrue(p instanceof MXPlayerPro);%0A%09%7D%0A%0A%09@Test%0A%09public void testCreateVimu() %7B%0A%09%09ExternalPlayer p = player.createExternalPlayer(%22vimu%22);%0A%09%09assertNotNull(p);%0A%09%09assertTrue(p instanceof ViMuPlayer);%0A%09%7D%0A%09%0A%7D%0A

Add unit tests