@@ -6,50 +6,50 @@ component extends="coldbox.system.testing.BaseTestCase" appMapping="/root" {
6
6
/* ********************************** LIFE CYCLE Methods ***********************************/
7
7
8
8
// executes before all suites+specs in the run() method
9
- function beforeAll () {
9
+ function beforeAll (){
10
10
super .beforeAll ();
11
11
}
12
12
13
13
// executes after all suites+specs in the run() method
14
- function afterAll () {
14
+ function afterAll (){
15
15
super .afterAll ();
16
16
structDelete ( server , getLoader ().getStaticIDKey () );
17
17
}
18
18
19
19
/* ********************************** BDD SUITES ***********************************/
20
20
21
- function run () {
21
+ function run (){
22
22
// all your suites go here.
23
- describe ( " JavaLoader Module" , function () {
24
- beforeEach ( function ( currentSpec ) {
23
+ describe ( " JavaLoader Module" , function (){
24
+ beforeEach ( function ( currentSpec ){
25
25
setup ();
26
26
} );
27
27
28
- it ( " should register loader proxy" , function () {
28
+ it ( " should register loader proxy" , function (){
29
29
var loader = getLoader ();
30
30
expect ( loader ).toBeComponent ();
31
31
} );
32
32
33
- it ( " should class load jar files" , function () {
33
+ it ( " should class load jar files" , function (){
34
34
var event = execute ( " main.index" );
35
35
var prc = event .getCollection ( private = true );
36
36
expect ( prc .hello ).toBe ( " Hello World" );
37
37
} );
38
38
39
- it ( " should get loaded URLs" , function () {
39
+ it ( " should get loaded URLs" , function (){
40
40
var loader = getLoader ();
41
41
expect ( loader .getLoadedURls () ).toBeArray ();
42
42
expect ( loader .getLoadedURLs () ).toHaveLength ( 2 );
43
43
} );
44
44
45
- it ( " should retrieve via custom DSL" , function () {
45
+ it ( " should retrieve via custom DSL" , function (){
46
46
var hello = getWireBox ().getInstance ( dsl = " javaloader:HelloWorld" );
47
47
expect ( isObject ( hello ) ).toBeTrue ();
48
48
} );
49
49
} );
50
50
}
51
51
52
- private function getLoader () {
52
+ private function getLoader (){
53
53
return getWireBox ().getInstance ( " loader@cbjavaloader" );
54
54
}
55
55
0 commit comments