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
class Parser { | |
void parse(String docbase){ | |
Result result = getBuilder().build(docbase); | |
print result.result | |
} | |
Builder getBuilder() { | |
return new Builder(); | |
} |
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
apply plugin: 'eclipse' | |
def langs = ['java', 'groovy'] | |
langs.each { | |
apply plugin : it | |
} | |
group = 'org.arquillian.example' |
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
public interface Finder { | |
List<String> find() | |
} | |
class A_Finder implements Finder { | |
List<String> find() { | |
[ "1","2" ] | |
} | |
} |
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
T1 = '| ' | |
T2 = '|---' | |
width = 5 | |
if ARGV[0] != nil | |
number = ARGV[0].to_i | |
if number > 52 | |
number = 52 | |
end |
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
import spock.lang.Specification | |
import spock.lang.Unroll | |
class SampleSpec extends Specification { | |
@Unroll | |
def "#scriptfile evaluate"() { | |
setup: | |
def content = new StringWriter() |
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
/* language */ | |
apply { | |
plugin 'groovy' | |
plugin 'java' | |
} | |
/* ide */ | |
apply { | |
plugin 'idea' | |
plugin 'eclipse' |
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
// | |
// Built on Fri Sep 21 02:55:59 CEST 2012 by logback-translator | |
// For more information on configuration files in Groovy | |
// please see http://logback.qos.ch/manual/groovy.html | |
// For assistance related to this tool or configuration files | |
// in general, please contact the logback user mailing list at | |
// http://qos.ch/mailman/listinfo/logback-user | |
// For professional support please see |
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
@Test | |
public void should_assert_a_behaviour() throws Exception { | |
// Setup | |
// Exercise | |
// Verify | |
} |
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
package sample | |
class HogeBean { | |
Object invokeMethod(String name, Object args) { | |
println "invoke method $name, $args" | |
null | |
} |
OlderNewer