| 1 |
|
package net.sourceforge.pebble.dao.mock; |
| 2 |
|
|
| 3 |
|
import net.sourceforge.pebble.dao.CategoryDAO; |
| 4 |
|
import net.sourceforge.pebble.dao.PersistenceException; |
| 5 |
|
import net.sourceforge.pebble.domain.Category; |
| 6 |
|
import net.sourceforge.pebble.domain.CategoryBuilder; |
| 7 |
|
import net.sourceforge.pebble.domain.Blog; |
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
@author |
| 14 |
|
|
|
|
|
| 50% |
Uncovered Elements: 3 (6) |
Complexity: 4 |
Complexity Density: 2 |
|
| 15 |
|
public class MockCategoryDAO implements CategoryDAO { |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
@param |
| 21 |
|
@return |
| 22 |
|
@throws |
| 23 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
| 24 |
1318
|
public Category getCategories(Blog blog) throws PersistenceException {... |
| 25 |
1318
|
CategoryBuilder builder = new CategoryBuilder(blog); |
| 26 |
1318
|
return builder.getRootCategory(); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
@param |
| 33 |
|
@param |
| 34 |
|
@throws |
| 35 |
|
|
| 36 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 37 |
0
|
public void addCategory(Category category, Blog blog) throws PersistenceException {... |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
@param |
| 44 |
|
@param |
| 45 |
|
@throws |
| 46 |
|
|
| 47 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 48 |
0
|
public void updateCategory(Category category, Blog blog) throws PersistenceException {... |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
@param |
| 55 |
|
@param |
| 56 |
|
@throws |
| 57 |
|
|
| 58 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 59 |
0
|
public void deleteCategory(Category category, Blog blog) throws PersistenceException {... |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
} |