input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testSimplifyOrTerms ( ) { final org . apache . calcite . rel . type . RelDataType intType = typeFactory . createSqlType ( SqlTypeName . INTEGER ) ; final org . apache . calcite . rel . type . RelDataType rowType = typeFactory . builder ( ) . add ( "b<sp>!=<sp>1<sp>or<sp>b<sp>=<sp>1" 1 , intType ) . nullable ( false ) .... | org . junit . Assert . assertThat ( simplified . toString ( ) , org . hamcrest . CoreMatchers . equalTo ( "b<sp>!=<sp>1<sp>or<sp>b<sp>=<sp>1" 2 ) ) |
testAvgAggregation ( ) { com . liferay . portal . search . aggregation . metrics . AvgAggregation avgAggregation = com . liferay . portal . search . aggregations . test . AggregationsInstantiationTest . _aggregations . avg ( "name" , "field" ) ; "<AssertPlaceHolder>" ; } avg ( java . lang . String , java . lang . Strin... | org . junit . Assert . assertNotNull ( avgAggregation ) |
testEigrpExternalRouteClone ( ) { org . batfish . datamodel . EigrpExternalRoute route = org . batfish . datamodel . EigrpExternalRoute . builder ( ) . setNetwork ( org . batfish . datamodel . Prefix . parse ( "1.1.1.1/32" ) ) . setEigrpMetric ( org . batfish . datamodel . eigrp . EigrpMetric . builder ( ) . setBandwid... | org . junit . Assert . assertThat ( org . batfish . common . util . BatfishObjectMapper . clone ( route , org . batfish . datamodel . EigrpExternalRoute . class ) , org . hamcrest . Matchers . equalTo ( route ) ) |
testSayHello ( ) { HelloBean b = new HelloBean ( ) ; "<AssertPlaceHolder>" ; } sayHello ( ) { return "Hello" ; } | org . junit . Assert . assertTrue ( b . sayHello ( ) . equals ( "Hello" ) ) |
testCastToBigInt ( ) { java . lang . String result = testDialect . getSqlFrom ( new org . alfasoftware . morf . sql . element . Cast ( new org . alfasoftware . morf . sql . element . FieldReference ( "value" ) , org . alfasoftware . morf . metadata . DataType . BIG_INTEGER , 10 ) ) ; "<AssertPlaceHolder>" ; } expectedB... | org . junit . Assert . assertEquals ( expectedBigIntCast ( ) , result ) |
testMapInhoud1 ( ) { final java . sql . Timestamp timestamp = new java . sql . Timestamp ( 1000L ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . AdministratieveHandeling administratieveHandeling = new nl . bzk . algemeenbrp . dal . domein . brp . entity . AdministratieveHandeling ( new nl . bzk . algem... | org . junit . Assert . assertNotNull ( result ) |
TestComplexEmptyGet ( ) { java . util . List r = com . groupon . mapreduce . mongo . JobUtil . get ( m , "d.y.foo" ) ; "<AssertPlaceHolder>" ; } get ( java . util . Map , java . lang . String ) { java . lang . String [ ] fields = path . split ( "\\." ) ; java . util . List found = new java . util . ArrayList ( ) ; com ... | org . junit . Assert . assertEquals ( r . size ( ) , 0 ) |
getAllTypeLibrariesNames ( ) { java . util . Set < java . lang . String > set = org . ebayopensource . turmeric . tools . library . TypeLibraryRegistryInterfaceTest . m_soaTypeRegistry . getAllTypeLibrariesNames ( ) ; "<AssertPlaceHolder>" ; } getAllTypeLibrariesNames ( ) { java . util . Set < java . lang . String > se... | org . junit . Assert . assertTrue ( set . contains ( org . ebayopensource . turmeric . tools . library . TypeLibraryRegistryInterfaceTest . m_libraryName ) ) |
test1 ( ) { java . util . Set < io . djigger . monitoring . java . instrumentation . InstrumentSubscription > subscription = new java . util . HashSet < io . djigger . monitoring . java . instrumentation . InstrumentSubscription > ( ) ; io . djigger . monitoring . java . model . StackTraceElement el = new io . djigger ... | org . junit . Assert . assertEquals ( 0 , subscription . size ( ) ) |
testMatches ( ) { final org . osgi . framework . Filter filter = context . mock ( org . osgi . framework . Filter . class ) ; event . setReadOnly ( true ) ; final java . util . Dictionary < java . lang . String , java . lang . Object > properties = event . getProperties ( ) ; context . checking ( new org . jmock . Expe... | org . junit . Assert . assertTrue ( event . matches ( filter ) ) |
distcpShouldNotBeCalledOnlyForOneFile ( ) { mockStatic ( org . apache . hadoop . security . UserGroupInformation . class ) ; when ( org . apache . hadoop . security . UserGroupInformation . getCurrentUser ( ) ) . thenReturn ( mock ( org . apache . hadoop . security . UserGroupInformation . class ) ) ; org . apache . ha... | org . junit . Assert . assertFalse ( copyUtils . limitReachedForLocalCopy ( MB_128 , 1L ) ) |
fixPathCommonTest ( ) { java . nio . file . Path inputPath = java . nio . file . Paths . get ( "subdir/subdir2/foo/bar/x.file" ) ; java . nio . file . Path expecting = java . nio . file . Paths . get ( "subdir/subdir2/foo/bar/x.file" ) ; "<AssertPlaceHolder>" ; } fixPath ( java . nio . file . Path ) { int i = 0 ; while... | org . junit . Assert . assertEquals ( expecting , com . facebook . buck . io . file . MorePaths . fixPath ( inputPath ) ) |
shouldCacheAllAuthors ( ) { int first = - 1 ; int second = - 1 ; org . apache . ibatis . session . SqlSession session = org . apache . ibatis . session . SqlSessionTest . sqlMapper . openSession ( ) ; try { java . util . List < org . apache . ibatis . domain . blog . Author > authors = session . selectList ( "com.domai... | org . junit . Assert . assertEquals ( first , second ) |
testUtilitySerialization ( ) { final org . apache . hadoop . fs . Path p = new org . apache . hadoop . fs . Path ( "hdfs://yaks:4344/dingos/f" ) ; org . apache . hadoop . fs . FileStatus stat = new org . apache . hadoop . fs . FileStatus ( 1024L , false , 3 , ( 1L << 31 ) , 12345678L , 87654321L , org . apache . hadoop... | org . junit . Assert . assertEquals ( stat , stat2 ) |
testTaskRequestWithFutureStartMsDoesNotGetRun ( ) { org . apache . kafka . common . utils . MockTime time = new org . apache . kafka . common . utils . MockTime ( 0 , 0 , 0 ) ; org . apache . kafka . common . utils . Scheduler scheduler = new org . apache . kafka . common . utils . MockScheduler ( time ) ; try ( org . ... | org . junit . Assert . assertEquals ( expectedState , resp ) |
testUnwrapDecryptNull ( ) { final java . lang . String wrappedEncryptedValue = null ; ddf . security . encryption . impl . EncryptionServiceImplTest . LOGGER . debug ( "Original<sp>wrapped<sp>encrypted<sp>value<sp>is:<sp>null" ) ; final ddf . security . encryption . impl . EncryptionServiceImpl encryptionService = new ... | org . junit . Assert . assertNull ( decryptedValue ) |
execute_emptypage ( ) { org . mitre . data . AbstractPageOperationTemplateTest . CountingPageOperation op = new org . mitre . data . AbstractPageOperationTemplateTest . EmptyPageCountingPageOperation ( Integer . MAX_VALUE , Long . MAX_VALUE ) ; op . execute ( ) ; "<AssertPlaceHolder>" ; } getCounter ( ) { return counte... | org . junit . Assert . assertEquals ( 0L , op . getCounter ( ) ) |
testSufficientConfig ( ) { org . dcache . gplazma . strategies . SessionStrategy strategy = strategyFactory . newSessionStrategy ( ) ; "<AssertPlaceHolder>" ; strategy . setPlugins ( successSufficientPlugins ) ; java . util . Set < java . security . Principal > authorizedPrincipals = com . google . common . collect . S... | org . junit . Assert . assertNotNull ( strategy ) |
testToString ( ) { java . lang . String principal = "my_special_principal" ; org . apache . accumulo . core . clientImpl . AuthenticationTokenIdentifier token = new org . apache . accumulo . core . clientImpl . AuthenticationTokenIdentifier ( principal ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( this . key ... | org . junit . Assert . assertTrue ( token . toString ( ) . contains ( principal ) ) |
testCreateSequentialRecurrence1 ( ) { "<AssertPlaceHolder>" ; } createSequentialRecurrence ( org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . SequentialRecurrence ) { return new javax . xml . bind . JAXBElement < org . pentaho . platform . plugin . services . importexport . expo... | org . junit . Assert . assertNotNull ( factory . createSequentialRecurrence ( mock ( org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . SequentialRecurrence . class ) ) ) |
testBuildWithParametersWithOrderBy ( ) { java . lang . String abbrName = "AN" ; java . lang . String name = "fdsfds" ; org . lnu . is . domain . employee . type . EmployeeType context = new org . lnu . is . domain . employee . type . EmployeeType ( ) ; context . setAbbrName ( abbrName ) ; context . setName ( name ) ; o... | org . junit . Assert . assertEquals ( expectedQuery , actualQuery ) |
emptyZeroCharBuffersize ( ) { final javax . json . JsonReader reader = javax . json . Json . createReaderFactory ( new java . util . HashMap < java . lang . String , java . lang . Object > ( ) { { put ( "org.apache.johnzon.default-char-buffer" , "0" ) ; } } ) . createReader ( java . lang . Thread . currentThread ( ) . ... | org . junit . Assert . assertNotNull ( reader ) |
testReadComponentType ( ) { java . io . InputStream is = getClass ( ) . getResourceAsStream ( "CalculatorImpl.componentType" ) ; javax . xml . stream . XMLStreamReader reader = org . apache . tuscany . sca . binding . ws . xml . ReadTestCase . inputFactory . createXMLStreamReader ( is ) ; org . apache . tuscany . sca .... | org . junit . Assert . assertNotNull ( componentType ) |
testClientNoArgs ( ) { int rc = newClient ( ) . start ( new java . lang . String [ ] { } ) ; "<AssertPlaceHolder>" ; } start ( java . lang . String [ ] ) { com . github . perlundq . yajsync . internal . util . ArgumentParser argsParser = com . github . perlundq . yajsync . internal . util . ArgumentParser . newNoUnname... | org . junit . Assert . assertTrue ( ( rc == ( - 1 ) ) ) |
testUnixModeInAddRaw ( ) { final java . io . File [ ] tmp = createTempDirAndFile ( ) ; final java . io . File a1 = java . io . File . createTempFile ( "unixModeBits." , ".zip" , tmp [ 0 ] ) ; try ( final org . apache . commons . compress . archivers . zip . ZipArchiveOutputStream zos = new org . apache . commons . comp... | org . junit . Assert . assertEquals ( 436 , fred . getUnixMode ( ) ) |
emptyTexts ( ) { java . lang . String diff = com . github . ferstl . maven . pomenforcers . util . SideBySideDiffUtil . diff ( java . util . Collections . emptyList ( ) , java . util . Collections . emptyList ( ) , "" , "" ) ; "<AssertPlaceHolder>" ; } diff ( java . util . Collection , java . util . Collection , java .... | org . junit . Assert . assertEquals ( "" , diff ) |
test ( ) { com . mysema . rdfbean . model . BID bid = new com . mysema . rdfbean . model . BID ( "c" ) ; com . mysema . rdfbean . model . UID uid = new com . mysema . rdfbean . model . UID ( "b:b" ) ; com . mysema . rdfbean . model . LIT lit = new com . mysema . rdfbean . model . LIT ( "a" ) ; com . mysema . rdfbean . ... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( stmt1 , stmt2 , stmt3 , stmt4 , stmt5 , stmt6 ) , stmts ) |
addLastLenTest ( ) { org . krakenapps . pcap . util . Buffer buffer = initBuffer4 ( ) ; org . krakenapps . pcap . util . Buffer buffer4 = new org . krakenapps . pcap . util . ChainBuffer ( ) ; byte [ ] testArray13 = new byte [ ] { 71 , 72 , 73 , 74 , 75 , 76 } ; byte [ ] testArray14 = new byte [ ] { 77 , 78 , 79 } ; by... | org . junit . Assert . assertEquals ( expected , buffer . get ( ) ) |
testPartialUpdateXMLDscriptorTranc ( ) { System . out . println ( "Running<sp>testPartialUpdateXMLDescriptorTranc" ) ; java . lang . String [ ] filenames = new java . lang . String [ ] { "constraint1.xml" , "constraint1.xml" 5 , "constraint1.xml" 1 , "constraint1.xml" 7 , "constraint5.xml" } ; com . marklogic . client ... | org . junit . Assert . assertTrue ( "constraint1.xml" 6 , content . contains ( "constraint1.xml" 4 ) ) |
when_setName_thenReturnsName ( ) { com . hazelcast . jet . config . JobConfig config = new com . hazelcast . jet . config . JobConfig ( ) ; java . lang . String name = "myJobName" ; config . setName ( name ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; } | org . junit . Assert . assertEquals ( name , config . getName ( ) ) |
backOffFactorIsConfigurable ( ) { connPerRoute . setMaxPerRoute ( route , 10 ) ; impl . setBackoffFactor ( 0.9 ) ; impl . backOff ( route ) ; "<AssertPlaceHolder>" ; } getMaxPerRoute ( org . apache . hc . client5 . http . HttpRoute ) { return pool . getMaxPerRoute ( route ) ; } | org . junit . Assert . assertEquals ( 9 , connPerRoute . getMaxPerRoute ( route ) ) |
injectionContextWithMathingKey ( ) { java . lang . String expected = "hello<sp>duke" ; java . util . Map < java . lang . String , java . lang . Object > injectionContext = new java . util . HashMap ( ) ; injectionContext . put ( "name" , expected ) ; com . airhacks . afterburner . injection . PresenterWithField withFie... | org . junit . Assert . assertThat ( withField . getName ( ) , org . hamcrest . CoreMatchers . is ( expected ) ) |
testInsertRowInEmptyMatrix ( ) { org . la4j . matrix . Matrix a = m ( org . la4j . matrix . MatrixTest . a ( 1.0 , 0.0 , 0.0 ) , org . la4j . matrix . MatrixTest . a ( 0.0 , 1.0 , 0.0 ) , org . la4j . matrix . MatrixTest . a ( 0.0 , 0.0 , 1.0 ) ) ; org . la4j . matrix . Vector v1 = org . la4j . matrix . MatrixTest . v ... | org . junit . Assert . assertEquals ( a , b ) |
getAsString_null ( ) { javax . faces . component . UIComponent component = org . oscm . ui . converter . ConverterTestHelper . getComponent ( false , null , null , "discount" ) ; java . lang . String actual = converter . getAsString ( context , component , null ) ; "<AssertPlaceHolder>" ; } getAsString ( javax . faces ... | org . junit . Assert . assertNull ( actual ) |
testGetBusinessObjectDataUploadCredential ( ) { org . finra . herd . model . api . xml . BusinessObjectDataKey businessObjectDataKey = new org . finra . herd . model . api . xml . BusinessObjectDataKey ( BDEF_NAMESPACE , BDEF_NAME , FORMAT_USAGE_CODE , FORMAT_FILE_TYPE_CODE , FORMAT_VERSION , PARTITION_VALUE , SUBPARTI... | org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . BusinessObjectDataUploadCredential ( awsCredential , AWS_KMS_KEY_ID ) , result ) |
should_require_0_to_100_multiplers_to_be_set ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i <= 100 ; i ++ ) { sb . append ( i ) ; sb . append ( '\t' ) ; sb . append ( ( i + 0.5 ) ) ; sb . append ( '\n' ) ; } com . google . common . io . Files . write ( B ( sb . toString... | org . junit . Assert . assertEquals ( ( i + 0.5 ) , gcba . adjustmentMultiplier ( i ) , 0 ) |
testForUnsignedTimeArray ( ) { java . sql . Time [ ] timeArr = new java . sql . Time [ 2 ] ; timeArr [ 0 ] = new java . sql . Time ( java . lang . System . currentTimeMillis ( ) ) ; timeArr [ 1 ] = new java . sql . Time ( 900000L ) ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . ... | org . junit . Assert . assertEquals ( arr , resultArr ) |
testSingleResultFromDeviceIndex ( ) { "<AssertPlaceHolder>" ; { org . hibernate . search . FullTextSession fullTextSession = node . openFullTextSession ( ) ; org . hibernate . Transaction transaction = fullTextSession . beginTransaction ( ) ; org . infinispan . hibernate . search . sharedIndex . Toaster toaster = new o... | org . junit . Assert . assertEquals ( 1 , clusterSize ( node , org . infinispan . hibernate . search . sharedIndex . Toaster . class ) ) |
testSetOrderableChildren ( ) { org . apache . jackrabbit . oak . api . Tree tree = root . getTree ( "/" ) . addChild ( "test2" ) ; tree . setOrderableChildren ( true ) ; java . lang . String [ ] childNames = new java . lang . String [ ] { "a" , "b" , "c" , "d" } ; for ( java . lang . String name : childNames ) { tree .... | org . junit . Assert . assertEquals ( childNames [ ( index ++ ) ] , child . getName ( ) ) |
testRollupSetting ( ) { java . util . List < org . joda . time . Interval > intervals = com . google . common . collect . Lists . newArrayList ( org . apache . druid . java . util . common . Intervals . of ( "2012-01-08T00Z/2012-01-11T00Z" ) , org . apache . druid . java . util . common . Intervals . of ( "2012-01-07T0... | org . junit . Assert . assertFalse ( spec . isRollup ( ) ) |
failureThenSecondAlreadySucceeded ( ) { initReg . remove ( ) ; initPair ( first , jetbrains . jetpad . base . Asyncs . constant ( "a" ) ) ; first . failure ( new java . lang . Throwable ( ) ) ; "<AssertPlaceHolder>" ; } failure ( java . lang . Throwable ) { if ( alreadyHandled ( ) ) { throw new java . lang . IllegalSta... | org . junit . Assert . assertNotNull ( error ) |
testDefaultMaxSize ( ) { org . pm4j . common . util . collection . LRUMap < java . lang . Integer , java . lang . String > lruMap = new org . pm4j . common . util . collection . LRUMap < java . lang . Integer , java . lang . String > ( ) ; for ( java . lang . Integer i = 0 ; i < 1001 ; i ++ ) { lruMap . put ( i , java ... | org . junit . Assert . assertEquals ( 1000 , lruMap . size ( ) ) |
testCopyConfigurationAliased ( ) { java . lang . Boolean configurationAliasRegistered = false ; java . lang . Class configurationClass = it . geosolutions . geobatch . actions . commons . CopyConfiguration . class ; java . util . Iterator < java . util . Map . Entry < java . lang . String , java . lang . Class < ? > > ... | org . junit . Assert . assertTrue ( configurationAliasRegistered ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . workflow . kaleo . model . KaleoTransition > kaleoTransitions = _persistence . f... | org . junit . Assert . assertTrue ( kaleoTransitions . isEmpty ( ) ) |
noInterceptors ( ) { "<AssertPlaceHolder>" ; } getInterceptorFactories ( ) { return copyOf ( interceptorFactories ) ; } | org . junit . Assert . assertThat ( manager . getInterceptorFactories ( ) , empty ( ) ) |
registerConverterClass ( ) { com . basho . riak . client . api . convert . ConverterFactory factory = com . basho . riak . client . api . convert . ConverterFactory . getInstance ( ) ; factory . registerConverterForClass ( com . basho . riak . client . api . convert . ConverterFactoryTest . Pojo . class , new com . bas... | org . junit . Assert . assertTrue ( ( converter instanceof com . basho . riak . client . api . convert . ConverterFactoryTest . MyConverter ) ) |
shouldNotFailOnEmptyQueue ( ) { java . nio . file . Path path = net . openhft . chronicle . queue . reader . DirectoryUtils . tempDir ( "shouldNotFailOnEmptyQueue" ) . toPath ( ) ; path . toFile ( ) . mkdirs ( ) ; new net . openhft . chronicle . queue . reader . ChronicleReader ( ) . withBasePath ( path ) . withMessage... | org . junit . Assert . assertTrue ( capturedOutput . isEmpty ( ) ) |
testRemoveUmlPrefixes2 ( ) { java . lang . String fullQualifiedName = "Data::de.crowdcode.test.Company" ; java . lang . String result = packageHelper . removeUmlPrefixes ( fullQualifiedName ) ; "<AssertPlaceHolder>" ; } removeUmlPrefixes ( java . lang . String ) { java . lang . String result = fullQualifiedName . repla... | org . junit . Assert . assertEquals ( "Data::de.crowdcode.test.Company" , result ) |
shouldReturnTrueWhenEntityWithGivenProductAndCompanyDoesnotExistsInDB ( ) { com . qcadoo . model . api . search . SearchCriterion criterion1 = com . qcadoo . model . api . search . SearchRestrictions . eq ( com . qcadoo . mes . productCatalogNumbers . hooks . CATALOG_NUMBER , entity . getStringField ( com . qcadoo . me... | org . junit . Assert . assertTrue ( result ) |
testCreateCronJobTrigger ( ) { "<AssertPlaceHolder>" ; } createCronJobTrigger ( ) { return new org . pentaho . platform . plugin . services . importexport . exportManifest . bindings . CronJobTrigger ( ) ; } | org . junit . Assert . assertNotNull ( factory . createCronJobTrigger ( ) ) |
testOffsetRightAfterCommentSymbol ( ) { net . roboconf . tooling . core . autocompletion . Couple couple = prepare ( "app1" , "initial.instances" , 2 ) ; java . util . List < net . roboconf . tooling . core . autocompletion . ICompletionProposer . RoboconfCompletionProposal > proposals = couple . proposer . findProposa... | org . junit . Assert . assertEquals ( 0 , proposals . size ( ) ) |
testReportForFileSizeGroupByPUIDWithFilter ( ) { reportData = reportDao . getReportData ( filter , ReportFieldEnum . FILE_SIZE , getGroupByFieldList ( ReportFieldEnum . PUID ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; } | org . junit . Assert . assertTrue ( ( ( reportData . size ( ) ) > 0 ) ) |
shouldProcessTestClasses ( ) { java . lang . System . setProperty ( "test" , "*Test1" ) ; final java . io . File testClassFile = new java . io . File ( ( ( ( com . github . bmsantos . core . cola . main . ColaMainTest . TARGET_DIR ) + ( separator ) ) + ( testClass1 ) ) ) ; final long initialSize = testClassFile . lengt... | org . junit . Assert . assertThat ( ( initialSize < finalSize ) , org . hamcrest . Matchers . is ( true ) ) |
testDocFullUrlCreation ( ) { org . nuxeo . ecm . platform . util . RepositoryLocation rep = new org . nuxeo . ecm . platform . util . RepositoryLocation ( "alpha" ) ; org . nuxeo . ecm . core . api . DocumentRef docRef = new org . nuxeo . ecm . core . api . IdRef ( "xxxx-xxx-xxxxx-xxxxxxxxx-xx" ) ; final java . lang . ... | org . junit . Assert . assertNotNull ( new java . net . URL ( result ) ) |
testGetCellScanner ( ) { java . util . List < org . apache . hadoop . hbase . Cell > a = new java . util . ArrayList ( ) ; org . apache . hadoop . hbase . KeyValue akv = new org . apache . hadoop . hbase . KeyValue ( org . apache . hadoop . hbase . util . Bytes . toBytes ( "a" ) , ( - 1L ) ) ; a . add ( akv ) ; a . add... | org . junit . Assert . assertFalse ( scanner . advance ( ) ) |
testRooms ( ) { java . util . List < com . sap . core . odata . ref . model . Room > list = java . util . Arrays . asList ( new com . sap . core . odata . ref . model . Room ( 1 , null ) , new com . sap . core . odata . ref . model . Room ( 2 , null ) , new com . sap . core . odata . ref . model . Room ( 3 , null ) ) ;... | org . junit . Assert . assertEquals ( list , building1 . getRooms ( ) ) |
peekEmptyTest ( ) { final com . conversantmedia . util . concurrent . ConcurrentStack < java . lang . Integer > stack = new com . conversantmedia . util . concurrent . ConcurrentStack ( 10 ) ; "<AssertPlaceHolder>" ; } peek ( ) { int spin = 0 ; for ( ; ; ) { final long readLock = seqLock . readLock ( ) ; final int stac... | org . junit . Assert . assertNull ( stack . peek ( ) ) |
testgetDimensions ( ) { final org . apache . druid . segment . incremental . IncrementalIndex < org . apache . druid . query . aggregation . Aggregator > incrementalIndex = new org . apache . druid . segment . incremental . IncrementalIndex . Builder ( ) . setIndexSchema ( new org . apache . druid . segment . increment... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "dim0" , "dim1" ) , incrementalIndex . getDimensionNames ( ) ) |
filestatFailed ( ) { jnr . posix . FileStat stat = null ; try { stat = jnr . posix . FileStatTest . posix . stat ( jnr . posix . FileStatTest . NON_EXISTENT_FILENAME ) ; } catch ( java . lang . UnsupportedOperationException e ) { } "<AssertPlaceHolder>" ; } stat ( java . lang . String ) { jnr . posix . FileStat stat = ... | org . junit . Assert . assertTrue ( ( stat == null ) ) |
testIteratorNextWithCount ( ) { nom . tam . util . HashedList < nom . tam . util . HashedListTest . TestCursorValue > h = new nom . tam . util . HashedList < nom . tam . util . HashedListTest . TestCursorValue > ( ) ; h . add ( new nom . tam . util . HashedListTest . TestCursorValue ( "K1" , "R1" ) ) ; h . add ( new no... | org . junit . Assert . assertEquals ( "K2" , cursorValue . key ) |
testListUsers ( ) { java . util . List < com . aliyun . odps . security . User > list = sm . listUsers ( ) ; for ( com . aliyun . odps . security . User user : list ) { "<AssertPlaceHolder>" ; user . reload ( ) ; } } getID ( ) { return model . id ; } | org . junit . Assert . assertNotNull ( user . getID ( ) ) |
inverse_style_downbond_ambiguous ( ) { org . openscience . cdk . interfaces . IAtomContainer m = new org . openscience . cdk . silent . AtomContainer ( 6 , 4 , 0 , 0 ) ; m . addAtom ( org . openscience . cdk . stereo . StereoElementFactoryTest . atom ( "O" , 1 , ( - 0.46 ) , 1.98 ) ) ; m . addAtom ( org . openscience .... | org . junit . Assert . assertNull ( element ) |
deveGerarXMLDeAcordoComOPadraoEstabelecidoBCAliquotaPercentual ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoPISST impostoPISST = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoPISST ( ) ; impostoPISST . setPercentualAliquota ( new j... | org . junit . Assert . assertEquals ( xmlEsperado , impostoPISST . toString ( ) ) |
two_$parent_project_field_without_recursion ( ) { com . redhat . lightblue . query . Projection p = com . redhat . lightblue . eval . EvalTestContext . projectionFromJson ( "[{'field':'field6.nf7.$parent.$parent.field2'},{'field':'field6.nf7.$parent.$parent.field6.*'}]" ) ; com . redhat . lightblue . eval . Projector p... | org . junit . Assert . assertEquals ( expectedNode . toString ( ) , pdoc . toString ( ) ) |
testStdev0 ( ) { double [ ] [ ] ind = new double [ ] [ ] { new double [ ] { 5.1 , 3.5 , 1.4 } , new double [ ] { 4.9 , 3.0 , 1.4 } , new double [ ] { 4.7 , 3.2 , 1.3 } } ; org . nd4j . linalg . api . ndarray . INDArray in = org . nd4j . linalg . factory . Nd4j . create ( ind ) ; org . nd4j . linalg . api . ndarray . IN... | org . junit . Assert . assertEquals ( exp , stdev ) |
testAllConstructorsStringGeneration ( ) { org . kie . workbench . common . services . datamodeller . core . DataModel dataModel = dataModelOracleDriver . createModel ( ) ; org . kie . workbench . common . services . datamodeller . core . DataObject object1 = dataModel . addDataObject ( "com.test.Object1" ) ; org . kie ... | org . junit . Assert . assertEquals ( results . getProperty ( "long" 4 ) , result ) |
testBefore ( ) { final org . apache . drill . exec . expr . holders . VarCharHolder left = org . apache . drill . exec . fn . impl . TestByteComparisonFunctions . goodbye ; final org . apache . drill . exec . expr . holders . VarCharHolder right = org . apache . drill . exec . fn . impl . TestByteComparisonFunctions . ... | org . junit . Assert . assertTrue ( ( ( org . apache . drill . exec . expr . fn . impl . ByteFunctionHelpers . compare ( left . buffer , left . start , left . end , right . buffer , right . start , right . end ) ) == ( - 1 ) ) ) |
testBadBatchSize ( ) { org . codice . ddf . commands . catalog . ConsoleOutput consoleOutput = new org . codice . ddf . commands . catalog . ConsoleOutput ( ) ; consoleOutput . interceptSystemOut ( ) ; org . codice . ddf . commands . catalog . RemoveAllCommand command = new org . codice . ddf . commands . catalog . Rem... | org . junit . Assert . assertThat ( consoleOutput . getOutput ( ) , org . hamcrest . Matchers . startsWith ( expectedPrintOut ) ) |
schemeTest ( ) { final java . lang . String expectedSchemeDescription = "CREATE<sp>TABLE<sp>IF<sp>NOT<sp>EXISTS<sp>\"RingOfPower\"<sp>(" + "id<sp>text,<sp>person<sp>list<text>,<sp>PRIMARY<sp>KEY<sp>((id)));" ; "<AssertPlaceHolder>" ; cassandraFactory . getSession ( ) . execute ( org . nohope . cassandra . mapservice . ... | org . junit . Assert . assertEquals ( expectedSchemeDescription , org . nohope . cassandra . mapservice . CCollectionListIT . SCHEME . buildTableDescription ( ) ) |
testCloneAndAugmentFlowWithSetVlanId ( ) { org . opendaylight . openflowplugin . openflow . md . core . sal . convertor . flow . FlowConvertorTest . MockFlow mockFlow = new org . opendaylight . openflowplugin . openflow . md . core . sal . convertor . flow . FlowConvertorTest . MockFlow ( ) ; org . opendaylight . yang ... | org . junit . Assert . assertEquals ( 2 , flowModInputBuilders . size ( ) ) |
hasDefinedAttribute ( ) { com . vaadin . flow . dom . Element e = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; e . setAttribute ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } hasAttribute ( com . vaadin . flow . dom . Element ) { return ! ( element . getClassList ( ) . isEmpty ( ) ) ; } | org . junit . Assert . assertTrue ( e . hasAttribute ( "foo" ) ) |
testQueryDefaultValueInComplex ( ) { org . nuxeo . ecm . core . api . DocumentModel doc = session . createDocumentModel ( "/" , "doc" , "MyDocType" ) ; session . createDocument ( doc ) ; session . save ( ) ; org . nuxeo . ecm . core . api . DocumentModelList dml = session . query ( "SELECT<sp>*<sp>FROM<sp>MyDocType<sp>... | org . junit . Assert . assertEquals ( 1 , dml . size ( ) ) |
testCopyDynAny ( ) { java . lang . String msg ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynAny dynAny = null ; org . omg . DynamicAny . DynAny dynAny2 = null ; tc = orb . get_primitive_tc ( org . omg . CORBA . TCKind . tk_long ) ; dynAny = createDynAnyFromTypeCode ( tc ) ; try { dynAny . inser... | org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) ) |
testDiscoverUnmappedKeyspaces ( ) { cassandraClientHolder . getClient ( ) . system_add_keyspace ( setupOtherKeyspace ( configuration , "OtherKeyspace" , false ) ) ; java . util . List < org . apache . cassandra . thrift . KsDef > keyspaces = schemaManagerService . findUnmappedKeyspaces ( ) ; boolean foundCreated = fals... | org . junit . Assert . assertTrue ( foundCreated ) |
testIsRepeatable ( ) { mockHelper . replayAll ( ) ; classUnderTest . setRepeatable ( true ) ; "<AssertPlaceHolder>" ; } isRepeatable ( ) { return false ; } | org . junit . Assert . assertEquals ( true , classUnderTest . isRepeatable ( ) ) |
testCopyListingFileStatusSerialization ( ) { org . apache . hadoop . tools . CopyListingFileStatus src = new org . apache . hadoop . tools . CopyListingFileStatus ( 4344L , false , 2 , ( 512 << 20 ) , 1234L , 5678L , new org . apache . hadoop . fs . permission . FsPermission ( ( ( short ) ( 330 ) ) ) , "dingo" , "yaks"... | org . junit . Assert . assertEquals ( src , dst ) |
testApply ( ) { int size = 1000 ; final java . util . List < org . opencb . biodata . models . variant . protobuf . VcfSliceProtos . VcfSlice > lst = new java . util . ArrayList ( ) ; org . opencb . commons . io . DataWriter < org . opencb . biodata . models . variant . protobuf . VcfSliceProtos . VcfSlice > collector ... | org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 2 ) , java . lang . Integer . valueOf ( lst . size ( ) ) ) |
testGetFileLength ( ) { org . apache . storm . blobstore . LocalFsBlobStore store = initLocalFs ( ) ; try ( org . apache . storm . blobstore . AtomicOutputStream out = store . createBlob ( "test" , new org . apache . storm . generated . SettableBlobMeta ( BlobStoreAclHandler . WORLD_EVERYTHING ) , null ) ) { out . writ... | org . junit . Assert . assertEquals ( 1 , blobInputStream . getFileLength ( ) ) |
testNullContentTypeIgnored ( ) { final byte [ ] is = getBytesForCapabilities ( "DES3" ) ; final org . jscep . transport . response . Capabilities caps = fixture . getResponse ( is , null ) ; "<AssertPlaceHolder>" ; } getStrongestCipher ( ) { final java . lang . String cipher ; if ( ( cipherExists ( "AES" ) ) && ( caps ... | org . junit . Assert . assertEquals ( "DESede" , caps . getStrongestCipher ( ) ) |
iterateImageSumStream1DotParallel ( ) { final org . eclipse . january . dataset . ILazyDataset lz = org . eclipse . january . dataset . DatasetFactory . ones ( 64 , 64 , 100 , 100 ) ; java . util . List < java . lang . Number > maxes = org . eclipse . dawnsci . analysis . dataset . SliceStreamSupport . sliceStream ( lz... | org . junit . Assert . assertEquals ( ( 64 * 64 ) , maxes . size ( ) ) |
testBericht ( ) { final nl . bzk . migratiebrp . bericht . model . sync . impl . AdHocZoekPersoonAntwoordBericht bericht = org . mockito . Mockito . mock ( nl . bzk . migratiebrp . bericht . model . sync . impl . AdHocZoekPersoonAntwoordBericht . class ) ; final nl . bzk . migratiebrp . synchronisatie . runtime . servi... | org . junit . Assert . assertNull ( creator . createMessage ( session ) ) |
testAlertParameteredByOutDetail ( ) { logbookParameters . putParameterValue ( LogbookParameterName . outcomeDetail , ( ( ( eventType ) + "." ) + ( outcome ) ) ) ; logbookEvent . setOutDetail ( ( ( ( eventType ) + "." ) + ( outcome ) ) ) ; boolean isAlertEvent = alertLogbookOperationsDecorator . isAlertEvent ( logbookPa... | org . junit . Assert . assertTrue ( isAlertEvent ) |
putObjectList ( ) { com . alipay . simplehbase . myrecord . MyRecord [ ] records = mockSlims ( 4 ) ; java . util . List < com . alipay . simplehbase . client . PutRequest < com . alipay . simplehbase . myrecord . MyRecord > > requestList = new java . util . ArrayList < com . alipay . simplehbase . client . PutRequest <... | org . junit . Assert . assertEquals ( records [ i ] , resultList . get ( i ) ) |
cascadedEnum ( mockit . CascadingParametersTest$Foo ) { new mockit . Expectations ( ) { { mock . getBar ( ) . getEnum ( ) ; result = mockit . CascadingParametersTest . AnEnum . Second ; } } ; "<AssertPlaceHolder>" ; } getBar ( ) { return null ; } | org . junit . Assert . assertEquals ( mockit . CascadingParametersTest . AnEnum . Second , mock . getBar ( ) . getEnum ( ) ) |
getSelectedTokenNull ( ) { final org . obeonetwork . m2doc . services . TokenRegistry registry = new org . obeonetwork . m2doc . services . TokenRegistry ( ) ; "<AssertPlaceHolder>" ; } getSelectedToken ( org . obeonetwork . m2doc . properties . TemplateCustomProperties ) { final java . util . List < java . lang . Stri... | org . junit . Assert . assertTrue ( registry . getSelectedToken ( null ) . isEmpty ( ) ) |
testInVMURI ( ) { locator . close ( ) ; org . apache . activemq . artemis . api . core . client . ServerLocator locator = addServerLocator ( org . apache . activemq . artemis . core . client . impl . ServerLocatorImpl . newLocator ( "vm:/1" ) ) ; org . apache . activemq . artemis . api . core . client . ClientSessionFa... | org . junit . Assert . assertNotNull ( consumer . receiveImmediate ( ) ) |
notEqualToNull ( ) { com . mpatric . mp3agic . ID3v2TextFrameData frameData = new com . mpatric . mp3agic . ID3v2TextFrameData ( false , new com . mpatric . mp3agic . EncodedText ( EncodedText . TEXT_ENCODING_ISO_8859_1 , com . mpatric . mp3agic . ID3v2TextFrameDataTest . TEST_TEXT ) ) ; "<AssertPlaceHolder>" ; } equal... | org . junit . Assert . assertFalse ( frameData . equals ( null ) ) |
testToStringNoQuota ( ) { org . apache . hadoop . fs . QuotaUsage quotaUsage = new org . apache . hadoop . fs . QuotaUsage . Builder ( ) . fileAndDirectoryCount ( 1234 ) . build ( ) ; java . lang . String expected = "<sp>none<sp>inf<sp>none" + "<sp>inf<sp>" ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ... | org . junit . Assert . assertEquals ( expected , quotaUsage . toString ( ) ) |
testAddsTransistionListener ( ) { com . eclipsesource . tabris . internal . ui . UIDescriptor uiDescriptor = new com . eclipsesource . tabris . internal . ui . UIDescriptor ( ) ; com . eclipsesource . tabris . ui . TransitionListener listener = mock ( com . eclipsesource . tabris . ui . TransitionListener . class ) ; u... | org . junit . Assert . assertTrue ( transitionListeners . contains ( listener ) ) |
permsShouldNotAffectOwners ( ) { java . util . List < org . candlepin . auth . permissions . Permission > perms = new java . util . ArrayList ( ) ; perms . add ( mock ( org . candlepin . auth . permissions . Permission . class ) ) ; org . candlepin . auth . UserPrincipal up = new org . candlepin . auth . UserPrincipal ... | org . junit . Assert . assertTrue ( up . getOwners ( ) . isEmpty ( ) ) |
shouldFindWindowStores ( ) { mockThread ( true ) ; final java . util . List < org . apache . kafka . streams . state . ReadOnlyWindowStore < java . lang . Object , java . lang . Object > > windowStores = provider . stores ( "window-store" , org . apache . kafka . streams . state . QueryableStoreTypes . windowStore ( ) ... | org . junit . Assert . assertEquals ( 2 , windowStores . size ( ) ) |
shouldReturnAnAbsentOptionalIfNoTargetDeviceCommandLineOptionsSet ( ) { com . facebook . buck . cli . TargetDeviceCommandLineOptions options = buildOptions ( ) ; "<AssertPlaceHolder>" ; } getTargetDeviceOptional ( ) { if ( ( ( ! ( getSerialNumber ( ) . isPresent ( ) ) ) && ( ! ( isEmulatorsOnlyModeEnabled ( ) ) ) ) && ... | org . junit . Assert . assertFalse ( options . getTargetDeviceOptional ( ) . isPresent ( ) ) |
testViewActionBitwiseValue ( ) { com . liferay . portal . kernel . model . ResourceAction viewResourceAction = com . liferay . portal . kernel . service . ResourceActionLocalServiceUtil . getResourceAction ( com . liferay . portal . service . ResourceActionLocalServiceTest . _NAME , ActionKeys . VIEW ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( 1L , viewResourceAction . getBitwiseValue ( ) ) |
isBasicCriteriaElementFactoryConstructorWorking ( ) { final java . lang . reflect . Constructor < com . uaihebert . uaicriteria . base . element . BasicCriteriaElementsFactory > constructor = com . uaihebert . uaicriteria . base . element . BasicCriteriaElementsFactory . class . getDeclaredConstructor ( new java . lang... | org . junit . Assert . assertNotNull ( object ) |
findAllVerliesNLNationaliteit ( ) { final java . util . Collection < nl . bzk . brp . model . algemeen . stamgegeven . kern . RedenVerliesNLNationaliteit > result = stamTabelRepository . findAllVerliesNLNationaliteit ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return elementen . isEmpty ( ) ; } | org . junit . Assert . assertFalse ( result . isEmpty ( ) ) |
testEquals ( ) { org . jfree . data . time . Day day1 = new org . jfree . data . time . Day ( 29 , org . jfree . chart . date . MonthConstants . MARCH , 2002 ) ; org . jfree . data . time . Day day2 = new org . jfree . data . time . Day ( 29 , org . jfree . chart . date . MonthConstants . MARCH , 2002 ) ; "<AssertPlace... | org . junit . Assert . assertTrue ( day1 . equals ( day2 ) ) |
testMessageWithMissingTimestamp ( ) { java . util . List < org . apache . metron . profiler . MessageRoute > routes = router . route ( messageOne , createConfig ( profileWithEventTime ) , context ) ; "<AssertPlaceHolder>" ; } size ( ) { int size = 0 ; for ( java . util . Map m : variableMappings ) { size += m . size ( ... | org . junit . Assert . assertEquals ( 0 , routes . size ( ) ) |
whenNoReplicaCountSpecified_canChangeIt ( ) { domain . setReplicaCount ( "cluster1" , 7 ) ; "<AssertPlaceHolder>" ; } getReplicaCount ( java . lang . String ) { return getReplicaCountFor ( getCluster ( clusterName ) ) ; } | org . junit . Assert . assertThat ( domain . getReplicaCount ( "cluster1" ) , org . hamcrest . Matchers . equalTo ( 7 ) ) |
testIdleCommUser ( ) { boolean fail = false ; try { com . github . rinde . rinsim . core . model . comm . CommModel . builder ( ) . build ( com . github . rinde . rinsim . core . model . comm . CommModelTest . fakeDependencies ( ) ) . register ( new com . github . rinde . rinsim . core . model . comm . CommModelTest . ... | org . junit . Assert . assertTrue ( fail ) |
testIsHasMoreShardsFalse ( ) { when ( mockDescription . getLastEvaluatedShardId ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } isHasMoreShards ( ) { return ( internalDescription . getLastEvaluatedShardId ( ) ) != null ; } | org . junit . Assert . assertFalse ( adapter . isHasMoreShards ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.