Skip to content
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

Upgrade to junit5 #158

Merged
merged 5 commits into from
Aug 6, 2020
Merged

Upgrade to junit5 #158

merged 5 commits into from
Aug 6, 2020

Conversation

applitect
Copy link
Collaborator

Time to upgrade. Like the assertThrows vs the expected in the annotation.

  • Added the ability to get a full report of all subprojects in root directory build...

@applitect applitect requested a review from dcshock August 5, 2020 17:11
Copy link
Collaborator

@Kuroshii Kuroshii left a comment

Choose a reason for hiding this comment

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

LGTM - imports could be made a bit more consistent if we care to, but seems good

}

@Test
public void testEqualsWorksNormally() {
final String testTopic = "test-topic";
final String testGroup = "test-group";
Assert.assertEquals(new GroupedTopicSource(testTopic, testGroup),
assertEquals(new GroupedTopicSource(testTopic, testGroup),
new GroupedTopicSource(testTopic, testGroup));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: some classic refactor misalignment in a couple of these tests

GroupedTopicSourceTest
QueueSourceTest
RoleInputSourceTest
RoleInputMessageTests
TopicSourceTest

public void testNullArrayDeployment() throws IOException {
assertThrows(NullPointerException.class, () -> {
new ClassDeployment((Class<?>[]) null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: indent


final ForkliftMessage extractedMessage = consumerWrapper.receive(1000);
consumerWrapper.receive(1000);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: 3-space indent lol

import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
Copy link
Collaborator

Choose a reason for hiding this comment

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

static import in the middle, that's new

@applitect
Copy link
Collaborator Author

Rebased with develop. Fixed up nits and spacing issues.

@applitect applitect merged commit f9d7314 into develop Aug 6, 2020
@applitect applitect deleted the upgrade-to-junit5 branch August 6, 2020 18:22
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.

None yet

3 participants