@@ -0,0 +1,1618 @@
+/*%0D%0A * Copyright 2002-2007 the original author or authors.%0D%0A *%0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0D%0A * use this file except in compliance with the License. You may obtain a copy of%0D%0A * the License at%0D%0A *%0D%0A * http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0D%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0D%0A * License for the specific language governing permissions and limitations under%0D%0A * the License.%0D%0A */%0D%0Apackage org.springframework.richclient.application.support;%0D%0A%0D%0Aimport org.easymock.EasyMock;%0D%0Aimport org.springframework.richclient.application.ApplicationWindow;%0D%0Aimport org.springframework.richclient.test.SpringRichTestCase;%0D%0A%0D%0A/**%0D%0A * Test for %3Ccode%3EDefaultApplicationPageFactory%3C/code%3E%0D%0A * %0D%0A * @author Peter De Bruycker%0D%0A */%0D%0Apublic class DefaultApplicationPageFactoryTests extends SpringRichTestCase %7B%0D%0A%0D%0A%09public void testCreate() %7B%0D%0A%09%09DefaultApplicationPageFactory factory = new DefaultApplicationPageFactory();%0D%0A%09%09%0D%0A%09%09ApplicationWindow window = (ApplicationWindow) EasyMock.createMock(ApplicationWindow.class);%0D%0A%09%09SingleViewPageDescriptor descriptor= new SingleViewPageDescriptor(new DefaultViewDescriptor());%0D%0A%09%09%0D%0A%09%09DefaultApplicationPage page = (DefaultApplicationPage) factory.createApplicationPage(window, descriptor);%0D%0A%09%09assertNotNull(%22page cannot be null%22, page);%0D%0A%09%09assertEquals(window, page.getWindow());%0D%0A%09%09assertEquals(descriptor, page.getPageDescriptor());%0D%0A%09%7D%0D%0A%09%0D%0A%7D%0D%0A

add test for DefaultApplicationPageFactory