import br.carinha.rosto.Sensores; public class SensoresTest { public static void main(String[] args) { if (!Sensores.ativo(true, false, false)) throw new AssertionError("acordado"); if (Sensores.ativo(true, false, true)) throw new AssertionError("camera dormindo"); if (!Sensores.ativo(true, true, true)) throw new AssertionError("mic dormindo"); if (Sensores.ativo(false, true, true)) throw new AssertionError("desligado global"); System.out.println("Sensores: OK"); } }