/* Wotonomy: OpenStep design patterns for pure Java applications. Copyright (C) 2005 Israfil Consulting Services Corporation Copyright (C) 2005 Christian Edward Gruber This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, see http://www.gnu.org */ package net.wotonomy.foundation; import java.io.File; import java.net.URL; import java.util.Properties; import junit.framework.Assert; import junit.framework.TestCase; public class NSBundleTest extends TestCase { public NSBundleTest(String arg0) { super(arg0); } protected void setUp() throws Exception { super.setUp(); } protected void tearDown() throws Exception { super.tearDown(); } /* public void testNSBundle() { //TODO Implement NSBundle(). fail("Test not implemented."); } public void testBundleForClass() { //TODO Implement bundleForClass(). fail("Test not implemented."); } */ public void testBundleWithURL() throws Exception{ /* URL url = new File(System.getProperty("user.dir")+"/target/test-classes/TestBundle.framework").toURI().toURL(); System.out.println(url.toString()); NSBundle bundle = NSBundle.bundleWithURL(url); Assert.assertNotNull(bundle); Assert.assertEquals("TestBundle",bundle.name()); Assert.assertEquals(true,bundle.isFramework()); Properties p = bundle.properties(); Assert.assertNotNull(p); Assert.assertEquals("TestValue",p.getProperty("TestKey")); */ } /* public void testBundleForName() { //TODO Implement bundleForName(). fail("Test not implemented."); } public void testFrameworkBundles() { //TODO Implement frameworkBundles(). fail("Test not implemented."); } public void testSetMainBundle() { //TODO Implement setMainBundle(). fail("Test not implemented."); } public void testMainBundle() { //TODO Implement mainBundle(). fail("Test not implemented."); } public void testDefaultLocalePrefix() { //TODO Implement defaultLocalePrefix(). fail("Test not implemented."); } public void testFindOrCreateBundleWithPath() { //TODO Implement findOrCreateBundleWithPath(). fail("Test not implemented."); } public void testBundleClassPackageNames() { //TODO Implement bundleClassPackageNames(). fail("Test not implemented."); } public void testBundlePath() { //TODO Implement bundlePath(). fail("Test not implemented."); } public void testBytesForResourcePath() { //TODO Implement bytesForResourcePath(). fail("Test not implemented."); } public void testBundleClassNames() { //TODO Implement bundleClassNames(). fail("Test not implemented."); } public void testInfoDictionary() { //TODO Implement infoDictionary(). fail("Test not implemented."); } public void testInputStreamForResourcePath() { //TODO Implement inputStreamForResourcePath(). fail("Test not implemented."); } public void testIsFramework() { //TODO Implement isFramework(). fail("Test not implemented."); } public void testLoad() { //TODO Implement load(). fail("Test not implemented."); } public void testName() { //TODO Implement name(). fail("Test not implemented."); } public void testPrincipalClass() { //TODO Implement principalClass(). fail("Test not implemented."); } public void testProperties() { //TODO Implement properties(). fail("Test not implemented."); } public void testResourcePathForLocalizedResourceNamed() { //TODO Implement resourcePathForLocalizedResourceNamed(). fail("Test not implemented."); } public void testResourcePathsForDirectories() { //TODO Implement resourcePathsForDirectories(). fail("Test not implemented."); } public void testResourcePathsForLocalizedResources() { //TODO Implement resourcePathsForLocalizedResources(). fail("Test not implemented."); } public void testResourcePathsForResources() { //TODO Implement resourcePathsForResources(). fail("Test not implemented."); } public void testToString() { //TODO Implement toString(). fail("Test not implemented."); } */ }