Skip to content

How to test multiple exits  #20

@edayan

Description

@edayan

Maybe it is easy, but I am struggling with the following scenario.

public void multipleExit() {
		try {
			// .. some logic
			System.exit(0);
		} catch (Exception e) {
			System.out.println("Exiting with 10");
			System.exit(10);
		}
	}

how to test wheather the application exited with code '0'?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions