import java.nio.file.Paths
import kotlin.test.assertTrue
-class BluePrintFileUtilsTest {
+class BlueprintFileUtilsTest {
@Test
fun testNewBlueprint() = runBlocking {
val targetPath: String = Paths.get("target").toUri().toURL().path.plus("/bp-new-test")
- BluePrintFileUtils.createEmptyBluePrint(targetPath)
+ BlueprintFileUtils.createEmptyBlueprint(targetPath)
}
@Test
val targetDir = File(targetPath)
targetDir.deleteOnExit()
// Copy the BP file
- BluePrintFileUtils.copyBluePrint(sourcePath, targetDir.absolutePath)
+ BlueprintFileUtils.copyBlueprint(sourcePath, targetDir.absolutePath)
assertTrue(targetDir.exists(), "faield to copy blueprint to ${targetDir.absolutePath}")
// Delete Type Files
- BluePrintFileUtils.deleteBluePrintTypes(targetDir.absolutePath)
+ BlueprintFileUtils.deleteBlueprintTypes(targetDir.absolutePath)
// Generate the Type Files
- val bluePrintContext = BluePrintMetadataUtils.getBluePrintContext(sourcePath)
+ val bluePrintContext = BlueprintMetadataUtils.getBlueprintContext(sourcePath)
bluePrintContext.rootPath = targetDir.absolutePath
- BluePrintFileUtils.writeBluePrintTypes(bluePrintContext)
+ BlueprintFileUtils.writeBlueprintTypes(bluePrintContext)
}
}