This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public abstract class ClaimBuilder<T extends ClaimBuilder<T>> { | |
// some fields elided... | |
protected ClaimBuilder() { | |
// setting some defaults elided... | |
} | |
public T withClaimId(String number) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public class OpenButNotNotifiedClaimBuilder extends ClaimBuilder<OpenButNotNotifiedClaimBuilder> { | |
private ClaimReferenceInCompany referenceInCompany; | |
private ClaimsOpeningListener claimsOpeningListener; | |
private OpenButNotNotifiedClaimBuilder() { | |
super(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// some imports elided... | |
public class ReadyToOpenClaimBuilder extends ClaimBuilder<ReadyToOpenClaimBuilder> { | |
private Company company; | |
private ReadyToOpenClaimBuilder() { | |
super(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public class ClaimDataBuilder extends ClaimBuilder<ClaimDataBuilder> { | |
private ClaimDataBuilder() { | |
super(); | |
} | |
public static ClaimDataBuilder aClaimDto() { | |
return new ClaimDataBuilder(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public abstract class ClaimBuilder<T> { | |
// some fields elided... | |
protected ClaimBuilder() { | |
// setting some defaults elided... | |
} | |
public T withClaimId(String number) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public class ClaimBuilder { | |
// some fields elided... | |
public static ClaimBuilder aClaimReadyToOpen() { | |
ClaimBuilder builder = new ClaimBuilder(); | |
builder.status = ClaimStatus.ReadyToOpen; | |
return aClaim(builder); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public class ClaimBuilder { | |
// some fields elided... | |
public static ClaimBuilder aClaimToOpen() { | |
ClaimBuilder builder = new ClaimBuilder(); | |
builder.description = "lalala"; | |
// setting some more defaults elided... | |
return builder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public class ClaimBuilder { | |
// some fields elided... | |
public static ClaimBuilder aClaimToOpen() { | |
ClaimBuilder builder = new ClaimBuilder(); | |
builder.description = "lalala"; | |
// setting some more defaults elided... | |
return builder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imports elided... | |
public class ReadyToOpenClaimBuilder extends ClaimBuilder<ReadyToOpenClaimBuilder> { | |
private Company company; | |
private ReadyToOpenClaimBuilder() { | |
super(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('case insensitive word to key', () => { | |
test.each([ | |
["A", "a"], | |
["Hello", "hello"], | |
["WORLD", "world"], | |
["MiXeDcAsE", "mixedcase"], | |
["PiPa", "pipa"], | |
["CHACHA", "chacha"], | |
["Hello123", "hello123"], | |
[" Space ", " space "], |
NewerOlder