@@ -0,0 +1,3153 @@
+/*******************************************************************************%0A * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Apache License v2.0 which accompany this distribution.%0A *%0A * The Apache License is available at%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *******************************************************************************/%0A%0Apackage io.cloudslang.lang.compiler.modeller.transformers;%0A%0Aimport com.google.common.collect.Sets;%0Aimport java.util.Set;%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0A%0A/**%0A * @author Bonczidai Levente%0A * @since 5/5/2016%0A */%0Apublic class AbstractTransformerTest extends TransformersTestParent %7B%0A%0A    @Rule%0A    public ExpectedException exception = ExpectedException.none();;%0A    private AbstractTransformer abstractTransformer;%0A    private Set%3CString%3E mandatoryKeys;%0A    private Set%3CString%3E optionalKeys;%0A    private String mandatoryKey1;%0A    private String mandatoryKey2;%0A    private String optionalKey1;%0A    private String invalidKey1;%0A%0A    @Before%0A    public void setUp()%7B%0A        abstractTransformer = new AbstractTransformer() %7B%7D;%0A        mandatoryKey1 = %22mandatory1%22;%0A        mandatoryKey2 = %22mandatory2%22;%0A        optionalKey1 = %22optional1%22;%0A        invalidKey1 = %22invalid1%22;%0A        mandatoryKeys = Sets.newHashSet(mandatoryKey1, mandatoryKey2);%0A        optionalKeys = Sets.newHashSet(optionalKey1);%0A    %7D%0A%0A    @Test%0A    public void testNulls() throws Exception %7B%0A        exception.expect(IllegalArgumentException.class);%0A        abstractTransformer.validateKeySet(null, null, null);%0A    %7D%0A%0A    @Test%0A    public void testMandatoryKeys() throws Exception %7B%0A        abstractTransformer.validateKeySet(%0A                Sets.newHashSet(mandatoryKey1, mandatoryKey2),%0A                mandatoryKeys,%0A                optionalKeys%0A        );%0A    %7D%0A%0A    @Test%0A    public void testMandatoryAndOptionalKeys() throws Exception %7B%0A        abstractTransformer.validateKeySet(%0A                Sets.newHashSet(mandatoryKey1, mandatoryKey2, optionalKey1),%0A                mandatoryKeys,%0A                optionalKeys%0A        );%0A    %7D%0A%0A    @Test%0A    public void testInvalidKeys() throws Exception %7B%0A        exception.expect(RuntimeException.class);%0A        exception.expectMessage(AbstractTransformer.INVALID_KEYS_ERROR_MESSAGE_PREFIX);%0A        exception.expectMessage(invalidKey1);%0A        abstractTransformer.validateKeySet(%0A                Sets.newHashSet(mandatoryKey1, mandatoryKey2, invalidKey1),%0A                mandatoryKeys,%0A                optionalKeys%0A        );%0A    %7D%0A%0A    @Test%0A    public void testMissingKeys() throws Exception %7B%0A        exception.expect(RuntimeException.class);%0A        exception.expectMessage(AbstractTransformer.MISSING_KEYS_ERROR_MESSAGE_PREFIX);%0A        exception.expectMessage(mandatoryKey2);%0A        abstractTransformer.validateKeySet(%0A                Sets.newHashSet(mandatoryKey1, optionalKey1),%0A                mandatoryKeys,%0A                optionalKeys%0A        );%0A    %7D%0A%0A%7D

add back test