Skip to content

Commit e19c943

Browse files
committed
test: add tests for pages only constructor
1 parent d5cd0d4 commit e19c943

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

api/src/test/java/net/kyori/adventure/inventory/BookTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,13 @@ void testEquality() {
109109
)
110110
.testEquals();
111111
}
112+
113+
@Test
114+
void testPagesOnly() {
115+
final Book b = Book.book(arrayOfPages(1));
116+
assertEquals(listOfPages(1), b.pages());
117+
assertEquals(Component.empty(), b.title());
118+
assertEquals(Component.empty(), b.author());
119+
}
120+
112121
}

0 commit comments

Comments
 (0)