package org.springframework.data.simpledb.query;

import org.junit.Test;
import org.mockito.Mockito;

/**
 * Created by: mgrozea
 */
public class SimpleDbRepositoryQueryTest {


    @Test (expected = IllegalArgumentException.class)
    public void assertNotHavingNestedQueryParameters_should_fail_for_nested_attributes() {
        SimpleDbQueryMethod method = Mockito.mock(SimpleDbQueryMethod.class);
        Mockito.when(method.getDomainClass()).thenReturn((Class) SampleEntity.class);

        SimpleDbRepositoryQuery repositoryQuery = new SimpleDbRepositoryQuery(method, null);
        repositoryQuery.assertNotHavingNestedQueryParameters("select sampleNestedAttribute from SampleEntity");
    }
}
@@ -434,18 +434,18 @@
 omainCla
-ss
+zz
 ()).then

fix test