Skip to content

Commit 8e78027

Browse files
committed
Better naming
1 parent 324e3f5 commit 8e78027

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

pml/src/main/java/info/jab/pml/CursorRuleGenerator.java renamed to pml/src/main/java/info/jab/pml/CursorRulesGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Generator for Cursor Rules using XML/XSLT transformation.
2424
* Follows functional programming principles with immutability and pure functions.
2525
*/
26-
public final class CursorRuleGenerator {
26+
public final class CursorRulesGenerator {
2727

2828
// ===============================================================
2929
// PUBLIC API - Entry point for cursor rule generation

pml/src/test/java/info/jab/pml/CursorRuleGeneratorTest.java renamed to pml/src/test/java/info/jab/pml/CursorRulesGeneratorTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
import static org.assertj.core.api.Assertions.assertThat;
1818
import static org.assertj.core.api.Assertions.assertThatThrownBy;
1919

20-
@DisplayName("Cursor Rule Generator Tests")
21-
class CursorRuleGeneratorTest {
20+
@DisplayName("Cursor Rules Generator Tests")
21+
class CursorRulesGeneratorTest {
2222

23-
private static final Logger logger = LoggerFactory.getLogger(CursorRuleGeneratorTest.class);
23+
private static final Logger logger = LoggerFactory.getLogger(CursorRulesGeneratorTest.class);
2424

2525
@Nested
2626
@DisplayName("Parameterized Generate Method Tests")
@@ -30,7 +30,7 @@ class ParameterizedGenerateMethodTests {
3030
@DisplayName("Should throw exception when XML file does not exist")
3131
void should_throwException_when_xmlFileDoesNotExist() {
3232
// Given
33-
CursorRuleGenerator generator = new CursorRuleGenerator();
33+
CursorRulesGenerator generator = new CursorRulesGenerator();
3434

3535
// When & Then - Updated for functional API exception handling
3636
assertThatThrownBy(() -> generator.generate("non-existent.xml", "cursor-rules.xsl"))
@@ -44,7 +44,7 @@ void should_throwException_when_xmlFileDoesNotExist() {
4444
@DisplayName("Should throw exception when XSLT file does not exist")
4545
void should_throwException_when_xsltFileDoesNotExist() {
4646
// Given
47-
CursorRuleGenerator generator = new CursorRuleGenerator();
47+
CursorRulesGenerator generator = new CursorRulesGenerator();
4848

4949
// When & Then - Updated for functional API exception handling
5050
assertThatThrownBy(() -> generator.generate("112-java-maven-documentation.xml", "non-existent.xsl"))
@@ -64,7 +64,7 @@ class UnifiedXsltGeneratorTests {
6464
@DisplayName("Should generate exact content matching original expected document using unified XSLT")
6565
void should_generateExactContentMatchingOriginalExpected_when_transformingWithUnifiedXslt(String baseFileName) throws IOException {
6666
// Given
67-
CursorRuleGenerator generator = new CursorRuleGenerator();
67+
CursorRulesGenerator generator = new CursorRulesGenerator();
6868
String expectedContent = loadExpectedContent(baseFileName + ".mdc");
6969

7070
// When
@@ -120,7 +120,7 @@ private String loadExpectedContent(String filename) throws IOException {
120120
@DisplayName("Should produce consistent content structure regardless of XML content type")
121121
void should_produceConsistentStructure_when_processingDifferentXmlTypes() throws IOException {
122122
// Given
123-
CursorRuleGenerator generator = new CursorRuleGenerator();
123+
CursorRulesGenerator generator = new CursorRulesGenerator();
124124

125125
// When
126126
String checklistGuideResult = generator.generate("100-java-checklist-guide.xml", "cursor-rules.xsl", "pml.xsd");

0 commit comments

Comments
 (0)