Skip to content

Commit 68a72f3

Browse files
michaelborngithub-actions[bot]
authored andcommitted
Apply cfformat changes
1 parent f8362f5 commit 68a72f3

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

test-harness/tests/Application.cfc

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
/**
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+
*/
66
component {
77

88
// UPDATE THE NAME OF THE MODULE IN TESTING BELOW
99
request.MODULE_NAME = "cbvalidation";
1010
request.MODULE_PATH = "cbvalidation";
1111

1212
// 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
1919
this.whiteSpaceManagement = "smart";
20-
this.enableNullSupport = shouldEnableFullNullSupport();
20+
this.enableNullSupport = shouldEnableFullNullSupport();
2121

2222
// Create testing mapping
2323
this.mappings[ "/tests" ] = getDirectoryFromPath( getCurrentTemplatePath() );
2424

2525
// 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;
2828
this.mappings[ "/cbi18n" ] = rootPath & "modules/cbi18n";
2929

3030
// The module root path
@@ -39,18 +39,18 @@ component {
3939
// request start
4040
public boolean function onRequestStart( String targetPage ){
4141
// Set a high timeout for long running tests
42-
setting requestTimeout="9999";
42+
setting requestTimeout ="9999";
4343
// 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" );
4545

4646
// If hitting the runner or specs, prep our virtual app
4747
if ( getBaseTemplatePath().replace( expandPath( "/tests" ), "" ).reFindNoCase( "(runner|specs)" ) ) {
4848
request.coldBoxVirtualApp.startup();
4949
}
5050

5151
// 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" ) ) {
5454
pagePoolClear();
5555
}
5656
// ormReload();
@@ -60,14 +60,14 @@ component {
6060
return true;
6161
}
6262

63-
public void function onRequestEnd( required targetPage ) {
63+
public void function onRequestEnd( required targetPage ){
6464
request.coldBoxVirtualApp.shutdown();
6565
}
6666

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+
}
7272

7373
}

0 commit comments

Comments
 (0)