Error when running unit test: Failed to load ApplicationContext

Hi,

I am getting errors when running a basic unit test in a test class that extends the BaseModuleContextSensitiveTest class. Here’s the error log https://pastebin.com/uexJhwmj

Here’e the code

public class IsantePlusReportsDaoTest extends BaseModuleContextSensitiveTest {
		
	@Test
	public void saveItem_shouldSaveAllPropertiesInDb() {
//Code
	}
}

I need help to figure out the source of the issue. I seem to be at my wits’ end.

cc @dkayiwa @ssmusoke

1 Like

Add some more (those that you do not already have) dependencies of the serialization api. (serialization.xstream-api-1.9, serialization.xstream-api-1.10, serialization.xstream-api-2.0)

4 Likes

Hey @moshon if you ever resolved this, can you please share the pom.xml section for the serialization.xstream-api dependency, having a slightly similar problem with reporting-api which depends on the xstream-api.

@samprogramiz hei what could be the exact problem you are facing

1 Like

@herbert24 You can get more information here: BaseModuleContextSensitiveTest Tests Fail: