Skip to content

Commit

Permalink
[TEST] - Fix Checkstyle violations
Browse files Browse the repository at this point in the history
- rename PurRepositoryBaseTest ->PurRepositoryTestBase not to follow the pattern for tests
- apply proper formatting to PurRepositoryTest
- apply proper formatting to PurRepositoryTestBase
  • Loading branch information
Andrey Khayrutdinov committed Oct 5, 2015
1 parent eabd9fc commit b717b5a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
Expand Up @@ -27,7 +27,14 @@
import java.io.File;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.Callable;

import javax.jcr.Repository;
Expand Down Expand Up @@ -56,7 +63,14 @@
import org.pentaho.di.imp.rules.TransformationHasANoteImportRule;
import org.pentaho.di.job.JobMeta;
import org.pentaho.di.partition.PartitionSchema;
import org.pentaho.di.repository.*;
import org.pentaho.di.repository.IRepositoryExporter;
import org.pentaho.di.repository.ObjectId;
import org.pentaho.di.repository.ObjectRevision;
import org.pentaho.di.repository.RepositoryDirectoryInterface;
import org.pentaho.di.repository.RepositoryElementInterface;
import org.pentaho.di.repository.RepositoryObjectType;
import org.pentaho.di.repository.RepositoryTestBase;
import org.pentaho.di.repository.UserInfo;
import org.pentaho.di.repository.pur.metastore.MetaStoreTestBase;
import org.pentaho.di.shared.SharedObjectInterface;
import org.pentaho.di.trans.TransMeta;
Expand Down
Expand Up @@ -69,14 +69,12 @@
/**
* @author Andrey Khayrutdinov
*/
@ContextConfiguration(
locations = {
@ContextConfiguration( locations = {
"classpath:/repository.spring.xml",
"classpath:/repository-test-override.spring.xml",
"classpath:/pdi-pur-plugin-test-override.spring.xml"
} )
"classpath:/pdi-pur-plugin-test-override.spring.xml" } )
@RunWith( SpringJUnit4ClassRunner.class )
public abstract class PurRepositoryBaseTest implements ApplicationContextAware {
public abstract class PurRepositoryTestBase implements ApplicationContextAware {

protected static final String TEST_LOGIN = "tester";
protected static final String TEST_TENANT = "testTenant";
Expand Down
Expand Up @@ -40,7 +40,7 @@
/**
* @author Andrey Khayrutdinov
*/
public class PurRepository_GetObjectInformation_Test extends PurRepositoryBaseTest {
public class PurRepository_GetObjectInformation_Test extends PurRepositoryTestBase {

@Test
public void getObjectInformation_IsDeletedFlagSet_Job() throws Exception {
Expand Down
Expand Up @@ -33,7 +33,7 @@
import static org.junit.Assert.assertThat;
import static org.junit.matchers.JUnitMatchers.hasItem;

public class PurRepository_MoveAndRename_Test extends PurRepositoryBaseTest {
public class PurRepository_MoveAndRename_Test extends PurRepositoryTestBase {

private final JobAssistant jobAssistant = new JobAssistant();
private final TransAssistant transAssistant = new TransAssistant();
Expand Down

0 comments on commit b717b5a

Please sign in to comment.