@@ -0,0 +1,2203 @@
+/*%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 */%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.modeling.uml.Type;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0Aimport java.util.Map;%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 SelectorQueryTest %7B%0A%0A    private SelectorQuery query; // class under test%0A%0A    @Before%0A    public void setup() %7B%0A        query = new SelectorQuery();%0A    %7D%0A%0A    @Test%0A    public void testGetSetIncludeFields() %7B%0A        final List%3CString%3E includeFields = new ArrayList%3CString%3E(Arrays.asList(%221%22, %222%22, %223%22));%0A        query.setIncludeFields(includeFields);%0A        assertEquals(includeFields, query.getIncludeFields());%0A    %7D%0A%0A    @Test%0A    public void testGetSetExcludeFields() %7B%0A        final List%3CString%3E excludeFields = new ArrayList%3CString%3E(Arrays.asList(%221%22, %222%22, %223%22));%0A        query.setExcludeFields(excludeFields);%0A        assertEquals(excludeFields, query.getExcludeFields());%0A    %7D%0A%0A    @Test%0A    public void testGetSetQueries() %7B%0A        @SuppressWarnings(%22unchecked%22)%0A        final List%3CMap%3CType, SelectorQueryPlan%3E%3E mockList = mock(List.class);%0A%0A        query.setQueries(mockList);%0A        assertEquals(mockList, query.getQueries());%0A    %7D%0A%7D%0A

Add SelectorQuery unit test