This website works better with JavaScript.
Home
Explore
Help
Sign In
binhong
/
LibrarySystem
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Further increase code coverage
master
BinHong Lee
7 years ago
parent
003197131d
commit
d13c326cd9
3 changed files
with
3 additions
and
7 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-5
src/main/java/libsys/Handler.java
+1
-1
src/test/java/libsys/BookFactoryTest.java
+1
-1
src/test/java/libsys/UserFactoryTest.java
+ 1
- 5
src/main/java/libsys/Handler.java
View File
@@ -108,15 +108,11 @@ class Handler
date[2]++;
}
}
else
if(date[2] == 28)
else
{
date[1]++;
date[2] = 1;
}
else
{
date[2]++;
}
}
else if(date[1] == 4 || date[1] == 6 || date[1] == 9 || date[1] == 11)
{
+ 1
- 1
src/test/java/libsys/BookFactoryTest.java
View File
@@ -113,7 +113,7 @@ public class BookFactoryTest extends TestCase
try
{
anotherBookFactory.getBook(
12
);
anotherBookFactory.getBook(
"No Such Book"
);
assert false;
}
catch (Exception e)
+ 1
- 1
src/test/java/libsys/UserFactoryTest.java
View File
@@ -47,9 +47,9 @@ public class UserFactoryTest extends TestCase
public void testApp()
{
newUserTest();
updateTest();
fileIOTest();
exceptionTest();
updateTest();
}
/**
Write
Preview
Loading…
Cancel
Save