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
/** | |
* Get all test classes starting from a base package path. | |
* <p> | |
* Example use: | |
* <pre> | |
* UnitTestScanner scanner = new UnitTestScanner(); | |
* List<Class<?>> list = scanner.getTestClasses("com.octodecillion.test"); | |
* </pre> | |
* @param basePackage package where search will start | |
* @param debug if true output more info |
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 com.octodecillion.util | |
import static java.lang.Character.* | |
/** | |
* Simple ASCII hex dump of file. | |
* <p> | |
* Example output:<br> | |
* <pre> | |
* OFFSET 0 1 2 3 4 5 6 7 8 9 a b c d e f | ASCII |
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
# Example very simple data file | |
# | |
[>root] | |
one | |
two | |
three | |
[<root] | |
[>demo1/compile] | |
x,y,z | |
[<demo1/compile] |
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
/** | |
* GoGenerator.groovy | |
* Copyright 2010 Josef Betancourt 20100312-17:47 | |
*/ | |
/*@Grapes([ | |
@Grab(group='ch.qos.logback', module='logback-core', version='0.9.18'), | |
@Grab(group='ch.qos.logback', module='logback-classic', version='0.9.18'), | |
@Grab(group='org.slf4j', module='slf4j-api', version='1.5.10')]) |
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 com.octodecillion | |
import java.nio.file.Files; | |
/** | |
* Simple folder walker and file parser. | |
* <p> | |
* Dev with Groovy 2.1.6, Java 7, Eclipse 4.3 | |
* | |
* @author jbetancourt |
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 com.octodecillion.utils; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.Reader; |
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 com.octodecillion.sort; | |
import static org.hamcrest.core.Is.is; | |
import static org.hamcrest.core.IsEqual.equalTo; | |
import static org.junit.Assert.assertFalse; | |
import static org.junit.Assert.assertThat; | |
import static org.junit.Assert.assertTrue; | |
import java.util.ArrayList; | |
import java.util.Arrays; |
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 com.octodecillion.inix | |
import java.util.regex.Pattern | |
import groovy.transform.TypeChecked | |
import java.util.regex.Matcher | |
/** | |
* | |
* | |
* @author Josef Betancourt |
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 com.octodecillion.utils; | |
import java.io.IOException; | |
import java.util.Iterator; | |
import java.util.Map.Entry; | |
import java.util.jar.Attributes; | |
import java.util.jar.JarFile; |
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 com.octodecillion.junit; | |
import static org.hamcrest.core.IsEqual.equalTo; | |
import static org.junit.Assert.assertThat; | |
import static org.junit.Assert.assertTrue; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** |