@@ -0,0 +1,1285 @@
+package hydrograph.engine.transformation.standardfunctions;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by shivarajn on 3/15/2017.%0A */%0Apublic class SpecialFunctionsTest %7B%0A%0A    @Test%0A    public void itShouldValidateDecode() %7B%0A%0A        String outputCase1 = null, outputCase2 = null, outputCase3 = null, outputCase4 = null, outputCase5 = null;%0A        try %7B%0A            outputCase1 = SpecialFunctions.decode(%22red%22, %22red%22, %22Abort%22, %22green%22, %22Success%22, %22Status Unknown%22);%0A            outputCase2 = SpecialFunctions.decode(%22purple%22, %22red%22, %22Abort%22, %22green%22, %22Success%22, %22Status Unknown%22);%0A            outputCase3 = SpecialFunctions.decode(null, %22red%22, %22Abort%22, %22green%22, %22Success%22, %22Status Unknown%22);%0A            outputCase4 = SpecialFunctions.decode(%22red%22, null);%0A            outputCase5 = SpecialFunctions.decode(%22yellow%22, %22red%22, %22Abort%22, %22green%22, %22Success%22, %22yellow%22, %22In Progress%22, %22Status Unknown%22);%0A        %7D catch (Exception exception) %7B%0A            exception.printStackTrace();%0A        %7D%0A        Assert.assertEquals(%22Abort%22, outputCase1);%0A        Assert.assertEquals(%22Status Unknown%22, outputCase2);%0A        Assert.assertEquals(%22Status Unknown%22, outputCase3);%0A        Assert.assertNull(outputCase4);%0A        Assert.assertEquals(%22In Progress%22, outputCase5);%0A    %7D%0A%7D%0A

Test cases for SpecialFunctions class "decode" method