Commit b23268d4 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

tests: add Stat#set/getBtime test

Acked-by: Lea Morschel
Target: master
parent 55c7b2db
Pipeline #19064 passed with stage
in 1 minute and 50 seconds
......@@ -162,6 +162,11 @@ public class StatTest {
assertEquals(1, stat.getDev());
}
@Test(expected = IllegalStateException.class)
public void testNotDefeinedGetBtime() {
new Stat().getBTime();
}
@Test
public void testGetIno() {
Stat stat = new Stat();
......@@ -249,6 +254,13 @@ public class StatTest {
assertEquals(1, stat.getGeneration());
}
@Test
public void testGetBtime() {
Stat stat = new Stat();
stat.setBTime(1);
assertEquals(1, stat.getBTime());
}
@Test
public void testClone() {
Stat stat = new Stat();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment