Skip to content

Commit

Permalink
Adding UT
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Wagh <[email protected]>
  • Loading branch information
ankita25 committed Nov 30, 2021
1 parent 81992e9 commit 7594a22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/org/tikv/common/TiConfigurationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.tikv.common;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import org.junit.Test;

Expand All @@ -26,4 +27,10 @@ public void configFileTest() {
TiConfiguration conf = TiConfiguration.createRawDefault();
assertEquals("configFileTest", conf.getDBPrefix());
}

@Test
public void tiFlashDefaultValueTest() {
TiConfiguration conf = TiConfiguration.createRawDefault();
assertFalse(conf.isTiFlashEnabled());
}
}

0 comments on commit 7594a22

Please sign in to comment.