Skip to content

Instantly share code, notes, and snippets.

package parsing;
import java.util.HashMap;
import java.util.Map;
public class UrlComponents {
private static final String PROTOCOL_KEY = "protocol";
private static final String DOMAIN_KEY = "domain";
private static final String FILE_PATH_KEY = "path";
private Map<String, String> components;
@patrickwilsonwelsh
patrickwilsonwelsh / RulesForNextGenerationTest
Created January 20, 2011 21:10
Exercise: Being Skooled By J.B. In DRY
package rules;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class RulesForNextGenerationTest {
private RulesForNextGeneration inNextGeneration;