package com.crawljax.core.configuration;

import static com.crawljax.core.configuration.CrawlElementMatcher.withXpath;
import static org.hamcrest.collection.IsCollectionWithSize.hasSize;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;


import org.junit.Before;
import org.junit.Test;

import com.crawljax.core.state.Eventable.EventType;

public class XPathEscapeApostropheTest {

	private CrawlActionsBuilder actions;
	private CrawlElement element;

	@Before
	public void setup() {
		element = new CrawlElement(EventType.click, "button");
	}

	@Test
	public void testStringNoApostrophes() {
		String test = "Test String";
		test = element.escapeApostrophes(test);
		assertEquals("'Test String'", test);
	}
	
	@Test
	public void testStringConcat() {
		String test = "I'm Feeling Lucky";
		test = element.escapeApostrophes(test);	
		assertEquals("concat('I',\"'\",'m Feeling Lucky')", test);
	}
	
}

package com.crawljax.core.configuration;

import static org.junit.Assert.assertEquals;


import org.junit.Before;
import org.junit.Test;

import com.crawljax.core.state.Eventable.EventType;

public class XPathEscapeApostropheTest {

	private CrawlElement element;

	@Before
	public void setup() {
		element = new CrawlElement(EventType.click, "button");
	}

	@Test
	public void testStringNoApostrophes() {
		String test = "Test String";
		test = element.escapeApostrophes(test);
		assertEquals("'Test String'", test);
	}
	
	@Test
	public void testStringConcat() {
		String test = "I'm Feeling Lucky";
		test = element.escapeApostrophes(test);	
		assertEquals("concat('I',\"'\",'m Feeling Lucky')", test);
	}
	
}

Remove unused code from test case
Remove unused code from test case
