-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test to validate maven mappings resolve
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" labels="data-provider-integration" { | ||
|
||
function beforeAll (){ | ||
variables.dir = getDirectoryFromPath(getCurrentTemplatePath()); | ||
application action="update" mappings={ | ||
"/update" : expandPath( dir & "../apps/updateserver/" ) | ||
}; | ||
} | ||
|
||
function run( testResults , testBox ) { | ||
describe( "check all maven mapping are valid", function() { | ||
it(title="check each maven mapping resolves", body=function(){ | ||
var mappings = fileRead("/services/legacy/mavenMappings.json"); | ||
expect( isJons( mappings) ).toBeTrue(); | ||
mappings = deserializeJSON( mappings ); | ||
var meta = ""; | ||
|
||
var mavenMatcher = new services.legacy.MavenMatcher(); | ||
for (var mapping in mappings ){ | ||
systemOutput( "checking #mappings[mappings].toJson()#", true ); | ||
meta = mavenMatcher.getMatch( mapping, "latest" ); | ||
systemOutput( meta.toJson(), true ); | ||
} | ||
}); | ||
|
||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters