mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix warning
This commit is contained in:
@@ -29,7 +29,6 @@ import com.rometools.rome.io.SyndFeedInput;
|
|||||||
|
|
||||||
import io.quarkus.test.junit.QuarkusTest;
|
import io.quarkus.test.junit.QuarkusTest;
|
||||||
import io.restassured.RestAssured;
|
import io.restassured.RestAssured;
|
||||||
import io.restassured.common.mapper.TypeRef;
|
|
||||||
import io.restassured.http.ContentType;
|
import io.restassured.http.ContentType;
|
||||||
|
|
||||||
@QuarkusTest
|
@QuarkusTest
|
||||||
@@ -109,17 +108,16 @@ class CategoryIT extends BaseIT {
|
|||||||
Long subscriptionId = subscribeAndWaitForEntries(getFeedUrl(), categoryId);
|
Long subscriptionId = subscribeAndWaitForEntries(getFeedUrl(), categoryId);
|
||||||
Assertions.assertEquals(2, getCategoryEntries(categoryId).getEntries().size());
|
Assertions.assertEquals(2, getCategoryEntries(categoryId).getEntries().size());
|
||||||
|
|
||||||
List<UnreadCount> counts = RestAssured.given()
|
UnreadCount[] counts = RestAssured.given()
|
||||||
.get("rest/category/unreadCount")
|
.get("rest/category/unreadCount")
|
||||||
.then()
|
.then()
|
||||||
.statusCode(200)
|
.statusCode(200)
|
||||||
.extract()
|
.extract()
|
||||||
.as(new TypeRef<List<UnreadCount>>() {
|
.as(UnreadCount[].class);
|
||||||
});
|
|
||||||
|
|
||||||
Assertions.assertEquals(1, counts.size());
|
Assertions.assertEquals(1, counts.length);
|
||||||
Assertions.assertEquals(subscriptionId, counts.get(0).getFeedId());
|
Assertions.assertEquals(subscriptionId, counts[0].getFeedId());
|
||||||
Assertions.assertEquals(2, counts.get(0).getUnreadCount());
|
Assertions.assertEquals(2, counts[0].getUnreadCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
Reference in New Issue
Block a user