Skip to content

Commit ac5e23d

Browse files
committed
more boxlang prime
1 parent 5be6e1e commit ac5e23d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

system/runners/BDDRunner.cfc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ component
4242
){
4343
// Get target metadata
4444
var targetMD = getMetadata( arguments.target );
45-
var bundleName = ( structKeyExists( targetMD, "displayName" ) ? targetMD.displayname : targetMD.name );
45+
var tartetAnnotations = targetMD.keyExists( "annotations" ) ? targetMD.annotations : targetMD;
46+
var bundleName = ( structKeyExists( tartetAnnotations, "displayName" ) ? tartetAnnotations.displayname : targetMD.name );
4647

4748
// Execute the suite descriptors
4849
arguments.target.run( testResults = arguments.testResults, testbox = variables.testbox );
@@ -71,7 +72,7 @@ component
7172
// find any methods annotated 'beforeAll' and execute them
7273
var beforeAllAnnotationMethods = variables.testbox
7374
.getUtility()
74-
.getAnnotatedMethods( annotation = "beforeAll", metadata = getMetadata( arguments.target ) );
75+
.getAnnotatedMethods( annotation = "beforeAll", metadata = targetMD );
7576

7677
for ( var beforeAllMethod in beforeAllAnnotationMethods ) {
7778
invoke( arguments.target, "#beforeAllMethod.name#" );
@@ -134,7 +135,7 @@ component
134135
// find any methods annotated 'afterAll' and execute them
135136
var afterAllAnnotationMethods = variables.testbox
136137
.getUtility()
137-
.getAnnotatedMethods( annotation = "afterAll", metadata = getMetadata( arguments.target ) );
138+
.getAnnotatedMethods( annotation = "afterAll", metadata = targetMD );
138139

139140
for ( var afterAllMethod in afterAllAnnotationMethods ) {
140141
invoke( arguments.target, "#afterAllMethod.name#" );

0 commit comments

Comments
 (0)