Consider the test messageTest(see below)
publicclassmessageTest {
@Test
publicvoidtestMessageLength() {
String message = "Test Message";
}
}
Add Assert method to verify that text in message contains 12 characters.
If that is what you are looking for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.