Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java: Spring Boot
(edit)
Revision as of 17:59, 22 June 2022
460 bytes added
,
17:59, 22 June 2022
m
→JUnit Assertions
Line 192:
Line 192:
</syntaxhighlight>
</syntaxhighlight>
−
==== Custom displayName generator for camelCase with numbers ====
+
====Custom displayName generator for camelCase with numbers====
<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
static class ReplaceCamelCaseEmojis extends ReplaceCamelCase {
static class ReplaceCamelCaseEmojis extends ReplaceCamelCase {
Line 251:
Line 251:
assertNotNull()
assertNotNull()
+
+
assertSame(object1, object1, message)
+
+
assertNotSame(object1, object1, message)
+
+
assertTrue(boolvariable, message)
+
+
assertFalse(boolvariable, message)
+
+
assertArraysEqual(array1, array2, message)
+
+
assertIterableEquals(iterable1, iterable2 message)
+
+
assertLinesMatch??
+
+
assertThrows(Exception.class, ()-> {functionCallThatThrowsError(params);})
+
+
assertDoesNotThrows(Exception.class, ()-> {functionCallThatDoesNotThrowsError(params);})
+
+
assertTimeoutPreemptively
+
....
....
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version