本文整理汇总了Java中org.pentaho.di.core.util.Assert.assertFalse方法的典型用法代码示例。如果您正苦于以下问题:Java Assert.assertFalse方法的具体用法?Java Assert.assertFalse怎么用?Java Assert.assertFalse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.util.Assert
的用法示例。
在下文中一共展示了Assert.assertFalse方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: iterateOverEmptyParquetFile
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
@Test( expected = RuntimeException.class )
public void iterateOverEmptyParquetFile() throws Exception {
initEmpty();
FileInputFormat.setInputPaths( job, getClass().getClassLoader().getResource( "empty.pqt" ).toExternalForm() );
initializeRecordReader();
PentahoParquetRecordReader recordReader = new PentahoParquetRecordReader( nativeRecordReader );
Assert.assertFalse( recordReader.iterator().hasNext() );
Assert.assertNull( recordReader.iterator().next() );
recordReader.close();
}
示例2: testPatternNull
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
@Test
public void testPatternNull() throws Exception {
fileSelector = new JobEntryZipFile.ZipJobEntryPatternFileSelector( null, Pattern.compile( EXCLUDE_PATTERN ) );
boolean includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertTrue( includeFile );
Mockito.when( fileNameMock.getBaseName() ).thenReturn( EXCLUDE_PATTERN_FILE_NAME );
includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertFalse( includeFile );
}
示例3: testExcludePatternNull
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
@Test
public void testExcludePatternNull() throws Exception {
fileSelector = new JobEntryZipFile.ZipJobEntryPatternFileSelector( Pattern.compile( PATTERN ), null );
boolean includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertTrue( includeFile );
Mockito.when( fileNameMock.getBaseName() ).thenReturn( EXCLUDE_PATTERN_FILE_NAME );
includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertFalse( includeFile );
}
示例4: testMatchesPatternAndExcludePattern
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
@Test
public void testMatchesPatternAndExcludePattern() throws Exception {
fileSelector =
new JobEntryZipFile.ZipJobEntryPatternFileSelector( Pattern.compile( PATTERN ), Pattern.compile( PATTERN ) );
boolean includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertFalse( includeFile );
}
示例5: testGetVersioningEnabled
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
/**
*
* @throws Exception
*/
@org.junit.Test
public void testGetVersioningEnabled() throws Exception {
FileVersioningConfiguration conf = revisionResource.doVersioningConfiguration( "foo.ktr" );
Assert.assertTrue( conf.isVersioningEnabled() );
Assert.assertFalse( conf.isVersionCommentEnabled() );
}
示例6: testMatchesExcludePattern
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
@Test
public void testMatchesExcludePattern() throws Exception {
Mockito.when( fileNameMock.getBaseName() ).thenReturn( EXCLUDE_PATTERN_FILE_NAME );
boolean includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertFalse( includeFile );
}
示例7: testDifferentFileType
import org.pentaho.di.core.util.Assert; //导入方法依赖的package包/类
@Test
public void testDifferentFileType() throws Exception {
Mockito.when( fileObjectMock.getType() ).thenReturn( FileType.IMAGINARY );
boolean includeFile = fileSelector.includeFile( fileSelectInfoMock );
Assert.assertFalse( includeFile );
}