Skip to content

Commit

Permalink
Add more debugging for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Dec 7, 2024
1 parent 3a87b2d commit 046f2f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import ortus.boxlang.runtime.scopes.ArgumentsScope;
import ortus.boxlang.runtime.scopes.Key;
import ortus.boxlang.runtime.types.Argument;
import ortus.boxlang.runtime.types.Array;
import ortus.boxlang.runtime.types.util.BLCollector;
import ortus.boxlang.runtime.types.util.ListUtil;

@BoxBIF
Expand Down Expand Up @@ -55,24 +55,15 @@ public Object _invoke( IBoxContext context, ArgumentsScope arguments ) {
return "";
}

Array vars = new Array();
for ( Key key : existingClientContext.getClient().getClientScope().keySet() ) {
if ( !systemProvidedVariables.contains( key ) ) {
vars.add( key );
}
}
return ListUtil.asString( vars, "," );

// return ListUtil.asString(
// existingClientContext
// .getClient()
// .getClientScope()
// .keySet()
// .stream()
// .filter( key -> !systemProvidedVariables.contains( key ) )
// .collect( BLCollector.toArray() ),
// ","
// );

return ListUtil.asString(
existingClientContext
.getClient()
.getClientScope()
.keySet()
.stream()
.filter( key -> !systemProvidedVariables.contains( key ) )
.collect( BLCollector.toArray() ),
","
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void testGetClientVariablesList() {
String clientVariablesList = ( String ) variables.get( result );
assertThat( clientVariablesList ).isInstanceOf( String.class );
Array clientVariables = ListUtil.asList( clientVariablesList, "," );
System.out.println( clientVariables.asString() );
assertThat( clientVariables.size() ).isEqualTo( 1 );
assertThat( clientVariables.get( 0 ) ).isEqualTo( "foo" );
}
Expand Down

0 comments on commit 046f2f6

Please sign in to comment.