public void run() { heli.upperInAir(this); heli.downInGround(this); }
@Before public void setUp() throws Exception { sessionFactory.getCache().evictEntityRegion(Hypothesis.class); sessionFactory.getCache().evictEntityRegion(Helicopter.class); log.info("예제용 데이터 추가"); Hypothesis socrates = new Hypothesis(); socrates.setId("13"); socrates.setDescription( "There are more than two dimensions over the shadows we see out of the cave"); socrates.setPosition(1); getSession().saveOrUpdate(socrates); Hypothesis peano = new Hypothesis(); peano.setId("14"); peano.setDescription( "Peano's curve and then Hilbert's space filling curve proof the connection from mono-dimensional to bi-dimensional space"); peano.setPosition(2); getSession().saveOrUpdate(peano); Hypothesis sanne = new Hypothesis(); sanne.setId("15"); sanne.setDescription( "Hilbert's proof of connection to 2 dimensions can be induced to reason on N dimensions"); sanne.setPosition(3); getSession().saveOrUpdate(sanne); Hypothesis shortOne = new Hypothesis(); shortOne.setId("16"); shortOne.setDescription("stuff works"); shortOne.setPosition(4); getSession().saveOrUpdate(shortOne); Helicopter helicopter = new Helicopter(); helicopter.setName("No creative clue "); getSession().saveOrUpdate(helicopter); getSession().flush(); getSession().clear(); }