Skip to content

Conversation

derklaro
Copy link
Contributor

This pull requests removes pockermock (which is a pain because of incompatibility with java 17 and junit 5) and junit4. The replacements for them are junit5 and mockito, using the inline mock maker to also allow mocking of final classes.

The code was reformatted by IJ which moved quite a bit of stuff around. I would love to get some feedback regarding reformatting the main package, especially about moving away from tabs to 2 spaces (which is imho much readable).

(This change compiles correctly and all tests are passing, see #1510 why it's not compiling with GH actions 😄 )

Copy link
Owner

@dmulloy2 dmulloy2 left a comment

Choose a reason for hiding this comment

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

Looks great aside from two minor changes

BukkitInitialization.initializeItemMeta();
BukkitInitialization.initializePackage();
BukkitInitialization.initializeAll();
BukkitInitialization.initializeAll();
Copy link
Owner

Choose a reason for hiding this comment

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

Probably just a result of the find and replace, but this doesn't need to be called twice

}

// @Test
@Test
Copy link
Owner

Choose a reason for hiding this comment

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

I typically don't run this test by default since it has to make web requests, but sometimes uncomment this to more easily test it if it breaks for some reason

@dmulloy2
Copy link
Owner

Manually merged in 55f7b67

@dmulloy2 dmulloy2 closed this Feb 25, 2022
@derklaro derklaro deleted the pr/junit-5 branch February 25, 2022 05:50
@derklaro
Copy link
Contributor Author

Thanks for resolving the things for me 😄

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.

2 participants