author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 14 Feb 2013 16:15:31 +0000 | |
branch | development |
changeset 2069 | 75d40b7b986f |
parent 1915 | d043048afdcd |
child 2380 | 9195eccdcbd9 |
permissions | -rw-r--r-- |
1019 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1152 | 3 |
|
1155 | 4 |
New code and modifications done at SWING Research Group [1]: |
1152 | 5 |
|
1019 | 6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
1155 | 16 |
[1] Code written at SWING Research Group contains a signature |
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
1152 | 19 |
as of 1.9.2010 |
1019 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
23 |
TestCase subclass:#JavaClassLoadingTests |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Tests-ClassLoading' |
|
28 |
! |
|
29 |
||
30 |
!JavaClassLoadingTests class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1152 | 35 |
|
1155 | 36 |
New code and modifications done at SWING Research Group [1]: |
1152 | 37 |
|
1019 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
1155 | 48 |
[1] Code written at SWING Research Group contains a signature |
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
1152 | 51 |
as of 1.9.2010 |
1019 | 52 |
|
53 |
" |
|
54 |
! ! |
|
55 |
||
56 |
!JavaClassLoadingTests class methodsFor:'resources'! |
|
57 |
||
58 |
resources |
|
59 |
^ Array with: JavaFreshlyInitializedResource. |
|
60 |
||
1021
8ae6c261878a
changed class loaders order, loading of primitive arrays, refactoring coming soon..
hlopkmar
parents:
1019
diff
changeset
|
61 |
"^ Array with: JavaFreshlyInitializedResource." |
1019 | 62 |
"Created: / 12-10-2011 / 14:40:40 / Marcel Hlopko <hlopik@gmail.com>" |
63 |
! ! |
|
64 |
||
65 |
!JavaClassLoadingTests methodsFor:'simple'! |
|
66 |
||
67 |
testClassIsLoadedOnlyOnce |
|
68 |
self assertTrue: ((Java classForName: 'java.lang.String') |
|
69 |
== (Java classForName: 'java.lang.String')). |
|
70 |
||
71 |
"Created: / 12-10-2011 / 14:44:12 / Marcel Hlopko <hlopik@gmail.com>" |
|
72 |
! |
|
73 |
||
74 |
testLoadingArray |
|
75 |
self assertTrue: ((Java classForName: '[Ljava.lang.Object;') notNil). |
|
76 |
||
77 |
"Created: / 12-10-2011 / 14:53:51 / Marcel Hlopko <hlopik@gmail.com>" |
|
78 |
! |
|
79 |
||
80 |
testLoadingMultidimensionalArray |
|
81 |
self assertTrue: ((Java classForName: '[[[[[Ljava.lang.String;') notNil). |
|
82 |
||
83 |
"Created: / 12-10-2011 / 14:58:34 / Marcel Hlopko <hlopik@gmail.com>" |
|
84 |
! |
|
85 |
||
86 |
testLoadingObject |
|
87 |
self assertTrue: ((Java classForName: 'java.lang.Object') notNil). |
|
88 |
||
89 |
"Created: / 12-10-2011 / 14:42:34 / Marcel Hlopko <hlopik@gmail.com>" |
|
90 |
! |
|
91 |
||
92 |
testLoadingPrimitiveArray |
|
93 |
self assertTrue: ((Java classForName: '[I') notNil). |
|
94 |
||
95 |
"Created: / 12-10-2011 / 14:58:03 / Marcel Hlopko <hlopik@gmail.com>" |
|
96 |
! |
|
97 |
||
98 |
testLoadingPrimitiveMultidimensionalArray |
|
99 |
self assertTrue: ((Java classForName: '[[[[D') notNil). |
|
100 |
||
101 |
"Created: / 12-10-2011 / 14:58:17 / Marcel Hlopko <hlopik@gmail.com>" |
|
102 |
! |
|
103 |
||
104 |
testLoadingString |
|
105 |
self assertTrue: ((Java classForName: 'java.lang.String') notNil). |
|
106 |
||
107 |
"Created: / 12-10-2011 / 14:42:53 / Marcel Hlopko <hlopik@gmail.com>" |
|
108 |
! ! |
|
109 |
||
110 |
!JavaClassLoadingTests class methodsFor:'documentation'! |
|
111 |
||
2069 | 112 |
version_CVS |
113 |
^ '$Header$' |
|
114 |
! |
|
115 |
||
1915 | 116 |
version_HG |
117 |
||
118 |
^ '$Changeset: <not expanded> $' |
|
119 |
! |
|
120 |
||
1019 | 121 |
version_SVN |
1915 | 122 |
^ '§Id§' |
1019 | 123 |
! ! |
2069 | 124 |