1
1
/**
2
- * Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
3
- * www.ortussolutions.com
4
- * ---
5
- */
2
+ * Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
3
+ * www.ortussolutions.com
4
+ * ---
5
+ */
6
6
component {
7
7
8
8
// UPDATE THE NAME OF THE MODULE IN TESTING BELOW
9
9
request .MODULE_NAME = " cbvalidation" ;
10
10
request .MODULE_PATH = " cbvalidation" ;
11
11
12
12
// APPLICATION CFC PROPERTIES
13
- this .name = " ColdBoxTestingSuite" ;
14
- this .sessionManagement = true ;
15
- this .setClientCookies = true ;
16
- this .sessionTimeout = createTimeSpan ( 0 , 0 , 15 , 0 );
17
- this .applicationTimeout = createTimeSpan ( 0 , 0 , 15 , 0 );
18
- // Turn on/off white space management
13
+ this .name = " ColdBoxTestingSuite" ;
14
+ this .sessionManagement = true ;
15
+ this .setClientCookies = true ;
16
+ this .sessionTimeout = createTimespan ( 0 , 0 , 15 , 0 );
17
+ this .applicationTimeout = createTimespan ( 0 , 0 , 15 , 0 );
18
+ // Turn on/off white space management
19
19
this .whiteSpaceManagement = " smart" ;
20
- this .enableNullSupport = shouldEnableFullNullSupport ();
20
+ this .enableNullSupport = shouldEnableFullNullSupport ();
21
21
22
22
// Create testing mapping
23
23
this .mappings [ " /tests" ] = getDirectoryFromPath ( getCurrentTemplatePath () );
24
24
25
25
// The application root
26
- rootPath = reReplaceNoCase ( this .mappings [ " /tests" ], " tests(\\|/)" , " " );
27
- this .mappings [ " /root" ] = rootPath ;
26
+ rootPath = reReplaceNoCase ( this .mappings [ " /tests" ], " tests(\\|/)" , " " );
27
+ this .mappings [ " /root" ] = rootPath ;
28
28
this .mappings [ " /cbi18n" ] = rootPath & " modules/cbi18n" ;
29
29
30
30
// The module root path
@@ -39,18 +39,18 @@ component {
39
39
// request start
40
40
public boolean function onRequestStart ( String targetPage ){
41
41
// Set a high timeout for long running tests
42
- setting requestTimeout = " 9999" ;
42
+ setting requestTimeout = " 9999" ;
43
43
// New ColdBox Virtual Application Starter
44
- request .coldBoxVirtualApp = new coldbox .system .testing .VirtualApp ( appMapping = " /root" );
44
+ request .coldBoxVirtualApp = new coldbox .system .testing .VirtualApp ( appMapping = " /root" );
45
45
46
46
// If hitting the runner or specs, prep our virtual app
47
47
if ( getBaseTemplatePath ().replace ( expandPath ( " /tests" ), " " ).reFindNoCase ( " (runner|specs)" ) ) {
48
48
request .coldBoxVirtualApp .startup ();
49
49
}
50
50
51
51
// ORM Reload for fresh results
52
- if ( structKeyExists ( url , " fwreinit" ) ){
53
- if ( structKeyExists ( server , " lucee" ) ){
52
+ if ( structKeyExists ( url , " fwreinit" ) ) {
53
+ if ( structKeyExists ( server , " lucee" ) ) {
54
54
pagePoolClear ();
55
55
}
56
56
// ormReload();
@@ -60,14 +60,14 @@ component {
60
60
return true ;
61
61
}
62
62
63
- public void function onRequestEnd ( required targetPage ) {
63
+ public void function onRequestEnd ( required targetPage ){
64
64
request .coldBoxVirtualApp .shutdown ();
65
65
}
66
66
67
- private boolean function shouldEnableFullNullSupport () {
68
- var system = createObject ( " java" , " java.lang.System" );
69
- var value = system .getEnv ( " FULL_NULL" );
70
- return isNull ( value ) ? false : !! value ;
71
- }
67
+ private boolean function shouldEnableFullNullSupport (){
68
+ var system = createObject ( " java" , " java.lang.System" );
69
+ var value = system .getEnv ( " FULL_NULL" );
70
+ return isNull ( value ) ? false : !! value ;
71
+ }
72
72
73
73
}
0 commit comments