package br.com.rogrs.service;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import br.com.rogrs.model.Endereco;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ViaCEPServiceTests {

	@Autowired
	private ViaCEPService wsCEPService;

	@Test
	public void testeBuscaCEP() throws Exception {

		Endereco result = wsCEPService.buscaCEP("20541170");;
		assertNotNull(result);

	}
	
	@Test
	public void testeBuscaCEP2() throws Exception {

		Endereco result = wsCEPService.buscaCEP("20541173");
		System.out.println(result.toString());
		assertNotNull(result);

	}
	
	
	@Test
	public void testeBuscaCEP3() throws Exception {

		Endereco result = wsCEPService.buscaCEP("11111111");
		System.out.println(result.toString());
		assertNotNull(result);

	}
	

}

@@ -481,16 +481,18 @@
 vice;%0A%0A%09
+/*
 @Test%0A%09p
@@ -808,16 +808,18 @@
 );%0A%0A%09%7D%0A%09
+*/
 %0A%09%0A%09@Tes

Teste esta demorando muito