tck/src/main/java/org/hobsoft/microbrowser/tck/MicrodataPropertyTck.java
@Test
	public void getLongValueReturnsLong()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://i'>"
			+ "<p itemprop='p'>1</p>"
			+ "</div>"
			+ "</body></html>"));
		
		long actual = newBrowser().get(url(server()))
			.getItem("http://i")
			.getProperty("p")
			.getLongValue();
		
		assertThat("item property value", actual, is(1L));
	}
@Test
	public void getLongValueReturnsLong()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<div itemscope='itemscope' itemtype='http://i'>"
			+ "<p itemprop='p'>1</p>"
			+ "</div>"
			+ "</body></html>"));
		
		long actual = newBrowser().get(url(server()))
			.getItem("http://i")
			.getProperty("p")
			.getLongValue();
		
		assertThat("item property value", actual, is(1L));
	}
@ Test public void getLongValueReturnsLong ( ) { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<div itemscope='itemscope' itemtype='http://i'>" + "<p itemprop='p'>1</p>" + "</div>" + "</body></html>" ) ) ; long actual = newBrowser ( ) . get ( url ( server ( ) ) ) . getItem ( "http://i" ) . getProperty ( "p" ) . getLongValue ( ) ; assertThat ( "item property value" , actual , is ( 1L ) ) ; }
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------