1 |
package dk.daoas.daoadresseservice.test; |
package dk.daoas.daoadresseservice.test; |
2 |
|
|
3 |
import static org.junit.Assert.assertEquals; |
import static org.junit.Assert.assertEquals; |
|
import static org.junit.Assert.assertNotNull; |
|
4 |
|
|
5 |
import java.sql.SQLException; |
import java.sql.SQLException; |
6 |
|
|
193 |
assertEquals(DaekningsType.DAEKNING_100PCT, res.address.daekningsType); |
assertEquals(DaekningsType.DAEKNING_100PCT, res.address.daekningsType); |
194 |
} |
} |
195 |
|
|
196 |
|
/** |
197 |
|
* Vesterbrogade er registreret som en DB alias mod Vestergade |
198 |
|
*/ |
199 |
|
@Test |
200 |
|
public void testDbAlias() { |
201 |
|
SearchResult res = search.search("8700", "Vesterbrogade 1"); |
202 |
|
|
203 |
|
assertEquals(SearchResult.Status.STATUS_OK, res.status); |
204 |
|
assertEquals(DaekningsType.DAEKNING_DIREKTE, res.address.daekningsType); |
205 |
|
} |
206 |
} |
} |