forked from grails/grails-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e52f17
commit 4686a41
Showing
28 changed files
with
355 additions
and
143 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
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
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
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
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
33 changes: 19 additions & 14 deletions
33
grails-test-suite-uber/src/test/groovy/org/grails/cli/ScriptNameResolverTests.groovy
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 |
---|---|---|
@@ -1,20 +1,25 @@ | ||
package org.grails.cli | ||
|
||
import org.grails.build.parsing.ScriptNameResolver; | ||
import org.grails.build.parsing.ScriptNameResolver | ||
import org.junit.jupiter.api.Test | ||
|
||
class ScriptNameResolverTests extends GroovyTestCase { | ||
import static org.junit.jupiter.api.Assertions.assertTrue | ||
|
||
class ScriptNameResolverTests { | ||
|
||
@Test | ||
void testFoo() { | ||
assert ScriptNameResolver.resolvesTo('F', 'Foo') | ||
assert ScriptNameResolver.resolvesTo('FB', 'FooBar') | ||
assert ScriptNameResolver.resolvesTo('FoB', 'FooBar') | ||
assert ScriptNameResolver.resolvesTo('FBa', 'FooBar') | ||
assert ScriptNameResolver.resolvesTo('FoBa', 'FooBar') | ||
assert ScriptNameResolver.resolvesTo('FooBar', 'FooBar') | ||
assert !ScriptNameResolver.resolvesTo('FB', 'FooBarZoo') | ||
assert !ScriptNameResolver.resolvesTo('FBaz', 'FooBar') | ||
assert !ScriptNameResolver.resolvesTo('FBr', 'FooBar') | ||
assert !ScriptNameResolver.resolvesTo('F', 'FooBar') | ||
assert !ScriptNameResolver.resolvesTo('Fo', 'FooBar') | ||
assert !ScriptNameResolver.resolvesTo('Foo', 'FooBar') | ||
assertTrue ScriptNameResolver.resolvesTo('F', 'Foo') | ||
assertTrue ScriptNameResolver.resolvesTo('FB', 'FooBar') | ||
assertTrue ScriptNameResolver.resolvesTo('FoB', 'FooBar') | ||
assertTrue ScriptNameResolver.resolvesTo('FBa', 'FooBar') | ||
assertTrue ScriptNameResolver.resolvesTo('FoBa', 'FooBar') | ||
assertTrue ScriptNameResolver.resolvesTo('FooBar', 'FooBar') | ||
assertTrue !ScriptNameResolver.resolvesTo('FB', 'FooBarZoo') | ||
assertTrue !ScriptNameResolver.resolvesTo('FBaz', 'FooBar') | ||
assertTrue !ScriptNameResolver.resolvesTo('FBr', 'FooBar') | ||
assertTrue !ScriptNameResolver.resolvesTo('F', 'FooBar') | ||
assertTrue !ScriptNameResolver.resolvesTo('Fo', 'FooBar') | ||
assertTrue !ScriptNameResolver.resolvesTo('Foo', 'FooBar') | ||
} | ||
} |
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
13 changes: 12 additions & 1 deletion
13
...ls-test-suite-uber/src/test/groovy/org/grails/commons/DefaultGrailsCodecClassTests.groovy
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
10 changes: 8 additions & 2 deletions
10
grails-test-suite-uber/src/test/groovy/org/grails/commons/GrailsMetaClassUtilsTests.groovy
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
Oops, something went wrong.