@@ -0,0 +1,1638 @@
+/*%0A * Copyright (C) 2012 salesforce.com, inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.auraframework.impl;%0A%0Aimport java.util.Map;%0A%0Aimport org.auraframework.Aura;%0Aimport org.auraframework.def.ComponentDef;%0Aimport org.auraframework.throwable.quickfix.AttributeNotFoundException;%0Aimport org.junit.Ignore;%0A%0Aimport com.google.common.collect.Maps;%0A%0Apublic class InstanceServiceImplTest extends AuraImplTestCase %7B%0A%0A    public InstanceServiceImplTest(String name) %7B%0A        super(name);%0A    %7D%0A%0A    /**%0A     * Verify that calling InstanceService with an undefined attributes throws an exception.%0A     */%0A    @Ignore(%22W-1483429%22)%0A    public void testInstanceCreationWithNonExistingArrtibutes()throws Exception%7B%0A        Map%3CString, Object%3E attrMap = Maps.newHashMap();%0A        attrMap.put(%22iDontExist%22, %22bar%22);%0A        try%7B%0A            Aura.getInstanceService().getInstance(%22ui:inputText%22, ComponentDef.class, attrMap);%0A            fail(%22Instantiating a component with undefined attributes should have thrown an exception%22);%0A        %7Dcatch(AttributeNotFoundException e)%7B%0A            // Expected%0A        %7D%0A    %7D%0A%7D

Test case for validation on non-existing attribute