Skip to content

Conversation

@HubbardRika
Copy link

@HubbardRika HubbardRika commented Apr 26, 2025

Software Testing Project Rika Hubbard Test Cases

 Test: StringAssert.isNotEmpty()
Expectation: Assertion passes when string is not empty
Test: IntegerAssert.isPositive()
Expectation: Assertion passes when integer is greater than 0
Test: IntegerAssert.isNegative()
Expectation: Assertion passes when integer is less than 0.
Test: ListAssert.contains()
Expectation: Assertion passes when the list contains the given element.
Test: ListAssert.doesNotContain()
Expectation: Assertion passes when the list does not contain the specified element.
Test: MapAssert.hasSize()
Expectation: Assertion passes when map has the expected number of entries.
Test: MapAssert.containsKeys()
Expectation: Assertion passes when map contains all specified keys.
Test: exception assertion
Expectation: IllegalArgumentException to be thrown
Test: Soft Assert
Expectation: 3 assertions, 2 of which will fail
Test: ArrayAssertions
Expectations: Expect integer array to contain specific elements in correct order
@HubbardRika HubbardRika reopened this Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant