@@ -0,0 +1,619 @@
+package com.problems.test;%0A%0Aimport com.problems.SortBinaryArrayInLinearTime;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by Maks on 4/19/2017.%0A */%0Apublic class SortBinaryArrayInLinearTimeTest %7B%0A%0A    @Test%0A    public  void Solution1Test1()%7B%0A        SortBinaryArrayInLinearTime s =new SortBinaryArrayInLinearTime();%0A        Integer%5B%5D input= new Integer%5B%5D%7B 1, 0, 1, 0, 1, 0, 0, 1 %7D;%0A        Integer%5B%5D expected= new Integer%5B%5D%7B 0, 0, 0, 0, 1, 1, 1, 1 %7D;%0A%0A        s.Solution1(input);%0A        for(int i=0; i%3Cexpected.length; i++ )%7B%0A            Assert.assertEquals(expected%5Bi%5D, input%5Bi%5D);%0A        %7D%0A    %7D%0A%7D%0A

Test for binary array in linear time