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 com.google.common.base.Splitter; | |
import org.apache.commons.lang.RandomStringUtils; | |
import org.apache.commons.lang.math.RandomUtils; | |
import org.apache.commons.lang3.StringUtils; | |
import org.junit.AfterClass; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import org.springframework.util.StopWatch; | |
import java.util.Iterator; |
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 bausteine; | |
import com.google.common.base.Splitter; | |
import org.apache.commons.lang.RandomStringUtils; | |
import org.junit.AfterClass; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import org.springframework.util.StopWatch; | |
import org.springframework.util.StringUtils; |
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.example.junit25; | |
import org.junit.Test; | |
import org.junit.internal.AssumptionViolatedException; | |
import org.junit.runner.RunWith; | |
@RunWith(JUnit4AssumtionRunner.class) | |
public class JUnit4AssumtionRunnerTest { | |
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.example.junit25; | |
import org.junit.Ignore; | |
import org.junit.internal.AssumptionViolatedException; | |
import org.junit.internal.runners.model.EachTestNotifier; | |
import org.junit.runner.Description; | |
import org.junit.runner.notification.RunNotifier; | |
import org.junit.runners.BlockJUnit4ClassRunner; | |
import org.junit.runners.model.FrameworkMethod; | |
import org.junit.runners.model.InitializationError; |
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 | |
/** | |
* Runs a {@link Statement} that represents a leaf (aka atomic) test. | |
*/ | |
protected final void runLeaf(Statement statement, Description description, | |
RunNotifier notifier) { | |
EachTestNotifier eachNotifier= new EachTestNotifier(notifier, description); | |
eachNotifier.fireTestStarted(); | |
try { |
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.example.junit116; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.internal.AssumptionViolatedException; | |
import org.junit.rules.MethodRule; | |
import org.junit.runners.model.FrameworkMethod; |
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 java.lang.annotation.Annotation; | |
import java.lang.reflect.Method; | |
import org.junit.ClassRule; | |
import org.junit.Rule; | |
import org.junit.runner.Description; | |
import org.junit.runners.model.FrameworkMethod; | |
import org.junit.runners.model.Statement; | |
// ************ draft for new rule interface ************ |
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 rules.impl; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import org.junit.Assert; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.rules.MethodRule; | |
import org.junit.rules.TestRule; |
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.seitenbau.demo.systemtest; | |
import static com.seitenbau.assertions.Assertions.assertThat; | |
import javax.inject.Inject; | |
import org.junit.Test; | |
interface WorkDelegate<T> { | |
void doWork(T target); | |
} |
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 class CsvSplit | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
FileWriter out = new FileWriter("output.csv"); | |
BufferedReader in = new BufferedReader(new FileReader("input.csv")); | |
String line; | |
while ((line = in.readLine()) != null) | |
{ | |
String[] fields = line.split(";"); |
NewerOlder