Initial commit

This commit is contained in:
2025-02-14 15:21:28 +01:00
commit 9d24a0472e
12 changed files with 453 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package be.seeseemelk;
import lombok.experimental.Delegate;
public class Child extends Parent {
@Delegate
private final Parent parent;
public Child() {
parent = Parent.builder()
.special("with some value")
.build();
}
}

View File

@@ -0,0 +1,7 @@
package be.seeseemelk;
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}

View File

@@ -0,0 +1,24 @@
package be.seeseemelk;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
@Setter
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class Parent {
@Builder.Default
private String special = "not set";
public void doThingWithArg(String arg) {
System.out.printf("be.seeseemelk.Parent: %s (%s)%n", arg, special);
}
public void doThingWithoutArg() {
System.out.printf("be.seeseemelk.Parent (%s)%n", special);
}
}

View File

@@ -0,0 +1,12 @@
import be.seeseemelk.Child;
import org.junit.jupiter.api.Test;
public class TestClass {
@Test
void myTest() {
Child obj = new Child();
obj.doThingWithArg("arg");
obj.doThingWithoutArg();
}
}