当前位置: 首页>>代码示例>>Java>>正文


Java Assert.assertFalse方法代码示例

本文整理汇总了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();
}
 
开发者ID:pentaho,项目名称:pentaho-hadoop-shims,代码行数:13,代码来源:PentahoParquetRecordReaderTest.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:ZipJobEntryPatternFileSelectorTest.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:ZipJobEntryPatternFileSelectorTest.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:ZipJobEntryPatternFileSelectorTest.java

示例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() );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:RevisionResourceTest.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:ZipJobEntryPatternFileSelectorTest.java

示例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 );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:ZipJobEntryPatternFileSelectorTest.java


注:本文中的org.pentaho.di.core.util.Assert.assertFalse方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。