@@ -0,0 +1,864 @@
+package com.zeroleaf.leetcode.array;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by zeroleaf on 16/1/21.%0A */%0Apublic class LongestSubstringWithoutRepeatingCharactersTest %7B%0A%0A    private LongestSubstringWithoutRepeatingCharacters solution;%0A%0A    @Before%0A    public void setUp() %7B%0A        solution = new LongestSubstringWithoutRepeatingCharacters();%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        String case1 = %22abcabcbb%22;%0A        Assert.assertEquals(3, solution.lengthOfLongestSubstring(case1));%0A%0A        String case2 = %22bbbbb%22;%0A        Assert.assertEquals(1, solution.lengthOfLongestSubstring(case2));%0A%0A        String case3 = %22c%22;%0A        Assert.assertEquals(1, solution.lengthOfLongestSubstring(case3));%0A%0A        String case4 = %22ab%22;%0A        Assert.assertEquals(2, solution.lengthOfLongestSubstring(case4));%0A    %7D%0A%7D%0A

Add LongestSubstringWithoutRepeatingCharactersTest