@@ -0,0 +1,1545 @@
+package com.thebluealliance.androidclient.helpers;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0A@RunWith(RobolectricTestRunner.class)%0A@Config(manifest = Config.NONE)%0Apublic class TeamHelperTest %7B%0A%0A    @Test%0A    public void testValidateKey() %7B%0A        String%5B%5D validKeys = new String%5B%5D%7B%22frc1124%22, %22frc254%22%7D;%0A        String%5B%5D invalidKeys = new String%5B%5D%7Bnull, %22%22, %221124%22, %22frc%22, %22frc11245%22, %22frc254B%22%7D;%0A%0A        for (String key : validKeys) %7B%0A            assertTrue(TeamHelper.validateTeamKey(key));%0A        %7D%0A%0A        for (String key : invalidKeys) %7B%0A            assertFalse(TeamHelper.validateTeamKey(key));%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testValidateMultiTeamKey() %7B%0A        String%5B%5D validKeys = new String%5B%5D%7B%22frc1124b%22, %22frc254A%22%7D;%0A        String%5B%5D invalidKeys = new String%5B%5D%7Bnull, %22%22, %22frc1124%22, %22frc254ab%22, %22frc1114A%25%22%7D;%0A%0A        for (String key : validKeys) %7B%0A            assertTrue(TeamHelper.validateMultiTeamKey(key));%0A        %7D%0A%0A        for (String key : invalidKeys) %7B%0A            assertFalse(TeamHelper.validateMultiTeamKey(key));%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testGetTeamNumber() %7B%0A        assertEquals(-1, TeamHelper.getTeamNumber(null));%0A        assertEquals(1124, TeamHelper.getTeamNumber(%22frc1124%22));%0A        assertEquals(254, TeamHelper.getTeamNumber(%22frc254%22));%0A    %7D%0A%7D

Add TeamHelperTest