Commit e6d5d7c7 authored by Phillip Webb's avatar Phillip Webb

Fix failing MongoDataAutoConfigurationTests

parent 2f16a01d
......@@ -24,6 +24,7 @@ import org.junit.After;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.springframework.beans.factory.UnsatisfiedDependencyException;
import org.springframework.boot.autoconfigure.AutoConfigurationPackages;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
import org.springframework.boot.autoconfigure.data.mongo.city.City;
......@@ -124,7 +125,7 @@ public class MongoDataAutoConfigurationTests {
@Test
public void interfaceFieldNamingStrategy() {
this.thrown.expectMessage("Invalid custom FieldNamingStrategy");
this.thrown.expect(UnsatisfiedDependencyException.class);
testFieldNamingStrategy(FieldNamingStrategy.class.getName(), null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment