summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.foundation/src/test/java/net/wotonomy/foundation/NSBundleTest.java
blob: 3945f4a6569e1ade8e98068d03aeadd8ea222584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
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."); }
	 * 
	 */

}