Skip to content

Commit

Permalink
Merge pull request #4139 from MDeLuise/fix-guiceGithubActionRiccardo
Browse files Browse the repository at this point in the history
🐛 [test] Fix GuiceLocator Instantiation Errors in `MfaAuthenticatorServiceLocatorTest`
  • Loading branch information
riccardomodanese authored Nov 19, 2024
2 parents be84cb5 + df199bc commit 7876e89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions service/security/shiro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<artifactId>kapua-security-shiro</artifactId>

<dependencies>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-server</artifactId>
<scope>test</scope>
</dependency>
<!-- Implemented service interfaces -->
<dependency>
<groupId>org.eclipse.kapua</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
package org.eclipse.kapua.service.authentication;

import java.util.Collections;

import javax.inject.Named;

import org.apache.activemq.artemis.spi.core.security.jaas.UserPrincipal;
import org.eclipse.kapua.commons.core.AbstractKapuaModule;
import org.eclipse.kapua.commons.util.xml.JAXBContextProvider;
import org.eclipse.kapua.commons.util.xml.JAXBContextProviderImpl;

import com.google.inject.Provides;

public class TestModule extends AbstractKapuaModule {

@Override
protected void configureModule() {
bind(JAXBContextProvider.class).toInstance(new JAXBContextProviderImpl(Collections.emptySet()));
bind(UserPrincipal.class).toInstance(new UserPrincipal(""));
}

@Provides
Expand Down

0 comments on commit 7876e89

Please sign in to comment.