input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testGetBuilder ( ) { org . apache . olingo . odata2 . jpa . processor . api . access . JPAEdmBuilder builder = org . apache . olingo . odata2 . jpa . processor . core . model . JPAEdmAssociationEndTest . objJPAEdmAssociationEnd . getBuilder ( ) ; "<AssertPlaceHolder>" ; } getBuilder ( ) { if ( ( builder ) == null ) { b... | org . junit . Assert . assertNotNull ( builder ) |
testGet_3 ( ) { com . jmethods . catatumbo . impl . LRUCache < java . lang . Integer , java . lang . Integer > squaresCache = new com . jmethods . catatumbo . impl . LRUCache ( 5 , 10 ) ; for ( int i = 1 ; i <= 10 ; i ++ ) { squaresCache . put ( i , ( i * i ) ) ; } squaresCache . get ( 1 ) ; squaresCache . put ( 11 , (... | org . junit . Assert . assertTrue ( ( ( ( ( squaresCache . size ( ) ) == 10 ) && ( ( squaresCache . get ( 1 ) ) != null ) ) && ( ( squaresCache . get ( 11 ) ) != null ) ) ) |
testUpdateStateWithPercentType ( ) { org . eclipse . smarthome . core . library . items . ColorItem item = new org . eclipse . smarthome . core . library . items . ColorItem ( "test" ) ; item . setState ( new org . eclipse . smarthome . core . library . types . HSBType ( new org . eclipse . smarthome . core . library .... | org . junit . Assert . assertEquals ( new org . eclipse . smarthome . core . library . types . HSBType ( new org . eclipse . smarthome . core . library . types . DecimalType ( 75 ) , new org . eclipse . smarthome . core . library . types . PercentType ( 75 ) , new org . eclipse . smarthome . core . library . types . Pe... |
retriggerTest ( ) { pk = new org . candlepin . pinsetter . core . PinsetterKernel ( config , jfactory , jlistener , jcurator , sfactory , triggerListener , modeManager ) ; java . lang . String job = "CancelJobJob" ; org . quartz . TriggerKey key = new org . quartz . TriggerKey ( job ) ; java . util . Set < org . quartz... | org . junit . Assert . assertTrue ( capturedTrigger . getKey ( ) . getName ( ) . startsWith ( job ) ) |
should_use_TypeRef_to_access_field ( ) { org . fest . reflect . core . Reflection_field_Test . Jedi jedi = new org . fest . reflect . core . Reflection_field_Test . Jedi ( ) ; java . util . List < java . lang . String > powers = org . fest . reflect . core . Reflection . field ( "powers" ) . ofType ( new org . fest . r... | org . junit . Assert . assertSame ( jedi . powers , powers ) |
test2 ( ) { it . Main main = new it . Main ( ) ; main . setId ( "test2" ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertEquals ( "test2" , main . getId ( ) ) |
testGetRelevantAtomContainer_IReaction_IBond ( ) { java . util . Iterator < org . openscience . cdk . interfaces . IAtomContainer > atomContainers = org . openscience . cdk . tools . manipulator . ReactionManipulator . getAllAtomContainers ( reaction ) . iterator ( ) ; while ( atomContainers . hasNext ( ) ) { org . ope... | org . junit . Assert . assertEquals ( container , org . openscience . cdk . tools . manipulator . ReactionManipulator . getRelevantAtomContainer ( reaction , aBond ) ) |
trimLabelsDays4 ( ) { java . util . List < java . lang . String > input = java . util . Arrays . asList ( "2014/11/28<sp>00:00:00.000000000" , "2014/11/29<sp>00:00:00.000000000" , "2014/11/30<sp>00:00:00.000000000" , "2014/12/01<sp>00:00:00.000000000" , "2014/12/02<sp>00:00:00.000000000" ) ; java . util . List < java .... | org . junit . Assert . assertThat ( found , equalTo ( expected ) ) |
testSqrtModPrime ( ) { for ( java . math . BigInteger p : new java . math . BigInteger [ ] { ch . bfh . unicrypt . helper . math . MathUtilTest . TWO , ch . bfh . unicrypt . helper . math . MathUtilTest . THREE , ch . bfh . unicrypt . helper . math . MathUtilTest . FIVE , ch . bfh . unicrypt . helper . math . MathUtilT... | org . junit . Assert . assertEquals ( bi_square , bi_square_sqrt . modPow ( ch . bfh . unicrypt . helper . math . MathUtilTest . TWO , p ) ) |
testValidateSchemaNewFieldWithDefault ( ) { final org . apache . avro . List < org . apache . avro . Schema . Field > readerFields = list ( new org . apache . avro . Schema . Field ( "oldfield1" , INT_SCHEMA , null , null ) , new org . apache . avro . Schema . Field ( "newfield1" , INT_SCHEMA , null , 42 ) ) ; final or... | org . junit . Assert . assertEquals ( expectedResult , checkReaderWriterCompatibility ( reader , org . apache . avro . TestSchemaCompatibility . WRITER_SCHEMA ) ) |
testGetBooleanSameSizeArray ( ) { com . eclipsesource . v8 . V8Array a = v8 . executeArrayScript ( "[true,<sp>false,<sp>false,<sp>true]" ) ; boolean [ ] result = new boolean [ 4 ] ; int size = a . getBooleans ( 0 , 4 , result ) ; "<AssertPlaceHolder>" ; a . close ( ) ; } executeArrayScript ( java . lang . String ) { re... | org . junit . Assert . assertEquals ( 4 , size ) |
testExportCSVSpecifiedColumns ( ) { net . casper . data . model . CBuilder builder = new net . casper . io . file . in . CBuildFromFile ( patientsCSV , "patientsCSV" , columnNames , columnOptionalReaders , PKs ) ; net . casper . data . model . CDataCacheContainer container = new net . casper . data . model . CDataCache... | org . junit . Assert . assertEquals ( 4 , container . size ( ) ) |
testIsValidDefinitionException ( ) { org . apache . tiles . request . Request request = createMock ( org . apache . tiles . request . Request . class ) ; expect ( definitionsFactory . getDefinition ( "definition" , request ) ) . andThrow ( new org . apache . tiles . definition . NoSuchDefinitionException ( ) ) ; replay... | org . junit . Assert . assertFalse ( container . isValidDefinition ( "definition" , request ) ) |
testEvaluateFilterPropFilterAgainstException ( ) { org . unitedinternet . cosmo . calendar . query . CalendarFilterEvaluater evaluater = new org . unitedinternet . cosmo . calendar . query . CalendarFilterEvaluater ( ) ; net . fortuna . ical4j . model . Calendar calendar = getCalendar ( "event_with_exception.ics" ) ; o... | org . junit . Assert . assertTrue ( evaluater . evaluate ( calendar , filter ) ) |
testGetCurrentEvent ( ) { "<AssertPlaceHolder>" ; } getCurrentEvent ( ) { org . eclipse . tracecompass . internal . tmf . ctf . core . trace . iterator . CtfIterator iterator = getIterator ( ) ; return iterator == null ? null : iterator . getCurrentEvent ( ) ; } | org . junit . Assert . assertNotNull ( fixture . getCurrentEvent ( ) ) |
testDeleteAnnotationSet ( ) { catalogManager . getSampleManager ( ) . removeAnnotationSet ( studyFqn , s_1 , "annot1" , org . opencb . commons . datastore . core . QueryOptions . empty ( ) , sessionIdUser ) ; org . opencb . commons . datastore . core . QueryResult < org . opencb . opencga . catalog . managers . Sample ... | org . junit . Assert . assertEquals ( 0 , sampleQueryResult . first ( ) . getAnnotationSets ( ) . size ( ) ) |
testIsJaninoAvailable_2 ( ) { boolean result = org . audit4j . core . util . EnvUtil . isJaninoAvailable ( ) ; "<AssertPlaceHolder>" ; } isJaninoAvailable ( ) { java . lang . ClassLoader classLoader = org . audit4j . core . util . EnvUtil . class . getClassLoader ( ) ; try { java . lang . Class < ? > bindingClass = cla... | org . junit . Assert . assertEquals ( false , result ) |
testElimina ( ) { mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . contabilidad . facturas . model . ProveedorFacturas proveedorFacturas = new mx . edu . um . mateo . contabilidad . facturas . model . ProveedorFacturas ( "testA" , "TEST-01" , "nombre" , "appaterno... | org . junit . Assert . assertNotNull ( proveedorFacturas . getId ( ) ) |
deveGerarXMLDeAcordoComOPadraoEstabelecido ( ) { final java . lang . String xmlEsperado = "<NFNotaInfoItemProduto><cProd>ohVRInAS7jw8LNDP4WWjssSjBHK8nJRERnAeRMcsUokF3YItT93fBto3zZcq</cProd><cEAN>36811963532505</cEAN><xProd>OBS0ztekCoG0DSSVcQwPKRV2fV842Pye7mED13P4zoDczcXi4AMNvQ7BKBLnHtLc2Z9fuIY1pcKmXSK1IJQSLEs5QWvVGyC74... | org . junit . Assert . assertEquals ( xmlEsperado , com . fincatto . documentofiscal . nfe310 . FabricaDeObjetosFake . getNFNotaInfoItemProduto ( ) . toString ( ) ) |
testNonExistentFieldInverted ( ) { rule . setInverted ( true ) ; msg . addField ( "someother" , "hello<sp>foo" ) ; org . graylog2 . streams . matchers . StreamRuleMatcher matcher = getMatcher ( rule ) ; "<AssertPlaceHolder>" ; } match ( org . graylog2 . plugin . Message , org . graylog2 . plugin . streams . StreamRule ... | org . junit . Assert . assertTrue ( matcher . match ( msg , rule ) ) |
testQualifyAddressGroupComplex ( ) { edu . internet2 . middleware . changelogconsumer . googleapps . utils . AddressFormatter addressFormatter = new edu . internet2 . middleware . changelogconsumer . googleapps . utils . AddressFormatter ( ) ; addressFormatter . setGroupIdentifierExpression ( "crs-${groupPath.replace(\... | org . junit . Assert . assertEquals ( expected , result ) |
valideAfnemerindicatie ( ) { final nl . bzk . brp . model . internbericht . ProtocolleringOpdracht protocolleringOpdracht = maakProtocolleringOpdracht ( SoortDienst . MUTATIELEVERING_OP_BASIS_VAN_AFNEMERINDICATIE , null , datumAanvangMaterielePeriode , null , datumTijdAanvangFormelePeriode , datumTijdEindeFormelePeriod... | org . junit . Assert . assertTrue ( protocolleringOpdracht . isValide ( ) ) |
shouldReturnNullIfTheInputIsNull ( ) { final uk . gov . gchq . gaffer . data . element . id . ElementId input = null ; final uk . gov . gchq . gaffer . operation . function . FromElementId function = new uk . gov . gchq . gaffer . operation . function . FromElementId ( ) ; final java . lang . Object output = function .... | org . junit . Assert . assertNull ( output ) |
testColumnProperties ( ) { java . lang . String ddl = ( ( ( ( ( ( ( ( ( ( ( ( ( "CREATE<sp>VIEW<sp>StockPrices<sp>(" + ( NEW_LINE ) ) + "symbol<sp>string(10)<sp>NOT<sp>NULL<sp>AUTO_INCREMENT,<sp>" ) + ( NEW_LINE ) ) + "companyID<sp>string(10)<sp>NOT<sp>NULL," 1 ) + ( NEW_LINE ) ) + "companyID<sp>string(10)<sp>NOT<sp>NU... | org . junit . Assert . assertEquals ( expectedDdl , generatedDdl ) |
testIPv6AddressMatchesIPv6Address ( ) { com . liferay . portal . kernel . internal . security . access . control . AllowedIPAddressesValidator allowedIPAddressesValidator = com . liferay . portal . kernel . internal . security . access . control . AllowedIPAddressesValidatorFactory . create ( com . liferay . portal . k... | org . junit . Assert . assertTrue ( allowedIPAddressesValidator . isAllowedIPAddress ( com . liferay . portal . kernel . internal . security . access . control . AllowedIPAddressesValidatorTest . _ADDRESS_IP_V6 ) ) |
testUnsupportedType ( ) { testMetadata . setContentType ( "fake/type" ) ; org . sagebionetworks . repo . model . file . PreviewFileHandle pfm = previewManager . generatePreview ( testMetadata ) ; "<AssertPlaceHolder>" ; } generatePreview ( org . sagebionetworks . repo . model . file . S3FileHandle ) { if ( metadata == ... | org . junit . Assert . assertTrue ( ( pfm == null ) ) |
testValidate_2 ( ) { java . lang . String ip = "" ; boolean result = com . impetus . ankush . common . utils . validator . IPAddressValidator . validate ( ip ) ; "<AssertPlaceHolder>" ; } validate ( java . lang . String ) { com . impetus . ankush . common . utils . validator . IPAddressValidator . pattern = java . util... | org . junit . Assert . assertEquals ( false , result ) |
coercePath ( ) { java . lang . String path = "hello.a" ; projectFilesystem . touch ( java . nio . file . Paths . get ( path ) ) ; com . facebook . buck . core . sourcepath . SourcePath sourcePath = sourcePathTypeCoercer . coerce ( cellRoots , projectFilesystem , pathRelativeToProjectRoot , EmptyTargetConfiguration . IN... | org . junit . Assert . assertEquals ( com . facebook . buck . core . sourcepath . PathSourcePath . of ( projectFilesystem , java . nio . file . Paths . get ( path ) ) , sourcePath ) |
testSetTag_Long ( ) { co . nstant . in . cbor . model . DataItem di = new co . nstant . in . cbor . model . DataItem ( MajorType . UNSIGNED_INTEGER ) ; di . setTag ( 1 ) ; "<AssertPlaceHolder>" ; } getTag ( ) { return tag ; } | org . junit . Assert . assertNotNull ( di . getTag ( ) ) |
testSerialization ( ) { double [ ] starts_S1 = new double [ ] { 0.1 , 0.2 , 0.3 } ; double [ ] starts_S2 = new double [ ] { 0.3 , 0.4 , 0.5 } ; double [ ] ends_S1 = new double [ ] { 0.5 , 0.6 , 0.7 } ; double [ ] ends_S2 = new double [ ] { 0.7 , 0.8 , 0.9 } ; double [ ] [ ] starts = new double [ ] [ ] { starts_S1 , sta... | org . junit . Assert . assertEquals ( d1 , d2 ) |
testAbstractHandler_InterledgerPayment ( ) { final org . interledger . ilp . InterledgerPayment interledgerPayment = mock ( org . interledger . ilp . InterledgerPayment . class ) ; final org . interledger . ilqp . QuoteLiquidityRequest quoteLiquidityRequest = mock ( org . interledger . ilqp . QuoteLiquidityRequest . cl... | org . junit . Assert . assertThat ( actual , org . hamcrest . core . Is . is ( "a" ) ) |
testSetUserRolesEmptyList ( ) { container . login ( operatorKey , org . oscm . identityservice . bean . ROLE_ORGANIZATION_ADMIN ) ; org . oscm . internal . vo . VOUserDetails user = new org . oscm . internal . vo . VOUserDetails ( ) ; user . setUserId ( org . oscm . identityservice . bean . IdentityServiceBeanIT . USER... | org . junit . Assert . assertTrue ( resultUser . getAssignedRoles ( ) . isEmpty ( ) ) |
testGetSdkFromBuckconfig ( ) { java . nio . file . Path sdkDir = tmpDir . newFolder ( "sdk" ) ; com . facebook . buck . android . toolchain . impl . AndroidSdkDirectoryResolver resolver = new com . facebook . buck . android . toolchain . impl . AndroidSdkDirectoryResolver ( tmpDir . getRoot ( ) . getFileSystem ( ) , co... | org . junit . Assert . assertEquals ( sdkDir , resolver . getSdkOrThrow ( ) ) |
testElConstant ( ) { com . streamsets . pipeline . api . el . ELEval elEval = new com . streamsets . datacollector . el . ELEvaluator ( "testElConstant" , false , elDefinitionExtractor , com . streamsets . datacollector . el . TestELEvaluator . ValidTestEl . class ) ; com . streamsets . pipeline . api . el . ELVars var... | org . junit . Assert . assertTrue ( result ) |
testPropertySetAfterAdapterCreationShouldBeTakenIntoAccount ( ) { com . picocontainer . behaviors . PropertyApplying factory = ( ( com . picocontainer . behaviors . PropertyApplying ) ( createComponentFactory ( ) ) ) ; com . picocontainer . behaviors . PropertyApplying . PropertyApplicator adapter = ( ( com . picoconta... | org . junit . Assert . assertEquals ( "hello" , foo . message ) |
testThrowCheckedException ( ) { java . io . IOException expected = new java . io . IOException ( "EXPECTED<sp>ERROR" ) ; java . io . IOException actual = null ; try { org . slieb . throwables . LongToDoubleFunctionWithThrowable . aLongToDoubleFunctionThatUnsafelyThrowsUnchecked ( ( v1 ) -> { throw expected ; } ) . appl... | org . junit . Assert . assertEquals ( expected , actual ) |
get_table_objects_by_name_req ( ) { com . hotels . bdp . waggledance . client . CloseableThriftHiveMetastoreIface thriftHiveMetastoreIface = factory . newInstance ( delegate ) ; org . apache . hadoop . hive . metastore . api . GetTablesRequest tablesRequest = new org . apache . hadoop . hive . metastore . api . GetTabl... | org . junit . Assert . assertThat ( tablesResult , org . hamcrest . CoreMatchers . is ( new org . apache . hadoop . hive . metastore . api . GetTablesResult ( com . google . common . collect . Lists . newArrayList ( table ) ) ) ) |
testQuotaByStorageTypeParentOffChildOff ( ) { final org . apache . hadoop . fs . Path parent = new org . apache . hadoop . fs . Path ( org . apache . hadoop . hdfs . server . namenode . TestQuotaByStorageType . dir , "parent" ) ; final org . apache . hadoop . fs . Path child = new org . apache . hadoop . fs . Path ( pa... | org . junit . Assert . assertEquals ( file1Len , ssdConsumed ) |
testJsonWithoutPadding ( ) { org . apache . cxf . message . Message message = new org . apache . cxf . message . MessageImpl ( ) ; message . put ( Message . CONTENT_TYPE , MediaType . APPLICATION_JSON ) ; message . setExchange ( new org . apache . cxf . message . ExchangeImpl ( ) ) ; java . io . ByteArrayOutputStream b... | org . junit . Assert . assertEquals ( "" , bos . toString ( ) ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . marketplace . model . App newApp = addApp ( ) ; com . liferay . marketplace . model . App existingApp = _persistence . findByPrimaryKey ( newApp . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntryId ; } | org . junit . Assert . assertEquals ( existingApp , newApp ) |
testSaveAndRetrieve ( ) { java . util . Random r = new java . util . Random ( 1234 ) ; org . apache . hadoop . hive . ql . exec . vector . TimestampColumnVector timestampColVector = new org . apache . hadoop . hive . ql . exec . vector . TimestampColumnVector ( ) ; java . sql . Timestamp [ ] randTimestamps = new java .... | org . junit . Assert . assertTrue ( false ) |
testToArray ( ) { com . gs . collections . impl . set . mutable . primitive . ByteHashSet hashSet = com . gs . collections . impl . set . mutable . primitive . ByteHashSet . newSetWith ( ) ; hashSet . add ( ( ( byte ) ( 0 ) ) ) ; hashSet . add ( ( ( byte ) ( 1 ) ) ) ; hashSet . add ( ( ( byte ) ( 2 ) ) ) ; hashSet . ad... | org . junit . Assert . assertArrayEquals ( expected , hashSet . toArray ( ) ) |
testNoSuchProduct ( ) { final net . violet . platform . datamodel . Lang frLang = getSiteFrLang ( ) ; final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . press . GetPressClip ( ) ; final net . violet . platform . api . callers . APICaller caller = getPublicAp... | org . junit . Assert . assertNotNull ( theResult ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . Team newTeam = addTeam ( ) ; com . liferay . portal . kernel . model . Team existingTeam = _persistence . findByPrimaryKey ( newTeam . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntryId ; } | org . junit . Assert . assertEquals ( existingTeam , newTeam ) |
testProjectWithSourceFolders ( ) { org . eclipse . jdt . core . IPackageFragmentRoot rootSrc1 = javaProject1 . createSourceFolder ( "src" ) ; org . eclipse . jdt . core . IPackageFragmentRoot rootSrc2 = javaProject1 . createSourceFolder ( "test" ) ; com . mountainminds . eclemma . core . JavaProjectKit . waitForBuild (... | org . junit . Assert . assertEquals ( set ( rootSrc1 , rootSrc2 ) , set ( scope ) ) |
testPrivateConstructor ( ) { java . lang . reflect . Constructor < org . terasoluna . gfw . web . util . RequestUtils > c = org . terasoluna . gfw . web . util . RequestUtils . class . getDeclaredConstructor ( ) ; c . setAccessible ( true ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( c . newInstance ( ) ) |
testSelectForUpdateFieldsQuery ( ) { final java . lang . String selectForUpdateQuery = getDialect ( ) . createSelectForUpdateQuery ( "MOVIE" , "ID,<sp>TITLE" , "ID" ) ; "<AssertPlaceHolder>" ; } getExpectedSelectForUpdateFieldsQuery ( ) { return "<sp>select<sp>ID,<sp>TITLE<sp>from<sp>MOVIE<sp>where<sp>ID<sp>=<sp>#ID#<s... | org . junit . Assert . assertEquals ( getExpectedSelectForUpdateFieldsQuery ( ) , selectForUpdateQuery ) |
testOr ( ) { de . persosim . simulator . utils . BitField expected = new de . persosim . simulator . utils . BitField ( 20 , new byte [ ] { ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 255 ) ) , ( ( byte ) ( 240 ) ) } ) ; de . persosim . simulator . utils . BitField result = field1 . or ( field2 ) ; "<Ass... | org . junit . Assert . assertEquals ( expected , result ) |
initialNodeNotHaveAnyIncomingActivityEdge ( ) { org . eclipse . uml2 . uml . InitialNode node = UMLFactory . eINSTANCE . createInitialNode ( ) ; "<AssertPlaceHolder>" ; } isValidActivityEdgeEnd ( org . eclipse . uml2 . uml . Element , org . eclipse . uml2 . uml . Element ) { return isValidFlowEnd ( source , preTarget )... | org . junit . Assert . assertFalse ( services . isValidActivityEdgeEnd ( null , node ) ) |
test_updateIndexFile_nonXml ( ) { java . io . File txtFile = new java . io . File ( tmpFolder , "abc.txt" ) ; txtFile . createNewFile ( ) ; final boolean added = new org . talend . updates . runtime . nexus . component . ComponentIndexManager ( ) . updateIndexFile ( txtFile , null ) ; "<AssertPlaceHolder>" ; } updateIn... | org . junit . Assert . assertFalse ( added ) |
testDetectorWhenMetricsOutOfRange ( ) { when ( context . measurements ( ) ) . thenReturn ( com . microsoft . dhalion . core . MeasurementsTable . of ( metrics2 ) ) ; detector = new com . microsoft . dhalion . detectors . ExcessMemoryDetector ( policyConf ) ; detector . initialize ( context ) ; java . util . Collection ... | org . junit . Assert . assertEquals ( 0 , symptomsTable . size ( ) ) |
testSetBeforeAndGetAfterDeprecation ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( "oldkey" , "hello" ) ; org . apache . hadoop . conf . Configuration . addDeprecation ( "oldkey" , new java . lang . String [ ] { "newkey" } ) ; "<AssertPlaceH... | org . junit . Assert . assertEquals ( "hello" , conf . get ( "newkey" ) ) |
testCreateDDMExpression ( ) { com . liferay . dynamic . data . mapping . expression . internal . DDMExpressionFactoryImpl ddmExpressionFactory = new com . liferay . dynamic . data . mapping . expression . internal . DDMExpressionFactoryImpl ( ) ; ddmExpressionFactory . ddmExpressionFunctionTracker = _ddmExpressionFunct... | org . junit . Assert . assertEquals ( 0 , actual . compareTo ( new java . math . BigDecimal ( 8 ) ) ) |
testExonicThreePrimeOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59012403\t.\tN\t<INS:ME>\t.\t.\tSVTYPE=INS;END=59012403" ) ; final java . lang . String expected = "1\t59012403\t.\tN\t<INS:ME>\t.\t.\tEND=59012403;" + ( "SVANN=insertion&5_prime_UTR_exon_variant&mobile_ele... | org . junit . Assert . assertEquals ( expected , actual ) |
getControllerInstanceStatus_ProvException_isBusyMessage ( ) { paramHandler . setState ( FlowState . VSERVER_CREATED ) ; org . oscm . app . iaas . exceptions . IaasException mockIaasException = mock ( org . oscm . app . iaas . exceptions . IaasException . class ) ; doReturn ( Boolean . TRUE ) . when ( mockIaasException ... | org . junit . Assert . assertNotNull ( result ) |
getPathReturnsEmptyArrayWhenChildNotFound ( ) { org . zkoss . ganttz . util . MutableTreeModelTest . Prueba root = new org . zkoss . ganttz . util . MutableTreeModelTest . Prueba ( ) ; org . zkoss . ganttz . util . MutableTreeModel < org . zkoss . ganttz . util . MutableTreeModelTest . Prueba > model = org . zkoss . ga... | org . junit . Assert . assertThat ( model . getPath ( root , new org . zkoss . ganttz . util . MutableTreeModelTest . Prueba ( ) ) , org . hamcrest . CoreMatchers . equalTo ( new int [ 0 ] ) ) |
testToStringOnClass ( ) { java . lang . Class < ? > data = org . dkpro . lab . Util . class ; "<AssertPlaceHolder>" ; } toString ( ) { final java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( _count ) ; sb . append ( "<sp>of<sp>" ) ; sb . append ( _limit ) ; if ( ( ( _count ) > 0 ) && ... | org . junit . Assert . assertEquals ( org . dkpro . lab . Util . class . toString ( ) , org . dkpro . lab . Util . toString ( data ) ) |
testFloatConversion ( ) { com . s24 . search . solr . util . packed . OffsetGrowableFloatWriter writer = new com . s24 . search . solr . util . packed . OffsetGrowableFloatWriter ( OffsetGrowableFloatWriter . DEFAULT_PRECISION , 2 , 4096 , org . apache . lucene . util . packed . PackedInts . DEFAULT ) ; for ( int i = 0... | org . junit . Assert . assertEquals ( value , writer . getFloat ( i ) , OffsetGrowableFloatWriter . DEFAULT_PRECISION ) |
setStyleRemove ( ) { c . addStyleName ( "foo" ) ; c . setStyleName ( "foo" , false ) ; "<AssertPlaceHolder>" ; } getStyleName ( ) { return styleName ; } | org . junit . Assert . assertEquals ( "" , c . getStyleName ( ) ) |
testIsAsyncEventQueueUsingDiskStoreWhenUsingDefaultDiskStore ( ) { final com . gemstone . gemfire . cache . asyncqueue . AsyncEventQueue mockQueue = mockContext . mock ( com . gemstone . gemfire . cache . asyncqueue . AsyncEventQueue . class , "AsyncEventQueue" ) ; final com . gemstone . gemfire . cache . DiskStore moc... | org . junit . Assert . assertTrue ( function . isUsingDiskStore ( mockQueue , mockDiskStore ) ) |
testGetAvailableOutputFormats ( ) { final java . util . HashMap < edu . illinois . library . cantaloupe . image . Format , java . util . Set < edu . illinois . library . cantaloupe . image . Format > > formats = new java . util . HashMap ( ) ; for ( edu . illinois . library . cantaloupe . image . Format format : edu . ... | org . junit . Assert . assertEquals ( expectedFormats , proc . getAvailableOutputFormats ( ) ) |
testBuildWithDisabledStatusConstraintWithOrderBy ( ) { unit . setActive ( false ) ; org . lnu . is . domain . benefit . Benefit context = new org . lnu . is . domain . benefit . Benefit ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "benefitType" , org . lnu . is . pa... | org . junit . Assert . assertEquals ( expected , actualQuery ) |
traversal_query_should_success ( ) { int numberOfFriends = 0 ; try ( org . neo4j . graphdb . Transaction tx = graphDb . beginTx ( ) ) { fr . jetoile . hadoopunit . component . Node neoNode = graphDb . createNode ( ) ; neoNode . setProperty ( "name" , "Hello,<sp>" ) ; fr . jetoile . hadoopunit . component . Node secondN... | org . junit . Assert . assertEquals ( 2 , numberOfFriends ) |
createArrayList_varArgs_withNull ( ) { java . util . List < java . lang . Integer > list = createArrayList ( ( ( java . lang . Integer [ ] ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } createArrayList ( int ) { return new java . util . ArrayList < T > ( initialCapacity ) ; } | org . junit . Assert . assertTrue ( ( list instanceof java . util . ArrayList < ? > ) ) |
testParseSpecificTimeStringUsingTimeFormat ( ) { java . time . LocalDateTime expectedDateTime = java . time . LocalDateTime . of ( 2014 , 11 , 11 , 10 , 11 , 11 ) ; java . time . LocalDateTime parsedTime = org . fastframework . core . util . TimeUtil . parseTime ( "2014/11/11<sp>10:11:11" , TimeUtil . TimeFormat . LONG... | org . junit . Assert . assertEquals ( expectedDateTime , parsedTime ) |
testLotSets ( ) { java . lang . String code = "" ; try { code = _setupTestLot ( true ) ; _checkLotIntoDb ( code ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } return ; } _checkLotIntoDb ( java . lang . String ) { org . isf . medicalstock . model . Lot foundLot ; foundLot... | org . junit . Assert . assertEquals ( true , false ) |
receiveThrowsTransportExceptionOnAnythingOtherThenPatchOrResTopic ( ) { final byte [ ] actualPayload = "NotificationResponseDataContainingDesiredPropertiesDocument" . getBytes ( ) ; final java . lang . String expectedTopic = ( "$iothub/twin/NOTPATCH_NOTRES/properties/" + "?$version=" ) + ( mockVersion ) ; com . microso... | org . junit . Assert . assertNull ( receivedMessage ) |
addFirstAnnotationValuesToMap__SkipNullValue ( ) { when ( mockAnnotations . keySet ( ) ) . thenReturn ( com . google . common . collect . Sets . newHashSet ( annoKey1 ) ) ; when ( mockAnnotations . getSingleValue ( annoKey1 ) ) . thenReturn ( null ) ; spySearchDocumentDriver . addFirstAnnotationValuesToMap ( mockAnnota... | org . junit . Assert . assertTrue ( annoValuesMap . isEmpty ( ) ) |
testNestedNots2 ( ) { java . lang . String str = "package<sp>org.test;<sp>" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "rule<sp>shared_conjunct<sp>" + "package<sp>org.test;<sp>" 9 ) + "<sp>(not<sp>(String()<sp>and<sp>Integer()))<sp>" ) + "then<sp>" ) + "<sp>System.out.println(\"sh... | org . junit . Assert . assertEquals ( 8 , n ) |
testAddServerString ( ) { final com . allanbank . mongodb . MongoClientConfiguration config = new com . allanbank . mongodb . MongoClientConfiguration ( ) ; config . addServer ( "foo:1234" ) ; config . addServer ( "bar:1234" ) ; "<AssertPlaceHolder>" ; } getServers ( ) { return new java . util . ArrayList < com . allan... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "foo:1234" , "bar:1234" ) , config . getServers ( ) ) |
testConvertTypeAtlasConversionException ( ) { "<AssertPlaceHolder>" ; } convertType ( java . lang . Object , io . atlasmap . v2 . FieldType , io . atlasmap . v2 . FieldType ) { if ( ( origSourceType == null ) || ( targetType == null ) ) { throw new io . atlasmap . api . AtlasConversionException ( "FieldTypes<sp>must<sp... | org . junit . Assert . assertNotNull ( service . convertType ( new java . lang . Object ( ) , null , null ) ) |
testRemoveSomeViaIterator ( ) { java . util . ArrayList < java . lang . Integer > list = org . apache . hadoop . util . TestLightWeightGSet . getRandomList ( 100 , 123 ) ; org . apache . hadoop . util . LightWeightGSet < org . apache . hadoop . util . TestLightWeightGSet . TestElement , org . apache . hadoop . util . T... | org . junit . Assert . assertTrue ( ( ( iter . next ( ) . getVal ( ) ) <= mode ) ) |
assertNonNullInjectionPointsWhenOverriding ( ) { final org . apache . deltaspike . core . util . bean . BeanBuilder beanBuilder = new org . apache . deltaspike . core . util . bean . BeanBuilder ( beanManager ) ; final javax . enterprise . inject . spi . AnnotatedType < ? > at = beanManager . createAnnotatedType ( org ... | org . junit . Assert . assertNotNull ( ip ) |
testAcceptValidParameter2 ( ) { state . setInput ( "select<sp>*;" ) ; "<AssertPlaceHolder>" ; } accept ( org . openspotlight . graph . query . console . ConsoleState ) { org . openspotlight . common . util . Assertions . checkNotNull ( "state" , state ) ; if ( ( ( state . getActiveCommand ( ) ) == null ) && ( state . g... | org . junit . Assert . assertThat ( command . accept ( state ) , org . hamcrest . core . Is . is ( true ) ) |
testSerialize ( ) { final java . util . List < org . pac4j . core . profile . CommonProfile > profiles = new java . util . ArrayList ( ) ; final io . buji . pac4j . subject . Pac4jPrincipal principal = new io . buji . pac4j . subject . Pac4jPrincipal ( profiles ) ; final org . apache . shiro . io . DefaultSerializer se... | org . junit . Assert . assertEquals ( principal2 , principal ) |
addAllFront2RemovedTest ( ) { java . util . List < java . lang . Integer > toAddList = new java . util . ArrayList ( 5 ) ; toAddList . add ( 100 ) ; toAddList . add ( 200 ) ; toAddList . add ( 300 ) ; toAddList . add ( 400 ) ; toAddList . add ( 500 ) ; org . threadly . concurrent . collections . ConcurrentArrayList . D... | org . junit . Assert . assertTrue ( result . equals ( org . threadly . concurrent . collections . ConcurrentArrayListDataSetTest . makeDataSet ( expectedResult , 0 , expectedResult . length ) ) ) |
testDropTable ( ) { java . util . Map < java . lang . String , java . util . Collection < java . lang . String > > update = new java . util . HashMap ( ) ; update . put ( org . apache . sentry . service . thrift . TestFullUpdateModifier . AUTH , java . util . Collections . singleton ( org . apache . sentry . service . ... | org . junit . Assert . assertTrue ( update . isEmpty ( ) ) |
testGetServerNameNull ( ) { com . intel . mtwilson . HtmlErrorParser htmlerrorparser = new com . intel . mtwilson . HtmlErrorParser ( null ) ; "<AssertPlaceHolder>" ; } getServerName ( ) { return serverName ; } | org . junit . Assert . assertEquals ( null , htmlerrorparser . getServerName ( ) ) |
checkProgrammingLanguage ( ) { org . zalando . catwatch . backend . service . LanguageServiceTest . logger . info ( "Setting<sp>up<sp>the<sp>projects..." ) ; org . zalando . catwatch . backend . model . Project p1 = new org . zalando . catwatch . backend . repo . builder . ProjectBuilder ( ) . commitsCount ( 10 ) . con... | org . junit . Assert . assertEquals ( 3 , result . size ( ) ) |
testSuccessScenario ( ) { new akka . testkit . JavaTestKit ( org . restcomm . connect . commons . patterns . ObserverPatternTest . system ) { { final akka . actor . ActorRef observer = getRef ( ) ; final akka . actor . Props properties = new akka . actor . Props ( org . restcomm . connect . commons . patterns . Observe... | org . junit . Assert . assertTrue ( response . succeeded ( ) ) |
testGetRemitToResultsNull ( ) { org . oscarehr . common . dao . BillingONCHeader1Dao cHeader1Dao = ( ( org . oscarehr . common . dao . BillingONCHeader1Dao ) ( org . oscarehr . util . SpringUtils . getBean ( org . oscarehr . common . dao . BillingONCHeader1Dao . class ) ) ) ; org . oscarehr . common . model . BillingON... | org . junit . Assert . assertNull ( billingRecord ) |
shouldReturnThatHasDomain ( ) { com . openshift . client . utils . DomainTestUtils . ensureHasDomain ( user ) ; java . lang . Boolean hasDomain = user . hasDomain ( ) ; "<AssertPlaceHolder>" ; } hasDomain ( ) { return ( api . getDomains ( ) . size ( ) ) > 0 ; } | org . junit . Assert . assertTrue ( hasDomain ) |
differentObjectsShouldNotBeEqual ( ) { de . thm . arsnova . model . Feedback f = new de . thm . arsnova . model . Feedback ( 0 , 0 , 0 , 0 ) ; java . lang . String x = "" ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( g... | org . junit . Assert . assertFalse ( f . equals ( x ) ) |
testReferenceDateIsNotChanged ( ) { java . util . Date referenceDate = initialHistory . getReferenceDate ( ) ; processor . process ( exchange ) ; processor . process ( exchange ) ; "<AssertPlaceHolder>" ; } getMeasurementHistory ( org . apache . camel . Exchange ) { org . openehealth . ipf . commons . test . performanc... | org . junit . Assert . assertEquals ( referenceDate , processor . getMeasurementHistory ( exchange ) . getReferenceDate ( ) ) |
deveObterNumeroPedidoItemClienteComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . lang . Integer numeroPedidoItemCliente = 999999 ; produto . set... | org . junit . Assert . assertEquals ( numeroPedidoItemCliente , produto . getNumeroPedidoItemCliente ( ) ) |
testLoginFail ( ) { org . talend . components . salesforce . SalesforceConnectionProperties props = setupProps ( null , ( ! ( ADD_QUOTES ) ) ) ; props . userPassword . userId . setValue ( "blah" ) ; org . talend . daikon . properties . presentation . Form f = props . getForm ( SalesforceConnectionProperties . FORM_WIZA... | org . junit . Assert . assertEquals ( ValidationResult . Result . ERROR , props . getValidationResult ( ) . getStatus ( ) ) |
empty ( ) { final org . apache . isis . core . commons . config . IsisConfiguration subset = configuration . createSubset ( "foo" ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return getClasses ( ) . iterator ( ) ; } | org . junit . Assert . assertThat ( subset . iterator ( ) . hasNext ( ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testMutate ( ) { org . apache . commons . math3 . genetics . MutationPolicy mutation = new org . apache . commons . math3 . genetics . RandomKeyMutation ( ) ; int l = 10 ; for ( int i = 0 ; i < 20 ; i ++ ) { org . apache . commons . math3 . genetics . DummyRandomKey origRk = new org . apache . commons . math3 . genetic... | org . junit . Assert . assertEquals ( 1 , changes ) |
sum_coalesce ( ) { int val = query ( ) . from ( com . querydsl . jpa . AbstractJPATest . cat ) . select ( com . querydsl . jpa . AbstractJPATest . cat . weight . sum ( ) . coalesce ( 0 ) ) . fetchFirst ( ) ; "<AssertPlaceHolder>" ; } fetchFirst ( ) { return oneResult ( false ) ; } | org . junit . Assert . assertTrue ( ( val == 0 ) ) |
iterator ( ) { int count = 1 ; for ( net . time4j . PlainDate date : net . time4j . range . CalendarWeek . of ( 2016 , 4 ) ) { System . out . println ( ( ( count + "<sp>=><sp>" ) + date ) ) ; count ++ ; } "<AssertPlaceHolder>" ; } of ( int , int ) { return new net . time4j . range . CalendarWeek ( yearOfWeekdate , week... | org . junit . Assert . assertThat ( ( count - 1 ) , org . hamcrest . CoreMatchers . is ( 7 ) ) |
jdbcCompliant ( ) { "<AssertPlaceHolder>" ; } jdbcCompliant ( ) { return false ; } | org . junit . Assert . assertFalse ( subject . jdbcCompliant ( ) ) |
enableWhenWithHasAnswer ( ) { org . hl7 . fhir . dstu3 . model . Questionnaire resource = new org . hl7 . fhir . dstu3 . model . Questionnaire ( ) ; resource . setStatus ( Enumerations . PublicationStatus . ACTIVE ) ; org . hl7 . fhir . dstu3 . model . Questionnaire . QuestionnaireItemComponent child1 = createItem ( Qu... | org . junit . Assert . assertTrue ( result . isSuccessful ( ) ) |
emptyPath ( ) { "<AssertPlaceHolder>" ; } getCellsOnPath ( jetbrains . jetpad . projectional . cell . mapping . Iterator ) { if ( sourcePath . hasNext ( ) ) { java . lang . Object actualSource = sourcePath . next ( ) ; return lookupCells ( actualSource , actualSource , sourcePath ) ; } else { return jetbrains . jetpad ... | org . junit . Assert . assertTrue ( provider . getCellsOnPath ( java . util . Collections . emptyList ( ) ) . isEmpty ( ) ) |
helpMeWithMyEmergency ( ) { org . drools . mas . helpers . SyncDialogueHelper helper = new org . drools . mas . helpers . SyncDialogueHelper ( endpoint ) ; org . drools . mas . examples . emergency . Emergency e = new org . drools . mas . examples . emergency . Emergency ( "SecondEmergency" , new org . drools . mas . D... | org . junit . Assert . assertEquals ( e , ret ) |
testLegeActueel ( ) { final nl . bzk . migratiebrp . conversie . model . lo3 . Lo3Categorie < nl . bzk . migratiebrp . conversie . model . lo3 . categorie . Lo3HuwelijkOfGpInhoud > actueel = maakHuwelijkOfGpRij ( null , null , null , null , null , null , null , nl . bzk . migratiebrp . conversie . regels . proces . lo3... | org . junit . Assert . assertEquals ( 0 , relatieStapels . size ( ) ) |
testInvertedTags ( ) { org . antlr . v4 . runtime . tree . pattern . ParseTreePatternMatcher m = new org . antlr . v4 . runtime . tree . pattern . ParseTreePatternMatcher ( null , null ) ; java . lang . String result = null ; try { m . split ( ">expr<" ) ; } catch ( java . lang . IllegalArgumentException iae ) { result... | org . junit . Assert . assertEquals ( expected , result ) |
testStringEqual ( ) { executeWithDefaultScope ( "boolVar<sp>=<sp>'string'<sp>==<sp>'string'" ) ; "<AssertPlaceHolder>" ; } getBoolValue ( ) { return context . getVariable ( "boolVar" ) . getValue ( ) ; } | org . junit . Assert . assertEquals ( true , getBoolValue ( ) ) |
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . ResourceAction newResourceAction = addResourceAction ( ) ; com . liferay . portal . kernel . model . ResourceAction existingResourceAction = _persistence . findByPrimaryKey ( newResourceAction . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } ... | org . junit . Assert . assertEquals ( existingResourceAction , newResourceAction ) |
testStyleUsageCount ( ) { try { org . odftoolkit . odfdom . incubator . doc . office . OdfOfficeAutomaticStyles s = odfdoc . getStylesDom ( ) . getAutomaticStyles ( ) ; org . odftoolkit . odfdom . incubator . doc . style . OdfStyle pr1 = s . getStyle ( "pr1" , OdfStyleFamily . Presentation ) ; int styleUserCount = pr1 ... | org . junit . Assert . assertTrue ( ( styleUserCount == elementsWithStyleCount ) ) |
testMultilinePre ( ) { java . lang . String content = "previous<sp>line\n<sp>monospace\n<sp>second<sp>line\nnext<sp>line" ; java . lang . String expected = "previous<sp>line\n{{{\n<sp>monospace\n<sp>second<sp>line\n}}}\nnext<sp>line" ; java . lang . String actual = _translate ( content ) ; "<AssertPlaceHolder>" ; } _tr... | org . junit . Assert . assertEquals ( expected , actual ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.