author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 30 Jan 2013 17:27:21 +0000 | |
branch | development |
changeset 2013 | 422f7637aecb |
parent 1959 | 11cd2c406930 |
child 2069 | 75d40b7b986f |
permissions | -rw-r--r-- |
877 | 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 |
|
877 | 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 |
877 | 20 |
" |
752 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
23 |
TestCase subclass:#JavaByteCodeProcessorTests |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Tests' |
|
28 |
! |
|
29 |
||
877 | 30 |
!JavaByteCodeProcessorTests 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 |
|
877 | 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 |
877 | 52 |
|
53 |
" |
|
54 |
! ! |
|
752 | 55 |
|
891 | 56 |
!JavaByteCodeProcessorTests class methodsFor:'testing'! |
57 |
||
58 |
isAbstract |
|
59 |
||
60 |
^self == JavaByteCodeProcessorTests |
|
61 |
||
62 |
"Created: / 08-08-2011 / 17:36:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
63 |
! ! |
|
64 |
||
752 | 65 |
!JavaByteCodeProcessorTests methodsFor:'tests-helpers'! |
66 |
||
67 |
invoke: methodName class: aClass args: args |
|
68 |
^ self invoke:methodName class: aClass receiver:aClass args: args |
|
69 |
||
70 |
"Created: / 10-03-2011 / 23:32:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
71 |
! |
|
72 |
||
73 |
invoke:arg1 class:arg2 receiver:arg3 args:arg4 |
|
74 |
"raise an error: must be redefined in concrete subclass(es)" |
|
75 |
||
76 |
^ self subclassResponsibility |
|
77 |
! |
|
78 |
||
79 |
loadCrateJavaClass |
|
80 |
^ Java classForName: 'stx.libjava.tests.simpleClasses.Crate'. |
|
81 |
||
82 |
"Created: / 10-03-2011 / 21:34:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
83 |
! |
|
84 |
||
85 |
loadSimpleClassWithManyReferences |
|
86 |
^ Java |
|
87 |
classForName: 'stx.libjava.tests.mocks.SimpleClassWithManyReferences'. |
|
88 |
||
89 |
"Created: / 14-03-2011 / 21:26:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
90 |
"Modified: / 07-04-2011 / 23:15:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
91 |
! |
|
92 |
||
93 |
loadSimpleInheritingJavaClass |
|
94 |
^ Java classForName: 'stx.libjava.tests.mocks.SimpleInheritingClass'. |
|
95 |
||
96 |
"Created: / 10-03-2011 / 21:34:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
97 |
"Modified: / 07-04-2011 / 23:15:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
98 |
! |
|
99 |
||
100 |
loadSimpleMathJavaClass |
|
101 |
^ Java classForName: 'stx.libjava.tests.mocks.SimpleMath'. |
|
102 |
||
103 |
"Created: / 10-03-2011 / 21:28:48 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
104 |
"Modified: / 07-04-2011 / 23:15:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
105 |
! |
|
106 |
||
107 |
loadSwitchExamplesClass |
|
108 |
^ Java classForName: 'stx.libjava.tests.mocks.SwitchExamples'. |
|
109 |
||
110 |
"Created: / 21-03-2011 / 13:51:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
111 |
"Modified: / 07-04-2011 / 23:15:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
112 |
! ! |
|
113 |
||
114 |
!JavaByteCodeProcessorTests class methodsFor:'documentation'! |
|
115 |
||
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1868
diff
changeset
|
116 |
version_HG |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1868
diff
changeset
|
117 |
|
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1868
diff
changeset
|
118 |
^ '$Changeset: <not expanded> $' |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1868
diff
changeset
|
119 |
! |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1868
diff
changeset
|
120 |
|
752 | 121 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1868
diff
changeset
|
122 |
^ '§Id§' |
752 | 123 |
! ! |
1959
11cd2c406930
Bugfix: added lost method String class>>javaName.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1876
diff
changeset
|
124 |