[Exmmt-commit] SF.net SVN: exmmt: [41] net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt
Status: Inactive
Brought to you by:
lgrammel
From: <lgr...@us...> - 2006-06-06 02:30:09
|
Revision: 41 Author: lgrammel Date: 2006-06-05 02:06:08 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/exmmt/?rev=41&view=rev Log Message: ----------- #1500774 scenario "shopping list" Added Paths: ----------- net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/navigation/ net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/navigation/FocusTest.java Added: net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/navigation/FocusTest.java =================================================================== --- net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/navigation/FocusTest.java (rev 0) +++ net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/navigation/FocusTest.java 2006-06-05 09:06:08 UTC (rev 41) @@ -0,0 +1,38 @@ +/* $HeadURL$ + * ----------------------------------------------------------------------------- + * + * Copyright (C) Lars Grammel and others. + * + * All rights reserved. This program and the accompanying materials are made + * available under the terms of the Common Public License v1.0 which accompanies + * this distribution, and is available at + * + * http://www.eclipse.org/legal/cpl-v10.html + * + */ +package net.sourceforge.exmmt.navigation; + +import static org.junit.Assert.assertEquals; + +import junit.framework.JUnit4TestAdapter; +import net.sourceforge.exmmt.builder.Composite; + +import org.jdom.Element; +import org.junit.Test; + +public class FocusTest { + + @Test public void getInitialFocus() { + Composite composite = new Composite(new Element("test")); + + Focus manager = new Focus(composite); + + assertEquals(composite, manager.getFocusedElement()); + } + + // Junit 3.8.1 backward compability + public static junit.framework.Test suite() { + return new JUnit4TestAdapter(FocusTest.class); + } + +} \ No newline at end of file Property changes on: net.sourceforge.exmmt.test/trunk/src/net/sourceforge/exmmt/navigation/FocusTest.java ___________________________________________________________________ Name: svn:keywords + HeadURL Id LastChangedBy LastChangedDate LastChangedRevision This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |