Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2014-12-03 14:30:40 -0500
committerAngel Avila2014-12-03 14:30:40 -0500
commitac3fdd5390c2cc988a68187db0181e355b9c38b9 (patch)
tree1a9be1246197b442abc8c3330cccf3089576b1b4 /plugins/org.eclipse.osee.support.test.util/src
parentdbc11fed88c883d52d74b6a96d0fa51893d6f213 (diff)
downloadorg.eclipse.osee-ac3fdd5390c2cc988a68187db0181e355b9c38b9.tar.gz
org.eclipse.osee-ac3fdd5390c2cc988a68187db0181e355b9c38b9.tar.xz
org.eclipse.osee-ac3fdd5390c2cc988a68187db0181e355b9c38b9.zip
refinement[ats_ATS123880]: Cache OseeInfo values supporting a max staleness
Diffstat (limited to 'plugins/org.eclipse.osee.support.test.util/src')
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java
index e9c4b8dad3..de92d65503 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java
@@ -41,11 +41,11 @@ public class TestUtil {
}
public static boolean isDbInitSuccessful() throws OseeCoreException {
- return OseeInfo.isBoolean("DbInitSuccess");
+ return OseeInfo.getValue("DbInitSuccess").equals("true");
}
public static void setDbInitSuccessful(boolean success) throws OseeCoreException {
- OseeInfo.setBoolean("DbInitSuccess", success);
+ OseeInfo.setValue("DbInitSuccess", String.valueOf(success));
}
/**
@@ -64,11 +64,11 @@ public class TestUtil {
}
public static boolean isDemoDb() throws OseeCoreException {
- return DEMO_DB_TYPE.equals(OseeInfo.getCachedValue(OseeInfo.DB_TYPE_KEY));
+ return DEMO_DB_TYPE.equals(OseeInfo.getValue(OseeInfo.DB_TYPE_KEY));
}
public static void setDemoDb(boolean set) throws OseeCoreException {
- OseeInfo.putValue(OseeInfo.DB_TYPE_KEY, set ? DEMO_DB_TYPE : "");
+ OseeInfo.setValue(OseeInfo.DB_TYPE_KEY, set ? DEMO_DB_TYPE : "");
}
public static void sleep(long milliseconds) {

Back to the top