-
Notifications
You must be signed in to change notification settings - Fork 1
Review #1
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
base: review
Are you sure you want to change the base?
Conversation
core/src/main/java/me/aurium/beetle/branch/adapter/ContextAdapter.java
Outdated
Show resolved
Hide resolved
core/src/main/java/me/aurium/beetle/branch/annotate/AnnotatedCommand.java
Outdated
Show resolved
Hide resolved
@@ -6,8 +6,12 @@ | |||
<sourceOutputDir name="target/generated-sources/annotations" /> | |||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> | |||
<outputRelativeToContentRoot value="true" /> | |||
<module name="core" /> |
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.
Use .gitignore for these files
core/src/main/java/me/aurium/beetle/branch/adapter/ContextAdapter.java
Outdated
Show resolved
Hide resolved
core/src/main/java/me/aurium/beetle/branch/block/CommonBlockPath.java
Outdated
Show resolved
Hide resolved
tests/src/test/java/me/aurium/beetle/branch/tests/AbstractTests.java
Outdated
Show resolved
Hide resolved
core/src/main/java/me/aurium/beetle/branch/block/BlockList.java
Outdated
Show resolved
Hide resolved
protected final static String ALIAS = "TestCommand"; | ||
|
||
//@A248 is there a better way to do this with junit5? i'm not used to it. Is ther also a way to make the logger messages less ugly? They look shitty compared to juni4 | ||
protected void logTestStarting(String name) { |
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.
protected void logTestStarting(String name) { | |
@BeforeEach | |
public void logTestStarting() { | |
logger.info("Starting test {}", getClass().getName()); | |
} |
|
||
//@A248 is there a better way to do this with junit5? i'm not used to it. Is ther also a way to make the logger messages less ugly? They look shitty compared to juni4 | ||
protected void logTestStarting(String name) { | ||
logger.info(() -> "(BRANCH) Beginning test: " + name); |
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.
I don't know why you're using org.junit.platform.commons.logging
- that's internal API from junit-platform-commons. Your IDE should warn you such package is encapsulated. Maybe it's because you need to add module-info to Branch.
If you use slf4j, to format its log messages you have to configure the slf4j implementation. If that's slf4j-simple, make a simplelogger.properties and follow the slf4j-simple docs.
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.
Hmm, interesting. I tried slf4j with junit5 once and it didn't work which is why i defaulted to looking for a platform specific logger, but that makes much more sense
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.
It works fine. What "didn't work" about it?
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.
What didn't work was nothing was logged.
Co-authored-by: A248 <anandebeh@gmail.com>
# Conflicts: # core/pom.xml
oops hold on it doesnt seem to have pushed |
beetle-impl/pom.xml
Outdated
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-core</artifactId> |
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.
Why are you using logback? Why were you previously using log4j2? A library should not depend on a concrete logging framework
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.
This is for testing, remember. the scope is test.
* yet another marker interface | ||
* @param <C> | ||
*/ | ||
public interface AloneBuilder<C> extends Builder<C> { |
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.
Why?
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.
i honestly forgot by now
core/src/main/java/me/aurium/beetle/branch/handlers/EmptySuggestionHandler.java
Outdated
Show resolved
Hide resolved
|
||
private T alreadyStored; | ||
private final Set<T> otherThingsInTheSet; | ||
private final boolean linked; | ||
|
||
//fuck code in the constructor rules |
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.
There's no code in the constructor here?
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.
oh thats a remnant from a while ago, there used to be a bit of code there
# Conflicts: # pom.xml
…vertet.java Co-authored-by: A248 <anandebeh@gmail.com>
Add adapters and improve queue system
Fix block, add docs
Kudos, SonarCloud Quality Gate passed!
|
cum |
Review