Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method-level @Test(expectedExceptions=…) migraton #19

Closed
Philzen opened this issue Jun 14, 2024 · 0 comments
Closed

Method-level @Test(expectedExceptions=…) migraton #19

Philzen opened this issue Jun 14, 2024 · 0 comments
Labels
Feature New feature or request must-have

Comments

@Philzen
Copy link
Owner

Philzen commented Jun 14, 2024

TestNG
@Test(expectedExceptions = Error.class)
public void throws() {  /* throwy code */  }      
JUnit 5
@Test
public void throws() {
  assertThrows(Error.class, () -> { /* throwy code */ })
}
@Philzen Philzen added Feature New feature or request must-have labels Jun 14, 2024
@Philzen Philzen changed the title Implement method-level @Test(expectedExceptions=…) migraton Method-level @Test(expectedExceptions=…) migraton Jun 14, 2024
@Philzen Philzen moved this to Done in TestNG → Jupiter Jun 14, 2024
@Philzen Philzen closed this as completed by moving to Done in TestNG → Jupiter Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request must-have
Projects
Status: Done
Development

No branches or pull requests

1 participant