@@ -0,0 +1,2781 @@
+/*%0A * Copyright 2012 Shared Learning Collaborative, LLC%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 */%0A%0A%0Apackage org.slc.sli.api.selectors.doc;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.slc.sli.domain.NeutralQuery;%0Aimport org.slc.sli.modeling.uml.Type;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.mockito.Mockito.mock;%0A%0A/**%0A * @author jstokes%0A */%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(locations = %7B %22/spring/applicationContext-test.xml%22 %7D)%0Apublic class SelectorQueryPlanTest %7B%0A%0A    private SelectorQueryPlan queryPlan;%0A%0A    @Before%0A    public void setup() %7B%0A        queryPlan = new SelectorQueryPlan();%0A    %7D%0A%0A    @Test%0A    public void testGetSetQuery() %7B%0A        final NeutralQuery mockQuery = mock(NeutralQuery.class);%0A        queryPlan.setQuery(mockQuery);%0A        assertEquals(mockQuery, queryPlan.getQuery());%0A    %7D%0A%0A    @Test%0A    public void testGetSetType() %7B%0A        final Type mockType = mock(Type.class);%0A        queryPlan.setType(null);%0A        assertEquals(null, queryPlan.getType());%0A    %7D%0A%0A    @Test%0A    public void testGetSetChildQueryPlans() %7B%0A        @SuppressWarnings(%22unchecked%22)%0A        final List%3CObject%3E mockList = mock(List.class);%0A        queryPlan.setChildQueryPlans(mockList);%0A        assertEquals(mockList, queryPlan.getChildQueryPlans());%0A    %7D%0A%0A    @Test%0A    public void testIncludeExcludeFields() %7B%0A        @SuppressWarnings(%22unchecked%22)%0A        final List%3CString%3E mockInclude = mock(List.class);%0A        queryPlan.setIncludeFields(mockInclude);%0A        assertEquals(mockInclude, queryPlan.getIncludeFields());%0A%0A        @SuppressWarnings(%22unchecked%22)%0A        final List%3CString%3E mockExclude = mock(List.class);%0A        queryPlan.setExcludeFields(mockExclude);%0A        assertEquals(mockExclude, queryPlan.getExcludeFields());%0A    %7D%0A%0A    @Test%0A    public void testParseFields() %7B%0A        @SuppressWarnings(%22unchecked%22)%0A        final List%3CString%3E mockParse = mock(List.class);%0A        queryPlan.setParseFields(mockParse);%0A        assertEquals(mockParse, queryPlan.getParseFields());%0A    %7D%0A%7D%0A

Add SelectorQueryPlan unit test