-
Notifications
You must be signed in to change notification settings - Fork 280
refactor(skill): refactor SkillBox with Skill util class #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,14 +131,52 @@ void testConstructor_RelativePath() throws IOException { | |||||||||||
| // ==================== getSource Tests ==================== | ||||||||||||
|
|
||||||||||||
| @Test | ||||||||||||
| @DisplayName("Should return correct source format") | ||||||||||||
| void testGetSource() { | ||||||||||||
| String source = repository.getSource(); | ||||||||||||
| assertNotNull(source); | ||||||||||||
| assertTrue(source.startsWith("filesystem_")); | ||||||||||||
| String expectedSuffix = | ||||||||||||
| skillsBaseDir.getParent().getFileName() + "/" + skillsBaseDir.getFileName(); | ||||||||||||
| assertEquals("filesystem_" + expectedSuffix, source); | ||||||||||||
| @DisplayName("Should return default source with format: filesystem:parent_child") | ||||||||||||
| void testGetSource_DefaultSource() { | ||||||||||||
| assertTrue(repository.getSource().matches("filesystem:[^_]+_skills")); | ||||||||||||
|
||||||||||||
| assertTrue(repository.getSource().matches("filesystem:[^_]+_skills")); | |
| String parentName = skillsBaseDir.getParent().getFileName().toString(); | |
| String childName = skillsBaseDir.getFileName().toString(); | |
| String expectedSource = "filesystem:" + parentName + "_" + childName; | |
| assertEquals(expectedSource, repository.getSource()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workDiris referenced but no longer declared in this method (e.g., inregisterTempDirectoryCleanup(workDir)and the log statement). This will not compile; usethis.workDir(or introduce a localPath workDir = this.workDir) consistently after creating the temp directory.