@Test public void initMustFallBackToSystemProperty() { System.setProperty("documentr.dataDir", "."); settings.init(); System.setProperty("documentr.dataDir", "nonexistent"); assertEquals(new File("."), settings.getDocumentrDataDir()); }
@PostConstruct public void init() { String dataDirParam = getInitParam("documentr.dataDir"); Assert.hasLength(dataDirParam); documentrDataDir = new File(dataDirParam); }
Settings { @PostConstruct public void init() { String dataDirParam = getInitParam("documentr.dataDir"); Assert.hasLength(dataDirParam); documentrDataDir = new File(dataDirParam); } }
Settings { @PostConstruct public void init() { String dataDirParam = getInitParam("documentr.dataDir"); Assert.hasLength(dataDirParam); documentrDataDir = new File(dataDirParam); }  }
Settings { @PostConstruct public void init() { String dataDirParam = getInitParam("documentr.dataDir"); Assert.hasLength(dataDirParam); documentrDataDir = new File(dataDirParam); }  @PostConstruct void init(); }
Settings { @PostConstruct public void init() { String dataDirParam = getInitParam("documentr.dataDir"); Assert.hasLength(dataDirParam); documentrDataDir = new File(dataDirParam); }  @PostConstruct void init();  }