List of usage examples for org.apache.commons.lang.builder ToStringBuilder setDefaultStyle
public static void setDefaultStyle(ToStringStyle style)
Sets the default ToStringStyle
to use.
From source file:cyrille.hibernate.temporal.sinistre.DommageTest.java
@Override protected void setUp() throws Exception { super.setUp(); ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); AnnotationConfiguration configuration = new Db2AnnotationConfiguration(); configuration.configure();/*from w w w.j a v a 2 s.c o m*/ configuration.addAnnotatedClass(Sinistre.class).addAnnotatedClass(SinistreVersion.class); configuration.addAnnotatedClass(Evenement.class).addAnnotatedClass(EvenementVersion.class); configuration.addAnnotatedClass(Dommage.class).addAnnotatedClass(DommageVersion.class); configuration.addAnnotatedClass(DommageCorporel.class).addAnnotatedClass(DommageCorporelVersion.class); this.sessionFactory = configuration.buildSessionFactory(); }
From source file:com.aef.TicketGeneratorServerIntDbEmbeddedTest.java
@Before public void setUp() { // set the style here so that we can see what's going on ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); ticketGenerator.setSleepInterval(2); LOGGER.info("Using QUEUE: " + testQueueName); // bound the list operations, so we can use this to check what we put into // redis/* w w w. j a v a 2 s .c om*/ listOps = testRedisTemplate.opsForList(); // to turn JSON back to objects objectMapper = new ObjectMapper(); }
From source file:com.pva.QueryGeneratorServerIntDbEmbeddedTest.java
@Before public void setUp() { // set the style here so that we can see what's going on ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); queryGenerator.setSleepInterval(2);//from ww w. j av a2s .c o m LOGGER.info("Using QUEUE: " + testQueueName); // bound the list operations, so we can use this to check what we put into // redis listOps = testRedisTemplate.opsForList(); // to turn JSON back to objects objectMapper = new ObjectMapper(); }
From source file:com.aef.TicketGeneratorServerIntNoDbTest.java
@Before public void setUp() { // set the style here so that we can see what's going on ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); ticketService = mock(TicketService.class); ticketGenerator.setSleepInterval(2); ticketGenerator.setTicketService(ticketService); ticketList = TestTools.createTestTicketOrders(); LOGGER.info("Using QUEUE: " + testQueueName); // bound the list operations, so we can use this to check what we put into // redis//from w ww. j av a 2 s .c o m listOps = testRedisTemplate.opsForList(); // to turn JSON back to objects objectMapper = new ObjectMapper(); }
From source file:com.aef.TicketAckProcessorIntDbEmbeddedTest.java
@Before public void setUp() { // set the style here so that we can see what's going on ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); LOGGER.info("Using QUEUE: " + testAckQueueName); // bound the list operations, so we can use this to check what we put into // redis//from w w w . j a v a2s.c om listOps = testRedisTemplate.opsForList(); // to turn JSON back to objects objectMapper = new ObjectMapper(); jsonFactory = new JsonFactory(); // create an ticket ack object ticketAck = new TicketAck(); ticketAck.setOrderId("OrderId1"); }
From source file:de.iteratec.iteraplan.model.dto.LandscapeDiagramConfigDTO.java
@Override public String toString() { ToStringBuilder.setDefaultStyle(ToStringStyle.MULTI_LINE_STYLE); return ToStringBuilder.reflectionToString(this); }
From source file:org.cloudifysource.esc.driver.provisioning.privateEc2.parser.PrivateEc2TemplateParserTest.java
@Test public void testTemplateComplete() throws IOException, PrivateEc2ParserException { InputStream templateStream = ClassLoader.getSystemResourceAsStream("./cfn_templates/complete.template"); ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); PrivateEc2Template template = ParserUtils.mapJson(PrivateEc2Template.class, templateStream); assertNotNull(template);// w ww . j av a 2s.c o m }
From source file:org.cloudifysource.esc.driver.provisioning.privateEc2.parser.PrivateEc2TemplateParserTest.java
@Test public void testTemplateWithRef() throws IOException, PrivateEc2ParserException { InputStream templateStream = ClassLoader.getSystemResourceAsStream("./cfn_templates/ref.template"); ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); PrivateEc2Template template = ParserUtils.mapJson(PrivateEc2Template.class, templateStream); assertNotNull(template);/*from w w w. j a v a 2 s . com*/ }
From source file:org.soulwing.jawb.poi.WorkbookExtractorTest.java
@BeforeClass public static void setUpBeforeClass() throws Exception { ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); }