749
|
1 |
"{ Package: 'stx:libjava/experiments' }"
|
|
2 |
|
|
3 |
TestCase subclass:#TodoTests
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Languages-Java-Tests'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!TodoTests methodsFor:'testing'!
|
|
12 |
|
|
13 |
testFactoryMethod
|
|
14 |
| counter |
|
|
15 |
"I want the StCounter to be created any time. Even in Java code"
|
|
16 |
counter := (Java classForName:'CounterManipulator') new createCounter.
|
|
17 |
self assert: (counter isKindOf: Object).
|
|
18 |
self assert: (counter isKindOf: StCounter).
|
|
19 |
self assert: (counter isKindOf: (Java classForName:'java.lang.Object')).
|
|
20 |
|
|
21 |
"Created: / 09-01-2011 / 19:51:28 / Jan Kurs <kurs.jan@post.cz>"
|
|
22 |
! !
|
|
23 |
|
|
24 |
!TodoTests class methodsFor:'documentation'!
|
|
25 |
|
|
26 |
version_SVN
|
|
27 |
^ '$Id$'
|
|
28 |
! ! |