@@ -0,0 +1,2370 @@
+package io.cloudslang.lang.compiler;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0A/**%0A * User: bancl%0A * Date: 7/4/2016%0A */%0Apublic class ExtensionTest %7B%0A%0A    @Rule%0A    public ExpectedException exception = ExpectedException.none();%0A%0A    @Test%0A    public void testValidateSlangFileExtensionInvalidExtension() %7B%0A        exception.expect(RuntimeException.class);%0A        exception.expectMessage(%22File: slang.sls must have one of the following extensions: sl, sl.yaml, sl.yml.%22);%0A        Extension.validateSlangFileExtension(%22slang.sls%22);%0A    %7D%0A%0A    @Test%0A     public void testValidateSlangFileExtensionSL() %7B%0A        Extension.validateSlangFileExtension(%22slang.sl%22);%0A    %7D%0A%0A    @Test%0A    public void testValidateSlangFileExtensionSLYAML() %7B%0A        Extension.validateSlangFileExtension(%22slang.sl.yaml%22);%0A    %7D%0A%0A    @Test%0A    public void testValidateSlangFileExtensionSLYML() %7B%0A        Extension.validateSlangFileExtension(%22slang.sl.yml%22);%0A    %7D%0A%0A    @Test%0A    public void testValidatePropertiesFileExtensionInvalidExtension() %7B%0A        exception.expect(RuntimeException.class);%0A        exception.expectMessage(%22File: slang.sls must have one of the following extensions: prop.sl.%22);%0A        Extension.validatePropertiesFileExtension(%22slang.sls%22);%0A    %7D%0A%0A    @Test%0A    public void testValidatePropertiesFileExtensionPROPSL() %7B%0A        Extension.validatePropertiesFileExtension(%22slang.prop.sl%22);%0A    %7D%0A%0A    @Test%0A    public void testRemoveFileExtension() %7B%0A        Assert.assertEquals(%22slang%22, Extension.removeExtension(%22slang.prop.sl%22));%0A    %7D%0A%0A    @Test%0A    public void testRemoveFileExtensionInvalidExtension() %7B%0A        Assert.assertEquals(%22slang.prsaop.sasdl%22, Extension.removeExtension(%22slang.prsaop.sasdl%22));%0A    %7D%0A%0A    @Test%0A    public void testFindExtension() %7B%0A        Assert.assertEquals(Extension.PROP_SL, Extension.findExtension(%22slang.prop.sl%22));%0A    %7D%0A%0A    @Test%0A    public void testFindExtensionInvalidExtension() %7B%0A        Assert.assertEquals(null, Extension.findExtension(%22slang.prsaop.sasdl%22));%0A    %7D%0A%0A    @Test%0A    public void testGetYAMLFileExtension() %7B%0A        String%5B%5D extensions = Extension.getYamlFileExtensionValues();%0A        Assert.assertEquals(2, extensions.length);%0A        Assert.assertEquals(%22yaml%22, extensions%5B0%5D);%0A        Assert.assertEquals(%22yml%22, extensions%5B1%5D);%0A    %7D%0A%7D%0A

increase test coverage