prmr / Creco

Recommendation System for Consumer Products
Apache License 2.0
6 stars 2 forks source link

Create DataPath class #1

Closed prmr closed 10 years ago

prmr commented 10 years ago

Create and test a class to produce a local path to the CR data dump that is based on a local properties file.

MariamN commented 10 years ago

I'm still having a problem accessing my local data through the DataPath. Here is my configuration: .localdatapath1 file: \Users\data TestDataPath.java file: assertEquals("\Users\data\",DataPath.get());

When i run the test it gives an error! What I'm I doing wrong?

prmr commented 10 years ago

.localdatapth1 is for testing purposes, it shouldn't be changed unless you are working on the tests. Instead, you need to create a .localdatapath in your project root folder and put the path there. Note that .localdatapath in in .gitignore, because it represents a non-project-relative configuration.