-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: upgrade dependencies #4
- Loading branch information
1 parent
4f3d219
commit ef02526
Showing
4 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.rmq4j; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.mockito.Mockito; | ||
import org.rmq4j.config.Rmq4jConfig; | ||
import org.rmq4j.service.Rmq4jInsService; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import static org.mockito.Mockito.times; | ||
import static org.mockito.Mockito.verify; | ||
|
||
@SpringBootTest | ||
public class Rmq4jConfigTest { | ||
|
||
@Autowired | ||
private Rmq4jConfig rmq4jConfig; | ||
|
||
@Autowired | ||
private Rmq4jInsService rmq4jInsService; | ||
|
||
@Test | ||
void testSnapIns() { | ||
rmq4jConfig.snapIns(); | ||
verify(rmq4jInsService, times(1)).snapIns(); | ||
} | ||
|
||
@Configuration | ||
static class TestConfig { | ||
@Bean | ||
public Rmq4jInsService rmq4jInsService() { | ||
return Mockito.mock(Rmq4jInsService.class); | ||
} | ||
|
||
@Bean | ||
public Rmq4jConfig rmq4jConfig(Rmq4jInsService rmq4jInsService) { | ||
return new Rmq4jConfig(rmq4jInsService); | ||
} | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
plugin/src/test/groovy/org/rmq4j/Wizard4jPluginTest.groovy
This file was deleted.
Oops, something went wrong.