Skip to content

Commit

Permalink
adds missing bean for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbranham committed Jul 16, 2024
1 parent 6d40822 commit 61b1d16
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.savantly.nexus.franchise.integtests;


import java.util.Collection;
import java.util.Collections;
import java.util.List;
Expand All @@ -27,19 +26,18 @@
import org.springframework.context.annotation.PropertySources;
import org.springframework.test.context.ActiveProfiles;

import net.savantly.encryption.jpa.AttributeEncryptor;
import net.savantly.nexus.command.web.NexusCommandWebModule;
import net.savantly.nexus.franchise.FranchiseModule;
import net.savantly.nexus.organizations.OrganizationsModule;


@SpringBootTest(
classes = OrganizationsModuleIntegTestAbstract.TestApp.class
)
@SpringBootTest(classes = OrganizationsModuleIntegTestAbstract.TestApp.class)
@ActiveProfiles("test")
public abstract class OrganizationsModuleIntegTestAbstract extends CausewayIntegrationTestAbstractWithFixtures {

/**
* Compared to the production app manifest <code>domainapp.webapp.AppManifest</code>,
* Compared to the production app manifest
* <code>domainapp.webapp.AppManifest</code>,
* here we in effect disable security checks, and we exclude any web/UI modules.
*/
@SpringBootConfiguration
Expand All @@ -61,6 +59,12 @@ public abstract class OrganizationsModuleIntegTestAbstract extends CausewayInteg
})
public static class TestApp {

@Bean
public AttributeEncryptor attributeEncryptor() throws Exception {
String fakeSecret = "12312312312312312312312312312312";
return new AttributeEncryptor(fakeSecret);
}

@Bean
public ApplicationUserRepository applicationUserRepository() {
return new ApplicationUserRepository() {
Expand Down

0 comments on commit 61b1d16

Please sign in to comment.