Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2014 itemis AG ( and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at /
 package org.eclipse.xtext.xbase.junit.typesystem;
import  org.eclipse.xtext.junit4.smoketest.ScenarioProcessor;

Sebastian Zarnekow - Initial contribution and API
public class TypeSystemSmokeTester extends ScenarioProcessor {
	private Oven oven;
	private static final Pattern WS = Pattern.compile("\\s{2,}");
	private Set<BigIntegerseen;
		 = MessageDigest.getInstance("MD5");
	public String preProcess(String data) {
		return .matcher(data).replaceAll(" ");
	public void processFile(String datathrows Exception {
		byte[] hash = ((MessageDigest.clone()).digest(data.getBytes("UTF-8"));
		if (.add(new BigInteger(hash))) {
New to GrepCode? Check out our FAQ X