@Test public void test() throws Exception { Main.main(null); }
public static void main(String[] args) throws Exception { Consumer consumer = new Consumer(); Producer producer = new Producer(); consumer.consume(); producer.produce(); Thread.sleep(1000); consumer.cleanUp(); producer.cleanUp(); }
Main { public static void main(String[] args) throws Exception { Consumer consumer = new Consumer(); Producer producer = new Producer(); consumer.consume(); producer.produce(); Thread.sleep(1000); consumer.cleanUp(); producer.cleanUp(); } }
Main { public static void main(String[] args) throws Exception { Consumer consumer = new Consumer(); Producer producer = new Producer(); consumer.consume(); producer.produce(); Thread.sleep(1000); consumer.cleanUp(); producer.cleanUp(); }  }
Main { public static void main(String[] args) throws Exception { Consumer consumer = new Consumer(); Producer producer = new Producer(); consumer.consume(); producer.produce(); Thread.sleep(1000); consumer.cleanUp(); producer.cleanUp(); }  static void main(String[] args); }
Main { public static void main(String[] args) throws Exception { Consumer consumer = new Consumer(); Producer producer = new Producer(); consumer.consume(); producer.produce(); Thread.sleep(1000); consumer.cleanUp(); producer.cleanUp(); }  static void main(String[] args);  }