| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| FilesystemUtils |
|
| 2.0;2 |
| 1 | package org.jbehave.core.io.rest.filesystem; | |
| 2 | ||
| 3 | import java.io.File; | |
| 4 | ||
| 5 | import org.jbehave.core.io.rest.Resource; | |
| 6 | ||
| 7 | 0 | public class FilesystemUtils { |
| 8 | ||
| 9 | public static File asFile(Resource resource, String parentPath, String ext) { | |
| 10 | 4 | String childPath = ( resource.hasBreadcrumbs() ? resource.getBreadcrumbs() : "" ) + "/" + resource.getName() + ext; |
| 11 | 4 | return new File(parentPath, childPath); |
| 12 | } | |
| 13 | ||
| 14 | } |