importstaticorg.junit.jupiter.api.Assertions.assertEquals;importstaticorg.junit.jupiter.api.Assumptions.assumeTrue;importstaticorg.junit.jupiter.api.Assumptions.assumingThat;importorg.junit.jupiter.api.Test;classAssumptionsDemo { @TestvoidtestOnlyOnCiServer() {assumeTrue("CI".equals(System.getenv("ENV")));// remainder of test } @TestvoidtestOnlyOnDeveloperWorkstation() {assumeTrue("DEV".equals(System.getenv("ENV")), () ->"Aborting test: not on developer workstation");// remainder of test } @TestvoidtestInAllEnvironments() {assumingThat("CI".equals(System.getenv("ENV")), () -> {// perform these assertions only on the CI server assertEquals(2,2); });// perform these assertions in all environmentsassertEquals("a string","a string"); }}