Skip to content

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

Open
wants to merge 64 commits into
base: review
Choose a base branch
from
Open

Review #1

wants to merge 64 commits into from

Conversation

auriium
Copy link
Owner

@auriium auriium commented Mar 19, 2021

Review

@auriium auriium requested a review from A248 March 19, 2021 02:24
@@ -6,8 +6,12 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="core" />
Copy link
Contributor

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

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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);
Copy link
Contributor

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.

Copy link
Owner Author

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

Copy link
Contributor

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?

Copy link
Owner Author

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.

auriium and others added 3 commits March 20, 2021 18:04
Co-authored-by: A248 <anandebeh@gmail.com>
@auriium
Copy link
Owner Author

auriium commented Mar 23, 2021

@A248

@auriium
Copy link
Owner Author

auriium commented Mar 23, 2021

oops hold on it doesnt seem to have pushed

</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
Copy link
Contributor

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

Copy link
Owner Author

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> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Owner Author

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


private T alreadyStored;
private final Set<T> otherThingsInTheSet;
private final boolean linked;

//fuck code in the constructor rules
Copy link
Contributor

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?

Copy link
Owner Author

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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@auriium
Copy link
Owner Author

auriium commented Jun 30, 2021

cum

@auriium auriium linked an issue Jul 27, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation
2 participants