@@ -0,0 +1,1319 @@
+package de.geeksfactory.opacclient.apis;%0A%0Aimport org.json.JSONObject;%0Aimport org.junit.Test;%0A%0Aimport java.util.Collections;%0Aimport java.util.Objects;%0A%0Aimport de.geeksfactory.opacclient.objects.Library;%0Aimport de.geeksfactory.opacclient.searchfields.SearchQuery;%0A%0Apublic class WebOpacAtTest %7B%0A%0A    WebOpacAt getApi() %7B%0A        WebOpacAt api = new WebOpacAt();%0A        Library lib = new Library();%0A        lib.setData(new JSONObject(Collections.singletonMap(%22baseurl%22, %22http://www.stbinnsbruck.web-opac.at%22)));%0A        api.init(lib);%0A        return api;%0A    %7D%0A%0A    @Test%0A    public void testParseTotalResults() %7B%0A        assert WebOpacAt.parseTotalResults(%22Treffer pro Seite  %E2%80%A2  1 - 10 von 46 Treffern%22) == 46;%0A        assert WebOpacAt.parseTotalResults(%22Hits per page  %E2%80%A2  1 - 10 of 46%22) == 46;%0A        assert WebOpacAt.parseTotalResults(%22Sayfa ba%C5%9F%C4%B1na sonu%C3%A7  %E2%80%A2  46 sonu%C3%A7tan 1 - 10%22) == 46;%0A    %7D%0A%0A    @Test%0A    public void testParseCopyReturn() throws Exception %7B%0A        assert Objects.equals(WebOpacAt.parseCopyReturn(%221 (voraussichtl. bis 31.07.2015)%22), %2231.07.2015%22);%0A%0A    %7D%0A%0A    @Test%0A    public void testSearchFields() throws Exception %7B%0A        getApi().getSearchFields();%0A    %7D%0A%0A    @Test%0A    public void testEmptyQuery() throws Exception %7B%0A        getApi().search(Collections.%3CSearchQuery%3EemptyList());%0A    %7D%0A%0A%7D%0A

Add WebOpacAtTest