input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testSimpleBulkImporterHFile ( ) { final org . apache . hadoop . fs . Path hfileDirPath = this . makeRandomPath ( "hfile-output" ) ; try { final org . kiji . mapreduce . KijiMapReduceJob mrjob = org . kiji . mapreduce . bulkimport . KijiBulkImportJobBuilder . create ( ) . withConf ( mConf ) . withBulkImporter ( org . ki...
org . junit . Assert . assertTrue ( mrjob . run ( ) )
isAbsoluteOrRelativeUrl ( ) { boolean result = org . oscm . validator . ADMValidator . isAbsoluteOrRelativeUrl ( "/fujitsu-layout/css/mp.css" ) ; "<AssertPlaceHolder>" ; } isAbsoluteOrRelativeUrl ( java . lang . String ) { return org . oscm . validator . ADMValidator . RELATIVE_URL_VALIDATOR . isValid ( value ) ; }
org . junit . Assert . assertTrue ( result )
testInvoke ( ) { getField ( org . opendaylight . ovsdb . southbound . transactions . md . TransactionInvokerImpl . class , "inputQueue" ) . set ( transactionInvokerImpl , inputQueue ) ; org . opendaylight . ovsdb . southbound . transactions . md . TransactionCommand command = mock ( org . opendaylight . ovsdb . southbo...
org . junit . Assert . assertTrue ( testInputQueue . contains ( command ) )
testConfigurationUuidRecognizesAnyString ( ) { com . liferay . adaptive . media . AMAttribute < ? , java . lang . String > configurationUuidAMAttribute = com . liferay . adaptive . media . AMAttribute . getConfigurationUuidAMAttribute ( ) ; java . lang . String value = com . liferay . portal . kernel . test . util . Ra...
org . junit . Assert . assertEquals ( value , configurationUuidAMAttribute . convert ( value ) )
testInterpreterInterfaceShouldNotBeConsideredAnInterpreter ( ) { "<AssertPlaceHolder>" ; } isAnInterpreter ( java . lang . String ) { info . novatec . testit . livingdoc . reflect . Type < info . novatec . testit . livingdoc . Interpreter > type = info . novatec . testit . livingdoc . LivingDoc . resolveInterpreterType...
org . junit . Assert . assertFalse ( info . novatec . testit . livingdoc . LivingDoc . isAnInterpreter ( info . novatec . testit . livingdoc . Interpreter . class . getName ( ) ) )
testToConnectNestedRecordWithOptionalRecordNullValue ( ) { org . apache . avro . Schema avroSchema = nestedRecordAvroSchema ( ) ; org . apache . kafka . connect . data . Schema schema = nestedRecordSchema ( ) ; org . apache . avro . generic . GenericRecord avroRecord = new org . apache . avro . generic . GenericRecordB...
org . junit . Assert . assertEquals ( new org . apache . kafka . connect . data . SchemaAndValue ( schema , struct ) , avroData . toConnectData ( avroSchema , avroRecord ) )
givenTraceEnabled_whenIsEnabled_thenReturnsTrue ( ) { com . brandwatch . robots . util . LogLevel level = LogLevel . TRACE ; when ( mockLogger . isTraceEnabled ( ) ) . thenReturn ( true ) ; boolean result = level . isEnabled ( mockLogger ) ; "<AssertPlaceHolder>" ; verify ( mockLogger , only ( ) ) . isTraceEnabled ( ) ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
givenIntArray_whenPrefixAdd_thenAllAccumulated ( ) { int [ ] arri = new int [ ] { 1 , 2 , 3 , 4 } ; java . util . Arrays . parallelPrefix ( arri , ( left , right ) -> left + right ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( arri , org . hamcrest . Matchers . is ( new int [ ] { 1 , 3 , 6 , 10 } ) )
reportsTreatmentGivenNoWithData ( ) { final java . util . List < com . hartwig . hmftools . common . ecrf . datamodel . ValidationFinding > findings = com . hartwig . hmftools . patientdb . validators . PatientValidator . validateTreatments ( com . hartwig . hmftools . patientdb . validators . PatientValidatorTest . PA...
org . junit . Assert . assertEquals ( 1 , findings . size ( ) )
testGetPermissionProviderDisabled ( ) { org . apache . jackrabbit . oak . spi . security . authorization . cug . impl . CugConfiguration cc = org . apache . jackrabbit . oak . spi . security . authorization . cug . impl . CugConfigurationTest . createConfiguration ( org . apache . jackrabbit . oak . spi . security . Co...
org . junit . Assert . assertSame ( org . apache . jackrabbit . oak . spi . security . authorization . permission . EmptyPermissionProvider . getInstance ( ) , pp )
testEncryptDecrypt ( ) { byte [ ] testData = "This<sp>is<sp>some<sp>test<sp>data." . getBytes ( StandardCharsets . UTF_8 ) ; byte [ ] encData = encryptionSvc . encrypt ( testData ) ; byte [ ] decData = encryptionSvc . decrypt ( encData ) ; "<AssertPlaceHolder>" ; } decrypt ( byte [ ] ) { if ( ( ( crypto ) == null ) || ...
org . junit . Assert . assertArrayEquals ( testData , decData )
correlated_reaction ( ) { final java . lang . String rulebase = "rules/reloaded/msg007.prova" ; java . util . concurrent . atomic . AtomicInteger count = new java . util . concurrent . atomic . AtomicInteger ( ) ; java . util . Map < java . lang . String , java . lang . Object > globals = new java . util . HashMap < ja...
org . junit . Assert . assertEquals ( 2 , count . get ( ) )
waitUntilWhenFalseShouldTimeout ( ) { org . apache . commons . lang3 . time . StopWatch stopWatch = new org . apache . commons . lang3 . time . StopWatch ( ) ; stopWatch . start ( ) ; try { com . willwinder . universalgcodesender . utils . ThreadHelper . waitUntil ( ( ) -> false , 200 , TimeUnit . MILLISECONDS ) ; } ca...
org . junit . Assert . assertTrue ( ( ( stopWatch . getTime ( ) ) >= 200 ) )
testCloning ( ) { com . flowpowered . math . vector . Vector4l vector = new com . flowpowered . math . vector . Vector4l ( 3 , 2 , 5 , 6 ) ; "<AssertPlaceHolder>" ; } clone ( ) { return new com . flowpowered . math . vector . Vector4l ( this ) ; }
org . junit . Assert . assertEquals ( vector , vector . clone ( ) )
testInit ( ) { System . out . println ( org . apache . hadoop . util . VersionInfo . getBuildVersion ( ) ) ; java . util . Set < java . lang . String > actionNames = org . smartdata . action . ActionRegistry . registeredActions ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( actionNames . size ( ) ) > 0 ) )
testGetters ( ) { java . lang . String expectedId = "mysql_id" ; java . lang . String expectedProduct = "MYSQL" ; java . lang . String expectedLabel = "Mapping<sp>Mysql" ; boolean expectedDefault = true ; org . talend . components . common . config . jdbc . Dbms dbms = new org . talend . components . common . config . ...
org . junit . Assert . assertEquals ( expectedId , dbms . getId ( ) )
testElement_String ( ) { org . openscience . cdk . interfaces . IElement e = new org . openscience . cdk . silent . Element ( "C" ) ; "<AssertPlaceHolder>" ; } getSymbol ( ) { return symbol ; }
org . junit . Assert . assertEquals ( "C" , e . getSymbol ( ) )
shouldAutowire ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( factory )
testDoubleInit ( ) { int n = org . evosuite . runtime . jvm . ShutdownHookHandler . getInstance ( ) . getNumberOfAllExistingHooks ( ) ; java . lang . Runtime . getRuntime ( ) . addShutdownHook ( new java . lang . Thread ( ) { } ) ; org . evosuite . runtime . jvm . ShutdownHookHandler . getInstance ( ) . initHandler ( )...
org . junit . Assert . assertEquals ( n , org . evosuite . runtime . jvm . ShutdownHookHandler . getInstance ( ) . getNumberOfAllExistingHooks ( ) )
validate_shouldPassValidationIfAllRequiredFieldsHaveProperValues ( ) { org . openmrs . User user = new org . openmrs . User ( ) ; user . setUsername ( "test" ) ; user . setRetired ( true ) ; user . setRetireReason ( "for<sp>the<sp>lulz" ) ; user . setPerson ( new org . openmrs . Person ( 999 ) ) ; user . getPerson ( ) ...
org . junit . Assert . assertFalse ( errors . hasErrors ( ) )
testTruthTableSize1 ( ) { final byte [ ] [ ] truthTable = org . apache . rya . mongodb . document . util . DisjunctiveNormalFormConverter . createTruthTableInputs ( 1 ) ; final byte [ ] [ ] expected = new byte [ ] [ ] { new byte [ ] { 0 } , new byte [ ] { 1 } } ; "<AssertPlaceHolder>" ; } createTruthTableInputs ( java ...
org . junit . Assert . assertArrayEquals ( expected , truthTable )
testSerialization_columns ( ) { java . util . Set < org . apache . accumulo . core . client . IteratorSetting . Column > columns = new java . util . HashSet ( ) ; columns . add ( new org . apache . accumulo . core . client . IteratorSetting . Column ( new org . apache . hadoop . io . Text ( "cf1" ) , new org . apache ....
org . junit . Assert . assertEquals ( actualConfig . getFetchedColumns ( ) , columns )
testDeleteNoInit ( ) { com . j256 . ormlite . dao . BaseDaoImpl < com . j256 . ormlite . dao . Foo , java . lang . Integer > dao = new com . j256 . ormlite . dao . BaseDaoImpl < com . j256 . ormlite . dao . Foo , java . lang . Integer > ( com . j256 . ormlite . dao . Foo . class ) { } ; dao . setConnectionSource ( conn...
org . junit . Assert . assertEquals ( 0 , dao . delete ( ( ( com . j256 . ormlite . dao . Foo ) ( null ) ) ) )
setObservationsFromDisabledSensors ( ) { boolean dataRejected = false ; final java . lang . Long sid = 1L ; final java . lang . String provider = "prov1" ; final java . lang . String sensorId = "sensor1" ; final org . sentilo . platform . common . domain . Sensor sensor = new org . sentilo . platform . common . domain ...
org . junit . Assert . assertTrue ( dataRejected )
setUnit_kvarh_unitIsSet ( ) { java . lang . String unitOfMeasure = "kvarh" ; sampledValue . setUnit ( unitOfMeasure ) ; "<AssertPlaceHolder>" ; } getUnit ( ) { return unit ; }
org . junit . Assert . assertThat ( sampledValue . getUnit ( ) , org . hamcrest . CoreMatchers . equalTo ( unitOfMeasure ) )
testGetColumn_Returns_Size_As_RowCount ( ) { mmarquee . automation . AutomationElement element = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; mmarquee . automation . pattern . Value value = org . mockito . Mockito . mock ( mmarquee . automation . pattern . Value . class ) ; mma...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == ( grid . rowCount ( ) ) ) )
testGetLoopCountWithAnimatedLoopingImage ( ) { try ( edu . illinois . library . cantaloupe . processor . codec . GIFMetadataReader reader = new edu . illinois . library . cantaloupe . processor . codec . GIFMetadataReader ( ) ) { reader . setSource ( newImageInputStream ( "gif-animated-looping.gif" ) ) ; edu . illinois...
org . junit . Assert . assertEquals ( 2 , metadata . getLoopCount ( ) )
lockShouldReturnFalseIfAnotherRowIsLocked ( ) { initShouldNotCreateTheSchemaIfItAlreadyExists ( ) ; reset ( connection , metaData , statement , preparedStatement , resultSet ) ; expect ( connection . isClosed ( ) ) . andReturn ( false ) ; expect ( connection . prepareStatement ( ( ( "SELECT<sp>*<sp>FROM<sp>" + ( tableN...
org . junit . Assert . assertFalse ( lockAquired )
testGeboorteBroertjeZelfdeVoornaamEnAndereGeboorteDatum ( ) { voegKindToeAanOuder ( broertje4 , papa , mama ) ; final nl . bzk . brp . bijhouding . bericht . model . ElementBuilder . NaamParameters sPara = new nl . bzk . brp . bijhouding . bericht . model . ElementBuilder . NaamParameters ( ) ; sPara . indicatieNamenre...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
ipfsAddSingle ( ) { java . lang . String hash = "QmYgjSRbXFPdPYKqQSnUjmXLYLudVahEJQotMaAJKt6Lbd" ; org . apache . camel . CamelContext camelctx = new org . apache . camel . impl . DefaultCamelContext ( ) ; camelctx . addRoutes ( new org . apache . camel . builder . RouteBuilder ( ) { @ org . apache . camel . component ...
org . junit . Assert . assertEquals ( hash , res )
testVerzamelAfleidingsregels ( ) { final nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . ouder . OuderschapGroepVerwerker verwerker = new nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . ouder . OuderschapGroepVerwerker ( ouderBericht , ouderZonderOuderschap , actieModelBerich...
org . junit . Assert . assertTrue ( verwerker . getAfleidingsregels ( ) . isEmpty ( ) )
testGetPropertyObjectWithParameters ( ) { try { java . lang . reflect . Method method = org . apache . olingo . odata2 . jpa . processor . core . access . data . JPAEntityParserForStaticMethodTest . class . getMethod ( "getObjectWithParameters" , getParameterTypeForMethod ( "getObjectWithParameters" ) ) ; java . lang ....
org . junit . Assert . assertTrue ( ( output != null ) )
testStringKeyIsInstantiatedUSingRequestFromString ( ) { final com . picocontainer . containers . TransientPicoContainer tpc = new com . picocontainer . containers . TransientPicoContainer ( ) ; final java . lang . String key = "pico.testing" ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( servletR...
org . junit . Assert . assertEquals ( "pico.result" , resultKey )
testScalarMultiplyNaN ( ) { org . apache . commons . math . complex . Complex x = new org . apache . commons . math . complex . Complex ( 3.0 , 4.0 ) ; double yDouble = Double . NaN ; org . apache . commons . math . complex . Complex yComplex = new org . apache . commons . math . complex . Complex ( yDouble ) ; "<Asser...
org . junit . Assert . assertEquals ( x . multiply ( yComplex ) , x . multiply ( yDouble ) )
testSelectOption ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . html . DropDownTest . url ) ; org . finra . jtaf . ewd . widget . IDropDown d = new org . finra . jtaf . ewd . widget . element . html . DropDown ( "//select[@id='selectTest']" ) ; java . lang . String exp = "C" ; org . finra . jtaf . ewd ...
org . junit . Assert . assertEquals ( exp , content . getText ( ) )
shouldGetScoreForNestedOperations ( ) { final uk . gov . gchq . gaffer . operation . impl . get . GetElements getElements = mock ( uk . gov . gchq . gaffer . operation . impl . get . GetElements . class ) ; final uk . gov . gchq . gaffer . operation . impl . GetWalks getWalks = mock ( uk . gov . gchq . gaffer . operati...
org . junit . Assert . assertEquals ( 7 , score )
checkIsAllowedForLocalizingService_customer_owningSubscription ( ) { org . oscm . domobjects . Organization customerOrganization = givenCustomerOrganization ( ) ; givenCurrentUserForOrganization ( customerOrganization ) ; givenSubscriptionForProduct ( givenProduct ( givenSupplierOrganization ( ) ) , customerOrganizatio...
org . junit . Assert . assertTrue ( result )
dropTableSimple ( ) { java . lang . String sql = "DROP<sp>TABLE<sp>t1" ; com . foundationdb . sql . aisddl . TableDDLTest . dropTable = com . foundationdb . ais . model . TableName . create ( com . foundationdb . sql . aisddl . TableDDLTest . DEFAULT_SCHEMA , com . foundationdb . sql . aisddl . TableDDLTest . DEFAULT_T...
org . junit . Assert . assertTrue ( ( stmt instanceof com . foundationdb . sql . parser . DropTableNode ) )
testAsFloat ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createFloat4 ( 5.0F ) ; "<AssertPlaceHolder>" ; } asFloat4 ( ) { throw new org . apache . tajo . datum . exception . InvalidCastException ( ( ( type ) + "<sp>cannot<sp>be<sp>casted<sp>to<sp>FLOAT<sp>type" ) ) ; }
org . junit . Assert . assertTrue ( ( 5.0F == ( d . asFloat4 ( ) ) ) )
serializeExceptionTest ( ) { final org . opendaylight . yangtools . concepts . Codec < java . lang . Object , java . lang . Object > codec = org . opendaylight . netconf . sal . restconf . impl . RestCodec . from ( org . opendaylight . yangtools . yang . model . util . type . BaseTypes . bitsTypeBuilder ( org . openday...
org . junit . Assert . assertEquals ( "incorrect<sp>value" , serializedValue )
testNullWadlElementName ( ) { org . slc . sli . modeling . wadl . WadlElementName wadlElementName = org . slc . sli . modeling . wadl . WadlElementName . getElementName ( null ) ; "<AssertPlaceHolder>" ; } getElementName ( java . lang . String ) { for ( final org . slc . sli . modeling . wadl . WadlElementName name : o...
org . junit . Assert . assertEquals ( null , wadlElementName )
testIsValidConfiguration_solutionIsValid_notWar ( ) { doReturn ( "test-res" ) . when ( spyAppConfigProperties ) . getSolutionPath ( ) ; doReturn ( ( ( org . pentaho . test . platform . utils . TestResourceLocation . TEST_RESOURCES ) + "/badFile.txt" ) ) . when ( spyAppConfigProperties ) . getWarPath ( ) ; "<AssertPlace...
org . junit . Assert . assertFalse ( spyAppConfigProperties . isValidConfiguration ( ) )
testVanishingTaskZNode ( ) { org . apache . hadoop . hbase . master . TestSplitLogManager . LOG . info ( "testVanishingTaskZNode" ) ; conf . setInt ( "hbase.splitlog.manager.unassigned.timeout" , 0 ) ; slm = new org . apache . hadoop . hbase . master . SplitLogManager ( zkw , conf , org . apache . hadoop . hbase . mast...
org . junit . Assert . assertTrue ( fs . exists ( logFile ) )
testGetOption ( ) { classUnderTest . setOption ( "aTestOption" , "aTestValue" ) ; "<AssertPlaceHolder>" ; } getOption ( java . lang . String ) { if ( _options . containsKey ( option ) ) return _options . get ( option ) ; else return "" ; }
org . junit . Assert . assertEquals ( "aTestValue" , classUnderTest . getOption ( "aTestOption" ) )
testIsJDBCDriverClassLoaded ( ) { classUnderTest . setJDBCDriverClassLoaded ( true ) ; "<AssertPlaceHolder>" ; } isJDBCDriverClassLoaded ( ) { System . err . println ( "MockSQLDriver.isJDBCDriverClassLoaded:<sp>stub<sp>not<sp>yet<sp>implemented" ) ; return false ; }
org . junit . Assert . assertEquals ( true , classUnderTest . isJDBCDriverClassLoaded ( ) )
rejectKeysValues ( ) { com . gs . collections . api . multimap . set . MutableSetMultimap < java . lang . String , java . lang . Integer > mutableMultimap = com . gs . collections . impl . multimap . set . UnifiedSetMultimap . newMultimap ( ) ; mutableMultimap . putAll ( "One" , com . gs . collections . impl . list . m...
org . junit . Assert . assertEquals ( expectedImmutableMultimap , rejectedMultimap )
escapeJSON_null ( ) { java . lang . String escaped = org . oscm . json . EscapeUtils . escapeJSON ( null ) ; "<AssertPlaceHolder>" ; } escapeJSON ( java . lang . String ) { if ( aText == null ) { return null ; } final java . lang . StringBuilder result = new java . lang . StringBuilder ( ) ; java . text . StringCharact...
org . junit . Assert . assertNull ( escaped )
testParseExpiryRoundTrip ( ) { com . urbanairship . api . push . model . PushExpiry expiry1 = com . urbanairship . api . push . model . PushExpiry . newBuilder ( ) . setExpirySeconds ( 600 ) . build ( ) ; java . lang . String json = mapper . writeValueAsString ( expiry1 ) ; com . urbanairship . api . push . model . Pus...
org . junit . Assert . assertEquals ( expiry1 , expiry2 )
testToString ( ) { final org . scijava . object . ObjectIndex < java . lang . Object > objectIndex = new org . scijava . object . ObjectIndex ( java . lang . Object . class ) ; objectIndex . add ( new java . lang . Integer ( 5 ) ) ; objectIndex . add ( new java . lang . Float ( 2.5F ) ) ; objectIndex . add ( new java ....
org . junit . Assert . assertArrayEquals ( expected , actual )
test9 ( ) { java . lang . String [ ] vars = new java . lang . String [ ] { "x" , "y" , "z" } ; cc . redberry . rings . IntegersZp domain = new cc . redberry . rings . IntegersZp ( 17 ) ; cc . redberry . rings . poly . multivar . MultivariatePolynomialZp64 f1 = cc . redberry . rings . poly . multivar . MultivariatePolyn...
org . junit . Assert . assertEquals ( expected , buchberger )
createBranch ( ) { java . lang . String view = branchController . createBranch ( de . blizzy . documentr . web . branch . BranchControllerTest . PROJECT , model ) ; "<AssertPlaceHolder>" ; verify ( model ) . addAttribute ( eq ( "branchForm" ) , argBranchForm ( de . blizzy . documentr . web . branch . BranchControllerTe...
org . junit . Assert . assertEquals ( "/project/branch/edit" , view )
duplicateMessageAfterAWhile ( ) { org . apache . hadoop . ozone . container . common . impl . ContainerSet set = new org . apache . hadoop . ozone . container . common . impl . ContainerSet ( ) ; org . apache . hadoop . ozone . container . replication . TestReplicationSupervisor . FakeReplicator replicator = new org . ...
org . junit . Assert . assertEquals ( 1 , replicator . replicated . size ( ) )
testServerHelp ( ) { int rc = newServer ( new com . github . perlundq . yajsync . test . TestModules ( ) ) . setStandardOut ( _nullOut ) . start ( new java . lang . String [ ] { "--help" } ) ; "<AssertPlaceHolder>" ; } start ( java . lang . String [ ] ) { com . github . perlundq . yajsync . internal . util . ArgumentPa...
org . junit . Assert . assertTrue ( ( rc == 0 ) )
shouldSetVoicemailRingtoneUri ( ) { android . telecom . PhoneAccountHandle phoneAccountHandle = new android . telecom . PhoneAccountHandle ( new android . content . ComponentName ( androidx . test . core . app . ApplicationProvider . getApplicationContext ( ) , java . lang . Object . class ) , "handle" ) ; android . ne...
org . junit . Assert . assertEquals ( ringtoneUri , telephonyManager . getVoicemailRingtoneUri ( phoneAccountHandle ) )
testIsUnknownMultipleEmpty ( ) { org . apache . jackrabbit . oak . spi . xml . PropInfo propInfo = new org . apache . jackrabbit . oak . spi . xml . PropInfo ( "longs" , javax . jcr . PropertyType . LONG , com . google . common . collect . ImmutableList . of ( ) ) ; "<AssertPlaceHolder>" ; } isUnknownMultiple ( ) { ret...
org . junit . Assert . assertFalse ( propInfo . isUnknownMultiple ( ) )
validate_shouldPassWhenObsHasValidConceptIdAndValidConceptAnswerId ( ) { java . lang . String xml = "<htmlform><obs<sp>conceptId=\"21\"<sp>answerConceptId=\"7\">TEST</obs></htmlform>" ; org . openmrs . module . htmlformentry . handler . TagAnalysis analysis = validateObsTag ( xml ) ; "<AssertPlaceHolder>" ; } getWarnin...
org . junit . Assert . assertEquals ( 0 , analysis . getWarnings ( ) . size ( ) )
testCount ( ) { logger . info ( "count" ) ; com . datumbox . framework . common . dataobjects . FlatDataCollection flatDataCollection = generateFlatDataCollection ( ) ; int expResult = 40 ; int result = com . datumbox . framework . core . statistics . descriptivestatistics . Descriptives . count ( flatDataCollection ) ...
org . junit . Assert . assertEquals ( expResult , result )
testToString ( ) { final java . lang . StringBuffer buffer = new java . lang . StringBuffer ( ) ; buffer . append ( "Customer{id=" ) . append ( ( "" + ( customer . getId ( ) ) ) ) . append ( ",<sp>firstName='" ) . append ( customer . getFirstName ( ) ) . append ( "\',<sp>lastName=\'" ) . append ( ( ( customer . getLast...
org . junit . Assert . assertEquals ( buffer . toString ( ) , customer . toString ( ) )
storageWriteCloseReadTest ( ) { ru . mipt . java2016 . homework . base . task2 . KeyValueStorage < java . lang . String , java . lang . String > storage = ru . mipt . java2016 . homework . g594 . kozlov . task2 . KVStorageFactory . buildStringsStorage ( "temp" ) ; storage . write ( "no<sp>pain" , "no<sp>gain" ) ; try {...
org . junit . Assert . assertEquals ( "no<sp>gain" , storage . read ( "no<sp>pain" ) )
readCsvFileWithSchemaTest ( ) { java . nio . file . Path schemaPath = java . nio . file . Paths . get ( org . hillview . test . storage . CsvFileTest . ontimeFolder , org . hillview . test . storage . CsvFileTest . schemaFile ) ; java . nio . file . Path path = java . nio . file . Paths . get ( org . hillview . test . ...
org . junit . Assert . assertNotNull ( t )
testNotDuplicatedLabelForProperty ( ) { es . gob . afirma . ui . principal . DesensobradoAccessibilityTest . logger . info ( "testNotDuplicatedLabelForProperty" ) ; try { final es . gob . afirma . ui . principal . Desensobrado desensobradoPanel = new es . gob . afirma . ui . principal . Desensobrado ( ) ; final java . ...
org . junit . Assert . assertTrue ( ( ( componentSet . size ( ) ) == ( componentList . size ( ) ) ) )
testTrim ( ) { org . restcomm . media . core . spi . utils . Text t1 = new org . restcomm . media . core . spi . utils . Text ( "<sp>test<sp>" ) ; t1 . trim ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( this . packageName ) . append ( "/" ) . appe...
org . junit . Assert . assertEquals ( "test" , t1 . toString ( ) )
testConvertFromAvroBigDecimal ( ) { org . talend . components . common . config . jdbc . TalendType expectedType = TalendType . BIG_DECIMAL ; org . apache . avro . Schema fieldSchema = org . talend . daikon . avro . AvroUtils . _decimal ( ) ; "<AssertPlaceHolder>" ; } convertFromAvro ( org . apache . avro . Schema ) { ...
org . junit . Assert . assertEquals ( expectedType , org . talend . components . common . config . jdbc . TalendType . convertFromAvro ( fieldSchema ) )
testValidateLinkIdNull ( ) { org . powermock . reflect . Whitebox . setInternalState ( target , "linkId" , ( ( java . lang . String ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } validate ( ) { try { org . apache . commons . lang . Validate . notEmpty ( this . lowerNw , "lower_nw<sp>is<sp>empty" ) ; org . apache . commons ...
org . junit . Assert . assertFalse ( target . validate ( ) )
joinStringsShouldJoinTwoStringsWithConjunction ( ) { java . lang . String one = "oneString" ; java . lang . String two = "twoString" ; java . util . List < java . lang . String > twoStrings = new java . util . ArrayList < java . lang . String > ( ) ; twoStrings . add ( one ) ; twoStrings . add ( two ) ; java . lang . S...
org . junit . Assert . assertTrue ( result . equals ( ( ( one + ",<sp>" ) + two ) ) )
test_getGenericTypeOf_specific_interface_multiple_typed_interfaces ( ) { java . lang . Class < ? > result = com . github . davidmarquis . redisq . utils . GenericsUtils . getGenericTypeOfInterface ( com . github . davidmarquis . redisq . utils . GenericsUtilsTest . MessageListenerMultipleTyped . class , com . github . ...
org . junit . Assert . assertTrue ( result . equals ( java . lang . String . class ) )
testGetRegisteredWhenEmpty ( ) { "<AssertPlaceHolder>" ; } getRegisteredKeys ( ) { return org . eclipse . jgit . lib . RepositoryCache . cache . getKeys ( ) ; }
org . junit . Assert . assertEquals ( 0 , org . eclipse . jgit . lib . RepositoryCache . getRegisteredKeys ( ) . size ( ) )
testBuscaFuncionarioNaoExiste ( ) { br . com . senacrs . alp . aulas . trabalho9 . Funcionario busca = null ; busca = this . empresa . buscaFuncionario ( "nome" ) ; "<AssertPlaceHolder>" ; } buscaFuncionario ( java . lang . String ) { return null ; }
org . junit . Assert . assertNull ( busca )
testToList ( ) { java . util . List < java . lang . String > list = new java . util . ArrayList ( ) ; list . add ( "aaa" ) ; list . add ( "bbb" ) ; list . add ( "ccc" ) ; java . util . List < java . lang . Object > list2 = com . liferay . portal . kernel . util . ListUtil . toList ( list ) ; "<AssertPlaceHolder>" ; } t...
org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { "aaa" , "bbb" , "ccc" } , list2 . toArray ( ) )
testBasicStuff_2 ( ) { lombok . val history = new org . nd4j . parameterserver . distributed . v2 . messages . history . HashHistoryHolder < java . lang . String > ( 2048 ) ; lombok . val iterations = 1000000 ; lombok . val timeStart = java . lang . System . nanoTime ( ) ; for ( int e = 0 ; e < iterations ; e ++ ) { "<...
org . junit . Assert . assertFalse ( history . storeIfUnknownMessageId ( java . lang . String . valueOf ( e ) ) )
testQueryXlinkProperty ( ) { final org . geotools . data . FeatureSource < org . opengis . feature . type . FeatureType , org . opengis . feature . Feature > fSource = ( ( org . geotools . data . FeatureSource < org . opengis . feature . type . FeatureType , org . opengis . feature . Feature > ) ( org . geotools . data...
org . junit . Assert . assertEquals ( 1 , resultCount )
testStartEmpty ( ) { org . uma . jmetal . util . measure . impl . SimpleMeasureManager manager = new org . uma . jmetal . util . measure . impl . SimpleMeasureManager ( ) ; "<AssertPlaceHolder>" ; } getMeasureKeys ( ) { java . util . HashSet < java . lang . Object > keys = new java . util . HashSet ( ) ; keys . addAll ...
org . junit . Assert . assertEquals ( 0 , manager . getMeasureKeys ( ) . size ( ) )
testFireUntilHaltWithForceEagerActivation ( ) { java . lang . String drl = "global<sp>java.util.List<sp>list\n" + ( ( ( ( ( "rule<sp>\"String<sp>detector\"\n" + "<sp>when\n" ) + "<sp>$s<sp>:<sp>String(<sp>)\n" ) + "<sp>then\n" ) + "<sp>list.add($s);\n" ) + "end" ) ; org . kie . api . runtime . KieSessionConfiguration c...
org . junit . Assert . assertEquals ( factsNr , list . size ( ) )
shouldReturnFalseIfIsReasonNeededWhenCorrectingDateFrom ( ) { com . qcadoo . model . api . Entity parameter = mock ( com . qcadoo . model . api . Entity . class ) ; given ( parameterService . getParameter ( ) ) . willReturn ( parameter ) ; given ( parameter . getBooleanField ( com . qcadoo . mes . orders . REASON_NEEDE...
org . junit . Assert . assertFalse ( result )
shouldEchoTextFrameWithPayloadLength125ReadInPartsOfEqualLength ( ) { org . kaazing . netx . URLConnectionHelper helper = org . kaazing . netx . URLConnectionHelper . newInstance ( ) ; java . net . URI location = java . net . URI . create ( "ws://localhost:8080/path" ) ; org . kaazing . netx . ws . WsURLConnection conn...
org . junit . Assert . assertEquals ( writeString , readString )
normalUsageCase008 ( ) { processedUsages = usageRollupProcessor . processRecords ( allUsageRecordsInOrder , hourToRollup , lbsActiveDuringHour ) ; "<AssertPlaceHolder>" ; org . openstack . atlas . service . domain . entities . Usage actualUsage = processedUsages . get ( 0 ) ; org . openstack . atlas . usagerefactor . j...
org . junit . Assert . assertEquals ( 1 , processedUsages . size ( ) )
testRemoveDuplicateCoordinates ( ) { com . vividsolutions . jts . geom . Geometry geom = wKTReader . read ( "LINESTRING(0<sp>8<sp>10,<sp>1<sp>8<sp>,1<sp>8,<sp>3<sp>8,<sp>8<sp>8,<sp>10<sp>8,<sp>10<sp>8,<sp>20<sp>8,<sp>0<sp>8)" ) ; com . vividsolutions . jts . geom . Coordinate [ ] coords = com . vividsolutions . jts . g...
org . junit . Assert . assertEquals ( coords . length , 7 )
testText ( ) { java . lang . String str = "Any<sp>String..." ; gov . hhs . fha . nhinc . direct . MimeMessageBuilder instance = new gov . hhs . fha . nhinc . direct . MimeMessageBuilder ( null , null , null ) ; gov . hhs . fha . nhinc . direct . MimeMessageBuilder result = instance . text ( str ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertTrue ( ( result instanceof gov . hhs . fha . nhinc . direct . MimeMessageBuilder ) )
modifyWatchedFile_shouldUpdateConnectedModels ( ) { java . io . File testconnectorFolder = new java . io . File ( tmpFolder . getRoot ( ) , "testconnector" ) ; java . io . File testfile = new java . io . File ( testconnectorFolder , "testfile" ) ; org . openengsb . core . api . model . ConnectorDescription desc = makeC...
org . junit . Assert . assertThat ( jsonNodes . size ( ) , org . hamcrest . Matchers . is ( 1 ) )
appendMap ( ) { java . util . Map < java . lang . String , java . lang . String > map = createHashMap ( ) ; map . put ( "dddd" , "a" 1 ) ; map . put ( "ccc" , "444\n555\n" ) ; map . put ( "a" , "a" 2 ) ; buf . appendMap ( map , true ) ; result += "{\n" ; result += "<sp>[1/3]<sp>a<sp>=<sp>666\n" ; result += "<sp>[2/3]<s...
org . junit . Assert . assertEquals ( result , buf . toString ( ) )
testCompressedBinaryCommunication ( ) { final java . util . List < kieker . common . record . IMonitoringRecord > records = kieker . test . tools . junit . writeRead . filesystem . BinaryWriterReaderTest . TEST_DATA_REPOSITORY . newTestRecords ( ) ; final java . util . List < kieker . common . record . IMonitoringRecor...
org . junit . Assert . assertThat ( analyzedRecords , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( records ) ) )
testGenerateSitemap_3args ( ) { System . out . println ( "generateSitemap" ) ; java . lang . String filename_prefix = filename ; java . util . Collection < java . lang . String > inputData = new java . util . ArrayList ( ) ; for ( int x = 0 ; x < 5000 ; x ++ ) { inputData . add ( "Q8YE58" ) ; inputData . add ( "A8ADR3"...
org . junit . Assert . assertTrue ( output . exists ( ) )
testHandle ( ) { System . out . println ( ( ( getTestTraceHead ( "[ManagementInterface.handle]" ) ) + "<sp>-<sp>Testing<sp>ManagementInterface.handle" ) ) ; com . telefonica . iot . cygnus . management . ManagementInterface managementInterface = new com . telefonica . iot . cygnus . management . ManagementInterface ( n...
org . junit . Assert . assertTrue ( true )
testExtractor_autoboxingBool ( ) { uk . co . rockstable . experiements . codegen . reflection . func . domain . DomainObject domainObject = new uk . co . rockstable . experiements . codegen . reflection . func . domain . DomainObject ( null , 0 ) ; uk . co . rockstable . experiements . codegen . reflection . extractors...
org . junit . Assert . assertEquals ( true , extractedBool )
testAppGet ( ) { com . olacabs . fabric . manager . domain . ApplicationDomain result = com . olacabs . fabric . manager . service . ApplicationServiceTest . applicationService . get ( com . olacabs . fabric . manager . service . ApplicationServiceTest . application . getName ( ) , com . olacabs . fabric . manager . se...
org . junit . Assert . assertEquals ( result , com . olacabs . fabric . manager . service . ApplicationServiceTest . application )
assertGetMetaData ( ) { for ( java . sql . ResultSet each : resultSets . values ( ) ) { "<AssertPlaceHolder>" ; } } getMetaData ( ) { return new org . apache . shardingsphere . shardingjdbc . jdbc . core . resultset . ShardingResultSetMetaData ( resultSets . get ( 0 ) . getMetaData ( ) , getShardingRule ( ) ) ; }
org . junit . Assert . assertNotNull ( each . getMetaData ( ) )
testConnection ( ) { sparqles . utils . MongoDBManager m = new sparqles . utils . MongoDBManager ( ) ; "<AssertPlaceHolder>" ; } isRunning ( ) { if ( ( ( client ) == null ) || ( ( db ) == null ) ) return false ; return true ; }
org . junit . Assert . assertTrue ( m . isRunning ( ) )
testHandleCanvasSelectionEventWhenCanvasRootIsSelected ( ) { command . bind ( session ) ; java . util . List < java . lang . String > selectedIds = new java . util . ArrayList ( ) ; selectedIds . add ( org . kie . workbench . common . stunner . core . client . session . command . impl . BaseSessionCommandKeyboardSelect...
org . junit . Assert . assertFalse ( command . isEnabled ( ) )
isValidExistingPrincipal ( ) { java . lang . String ticket = container . getTicket ( "someuser1" ) ; boolean ok = container . isValid ( "someuser1" , ticket ) ; "<AssertPlaceHolder>" ; } isValid ( java . lang . String , java . lang . String ) { if ( ( "anonymous" . equals ( principal ) ) && ( "anonymous" . equals ( tic...
org . junit . Assert . assertTrue ( ok )
test_Zero_USDEquals_Zero_USD ( ) { com . ripple . core . coretypes . Amount a = com . ripple . core . AmountTest . amt ( "0/USD/rNDKeo9RrCiRdfsMG8AdoZvNZxHASGzbZL" ) ; com . ripple . core . coretypes . Amount b = com . ripple . core . AmountTest . amt ( "0/USD/rNDKeo9RrCiRdfsMG8AdoZvNZxHASGzbZL" ) ; "<AssertPlaceHolder...
org . junit . Assert . assertTrue ( a . equals ( b ) )
test_set_values_item_missing_values ( ) { java . lang . String str = "SELECT<sp>*<sp>WHERE<sp>{<sp>?o<sp>{?objs}<sp>?s<sp>?p<sp>?o<sp>}" ; org . apache . jena . query . ParameterizedSparqlString pss = new org . apache . jena . query . ParameterizedSparqlString ( str ) ; pss . setValues ( "objs" , org . apache . jena . ...
org . junit . Assert . assertEquals ( exp , res )
pollOnEmptyQueueShouldReturnNull ( ) { java . util . Queue < java . lang . Integer > queue = new org . kaazing . gateway . server . util . collection . FixedArrayQueue ( 5 ) ; "<AssertPlaceHolder>" ; } peek ( ) { return buffer [ ( ( ( int ) ( head ) ) & ( mask ) ) ] ; }
org . junit . Assert . assertNull ( queue . peek ( ) )
resolvePermission_should_return_empty_list ( ) { org . seedstack . seed . security . Role role = new org . seedstack . seed . security . Role ( "foo" ) ; java . util . Collection < org . seedstack . seed . security . Permission > permissions = underTest . resolvePermissionsInRole ( role ) ; "<AssertPlaceHolder>" ; } is...
org . junit . Assert . assertTrue ( permissions . isEmpty ( ) )
expiresPriorToDateWithNoCacheControlIsNotCacheable ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest req1 = org . apache . hc . client5 . http . impl . cache . HttpTestUtils . makeDefaultRequest ( ) ; final org . apache . hc . core5 . http . ClassicHttpResponse resp1 = org . apache . hc . client5 . http...
org . junit . Assert . assertTrue ( org . apache . hc . client5 . http . impl . cache . HttpTestUtils . semanticallyTransparent ( resp2 , result ) )
testGetCapitalizedName15 ( ) { java . lang . String input = "$abc" ; java . lang . String output = com . jmethods . catatumbo . impl . IntrospectionUtils . getCapitalizedName ( input ) ; com . jmethods . catatumbo . impl . IntrospectionUtilsTest . LOGGER . info ( ( ( input + "-->" ) + output ) ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( "$abc" , output )
testRemove ( ) { com . documentum . fc . client . IDfSession session = getRepository ( ) . getSessionForOperator ( getRepository ( ) . getRepositoryName ( ) ) ; try { java . lang . String expectedName = "_#_" + ( name . getMethodName ( ) ) ; com . documentum . fc . client . IDfSysObject dmDocument = createObject ( sess...
org . junit . Assert . assertNull ( dmsObj )
testClientTypedRequest ( ) { ca . uhn . fhir . rest . server . SearchReturningProfiledResourceDstu2Test . ourCtx = ca . uhn . fhir . context . FhirContext . forDstu2 ( ) ; ca . uhn . fhir . rest . client . api . IGenericClient client = ca . uhn . fhir . rest . server . SearchReturningProfiledResourceDstu2Test . ourCtx ...
org . junit . Assert . assertEquals ( ca . uhn . fhir . validation . PatientProfileDstu2 . class , bundle . getEntry ( ) . get ( 0 ) . getResource ( ) . getClass ( ) )
testSuggestEnabledOnNamedProp ( ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder rules = builder . child ( org . apache . jackrabbit . oak . plugins . index . lucene . INDEX_RULES ) ; org . apache . jackrabbit . oak . plugins . index . lucene . TestUtil . child ( rules , "oak:TestNode/properties/prop2" )...
org . junit . Assert . assertTrue ( idxDefn . isSuggestEnabled ( ) )
sizeTest ( ) { int size = 4 ; org . openscience . cdk . group . Permutation p = new org . openscience . cdk . group . Permutation ( size ) ; "<AssertPlaceHolder>" ; } size ( ) { return sp ; }
org . junit . Assert . assertEquals ( size , p . size ( ) )
testToObjectId ( ) { org . eclipse . jgit . lfs . lib . MutableLongObjectId m = new org . eclipse . jgit . lfs . lib . MutableLongObjectId ( ) ; m . fromRaw ( new long [ ] { 1L , 2L , 3L , 4L } ) ; "<AssertPlaceHolder>" ; } toObjectId ( ) { return isComplete ( ) ? new org . eclipse . jgit . lib . ObjectId ( w1 , w2 , w...
org . junit . Assert . assertEquals ( m , m . toObjectId ( ) )