Advertisement
Guest User

Untitled

a guest
May 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public static DataSet getApartmentsDataSet() throws Exception {
  2. DataSetSpecification spec = createApartmentsDataSetSpec();
  3. return new DataSetFactory().fromFile("apartments", spec, "\\s+");
  4. }
  5.  
  6. public static DataSetSpecification createApartmentsDataSetSpec() {
  7. DataSetSpecification dss = new DataSetSpecification();
  8. dss.defineStringAttribute("zona", new String[] {"Centru", "Marasti", "Gheorgheni", "Buna-Ziua", "Zorilor", "Manastur", "Baciu", "Floresti", "Grigorescu"});
  9. dss.defineStringAttribute("nr_camere", new String[] {"1", "2", "3"});
  10. dss.defineStringAttribute("suprafata", new String[] {"mic", "mediu", "mare"});
  11. dss.defineStringAttribute("pret", new String[] { "Cheap",
  12. "Medium", "Expensive" });
  13. return dss;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement