input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
mockGenericClassHavingTypeArgumentOfArrayType ( mockit . GenericMockedTypesTest$GenericBase ) { java . lang . String [ ] result = mock . doSomething ( ) ; "<AssertPlaceHolder>" ; } doSomething ( ) { return 1 ; }
org . junit . Assert . assertEquals ( 0 , result . length )
testByteArrayTransfer ( ) { byte [ ] value = new byte [ ( com . alibaba . dubbo . remoting . buffer . AbstractChannelBufferTest . BLOCK_SIZE ) * 2 ] ; for ( int i = 0 ; i < ( ( ( buffer . capacity ( ) ) - ( com . alibaba . dubbo . remoting . buffer . AbstractChannelBufferTest . BLOCK_SIZE ) ) + 1 ) ; i += com . alibaba...
org . junit . Assert . assertEquals ( expectedValue [ j ] , value [ j ] )
xtermWithSingleQuotedArgs ( ) { final java . lang . String command = "xterm<sp>-T<sp>'Console<sp>CS-DI-IOC-05'<sp>-e<sp>'console<sp>CS-DI-IOC-05'" ; final java . lang . String [ ] result = org . csstudio . java . string . StringSplitter . splitIgnoreInQuotes ( command , '<sp>' , true ) ; "<AssertPlaceHolder>" ; } split...
org . junit . Assert . assertEquals ( 5 , result . length )
testEmptyListFeatures ( ) { tag . doStartTag ( ) ; "<AssertPlaceHolder>" ; } doStartTag ( ) { com . tacitknowledge . flip . FeatureService service = getFeatureService ( ) ; if ( service == null ) { throw new com . tacitknowledge . flip . exceptions . FlipException ( "The<sp>FeatureService<sp>has<sp>not<sp>been<sp>insta...
org . junit . Assert . assertEquals ( "" , writer . toString ( ) )
paddedValueLength2 ( ) { "<AssertPlaceHolder>" ; } paddedValueOfLength ( int ) { return nl . bzk . migratiebrp . voisc . spd . OperationItem . paddedValueOfLength ( "<sp>" , length ) ; }
org . junit . Assert . assertEquals ( "<sp>" , nl . bzk . migratiebrp . voisc . spd . OperationItem . paddedValueOfLength ( 2 ) )
toXMLUTF8 ( ) { java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; hudson . util . XStream2 xs = new hudson . util . XStream2 ( ) ; java . lang . String msg = "k<sp>chyb" ; xs . toXMLUTF8 ( new hudson . util . XStream2EncodingTest . Thing ( msg ) , baos ) ; byte [ ] unspecifiedData = b...
org . junit . Assert . assertThat ( t . field , org . hamcrest . CoreMatchers . is ( msg ) )
givenMultiThread_whenBlockSync ( ) { java . util . concurrent . ExecutorService service = java . util . concurrent . Executors . newFixedThreadPool ( 3 ) ; com . baeldung . concurrent . synchronize . BaeldungSynchronizedBlocks synchronizedBlocks = new com . baeldung . concurrent . synchronize . BaeldungSynchronizedBloc...
org . junit . Assert . assertEquals ( 1000 , synchronizedBlocks . getCount ( ) )
testFieldValueOverwritten ( ) { final org . hyalinedto . test . domainclasses . Person dto = org . hyalinedto . api . Hyaline . dtoFromScratch ( john , new org . hyalinedto . api . DTO ( ) { @ org . hyalinedto . test . api . SuppressWarnings ( "unused" ) private java . lang . String firstName = "Ringo" ; } ) ; "<Assert...
org . junit . Assert . assertEquals ( "Ringo" , dto . getFirstName ( ) )
testConverterAvroArray ( ) { org . spf4j . jmx . JMXBeanMapping mxBeanMapping2 = conv . get ( org . spf4j . tsdb2 . avro . TableDef [ ] . class ) ; "<AssertPlaceHolder>" ; org . spf4j . tsdb2 . avro . TableDef [ ] defs = new org . spf4j . tsdb2 . avro . TableDef [ ] { org . spf4j . tsdb2 . avro . TableDef . newBuilder ...
org . junit . Assert . assertNotNull ( mxBeanMapping2 )
shouldOnlyReturnMessagesFromTargetFile ( ) { java . io . File mainFile = tempFolder . newFile ( "main.rs" ) ; java . io . File modFile = tempFolder . newFile ( "other.rs" ) ; java . nio . file . Files . write ( modFile . toPath ( ) , "pub<sp>fn<sp>other_function()<sp>{<sp>x<sp>x<sp>}" . getBytes ( com . github . drrb ....
org . junit . Assert . assertThat ( messages , is ( empty ( ) ) )
testFullName ( ) { org . eclipse . orion . server . core . metastore . WorkspaceInfo workspaceInfo = new org . eclipse . orion . server . core . metastore . WorkspaceInfo ( ) ; java . lang . String fullName = "Test<sp>Workspace" ; workspaceInfo . setFullName ( fullName ) ; "<AssertPlaceHolder>" ; } getFullName ( ) { re...
org . junit . Assert . assertEquals ( fullName , workspaceInfo . getFullName ( ) )
testCatalogNotifierIntialization ( ) { org . geoserver . notification . common . NotificationConfiguration cfg = null ; int counter = 0 ; for ( org . geoserver . catalog . event . CatalogListener listener : getGeoServer ( ) . getCatalog ( ) . getListeners ( ) ) { if ( listener instanceof org . geoserver . notification ...
org . junit . Assert . assertEquals ( 1 , counter )
testRemoveForwardingRulesFromLoadBalancer ( ) { com . myjeeva . digitalocean . pojo . ForwardingRules rule = new com . myjeeva . digitalocean . pojo . ForwardingRules ( ) ; rule . setEntryProtocol ( Protocol . HTTP ) ; rule . setTargetProtocol ( Protocol . HTTP ) ; rule . setEntryPort ( 8080 ) ; rule . setTargetPort ( ...
org . junit . Assert . assertNotNull ( result )
shouldThrowExceptionWhenUsedClassScopeInjectionOnArquillianResource ( ) { org . mockito . Mockito . when ( resourceProvider . lookup ( ( ( org . jboss . arquillian . test . api . ArquillianResource ) ( org . mockito . Mockito . any ( ) ) ) , org . mockito . Mockito . argThat ( new org . jboss . arquillian . test . impl...
org . junit . Assert . assertEquals ( org . jboss . arquillian . test . impl . enricher . resource . IllegalStateException . class , cause . getClass ( ) )
testSetDeviceId ( ) { deviceInformation . setDeviceId ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) ; "<AssertPlaceHolder>" ; } deviceId ( ) { return deviceId ; }
org . junit . Assert . assertThat ( deviceInformation . deviceId ( ) , org . hamcrest . CoreMatchers . is ( org . onlab . packet . Ip4Address . valueOf ( "1.1.1.1" ) ) )
testQueryByType ( ) { helper . createMigrationBatchWithSize ( 1 ) ; helper . createMigrationBatchWithSize ( 1 ) ; java . util . List < org . camunda . bpm . engine . batch . BatchStatistics > statistics = managementService . createBatchStatisticsQuery ( ) . type ( Batch . TYPE_PROCESS_INSTANCE_MIGRATION ) . list ( ) ; ...
org . junit . Assert . assertEquals ( 2 , statistics . size ( ) )
testMergeFieldsAfterNewFieldValueIsInsertedInTheMiddleOfSeries ( ) { com . liferay . dynamic . data . mapping . model . DDMForm ddmForm = createDDMForm ( ) ; addDDMFormFields ( ddmForm , createTextDDMFormField ( "Content" , "" , true , true , false ) ) ; com . liferay . dynamic . data . mapping . model . DDMStructure d...
org . junit . Assert . assertNotNull ( actualContentField )
testInvalidImageTypeShowsAsInvalid ( ) { co . cask . coopr . layout . NodeLayout badNodeLayout = new co . cask . coopr . layout . NodeLayout ( "large-mem" , "rhel5" , com . google . common . collect . ImmutableSet . of ( "namenode" ) ) ; com . google . common . collect . Multiset < co . cask . coopr . layout . NodeLayo...
org . junit . Assert . assertFalse ( layout . isValid ( ) )
test_param_names ( ) { org . nutz . dao . impl . sql . NutSql sql = org . nutz . dao . impl . sql . SqlLiteralTest . L ( "UPDATE<sp>dao_platoon<sp>SET<sp>name=@name1,base=@baseName2,leader=@leaderName3<sp>WHERE<sp>id=@id4" ) ; java . lang . String [ ] paramNames = sql . literal . getParamIndexes ( ) . names ( ) . toArr...
org . junit . Assert . assertArrayEquals ( paramNames , result )
test_senders_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; request . setE...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
testGetChecksumForWithSoftlink ( ) { final java . nio . file . Path absoluteFilePath = ddfHome . resolve ( createFile ( "test.txt" ) ) . toAbsolutePath ( ) ; final java . nio . file . Path path2 = ddfHome . resolve ( createSoftLink ( absoluteFilePath . getParent ( ) , "test2.txt" , absoluteFilePath ) ) . toAbsolutePath...
org . junit . Assert . assertThat ( checksum2 , org . hamcrest . Matchers . equalTo ( checksum ) )
testMinusDateColumn ( ) { java . lang . String sqlText = java . lang . String . format ( "select<sp>d<sp>+<sp>1<sp>from<sp>%s" , com . splicemachine . derby . impl . sql . execute . operations . SimpleDateArithmeticIT . QUALIFIED_TABLE_NAME ) ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . exec...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
itShouldDeductFromCustomerAccountBalance ( ) { customer . deductFromBalanceBy ( new java . math . BigDecimal ( 200 ) ) ; srp . example2 . fixed . Account expectedAccount = new srp . example2 . fixed . Account ( new java . math . BigDecimal ( 300 ) , accountHolders ) ; srp . example2 . fixed . Customer expectedCustomer ...
org . junit . Assert . assertEquals ( expectedCustomer , customer )
testJoinLongToDouble ( ) { final java . lang . String drl1 = ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . modelcompiler . TypeCoercionTest . DoubleHolder . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . modelcompiler . TypeCoercionTest . LongHolder . class . getCanonicalName ( ) ) )...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
testLeeg ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpStapel < nl . bzk . migratiebrp . conversie . model . brp . groep . BrpDeelnameEuVerkiezingenInhoud > brpEUVerkiezingen = doMapping ( mapper , nl . bzk . brp . levering . lo3 . support . MetaObjectUtil . maakIngeschrevene ( ) ) ; "<AssertPlaceHo...
org . junit . Assert . assertNull ( brpEUVerkiezingen )
testFromJson ( ) { com . fasterxml . jackson . databind . JsonNode jsonNode = com . fasterxml . jackson . databind . node . JsonNodeFactory . withExactBigDecimals ( false ) . binaryNode ( new byte [ 0 ] ) ; java . lang . Object fromJson = binaryType . fromJson ( jsonNode ) ; "<AssertPlaceHolder>" ; } fromJson ( com . f...
org . junit . Assert . assertTrue ( ( fromJson instanceof byte [ ] ) )
testGetGlobalConsumerConfigsWithGlobalConsumerOverridenPrefix ( ) { props . put ( org . apache . kafka . streams . StreamsConfig . consumerPrefix ( ConsumerConfig . MAX_POLL_RECORDS_CONFIG ) , "5" ) ; props . put ( org . apache . kafka . streams . StreamsConfig . globalConsumerPrefix ( ConsumerConfig . MAX_POLL_RECORDS...
org . junit . Assert . assertEquals ( "50" , returnedProps . get ( ConsumerConfig . MAX_POLL_RECORDS_CONFIG ) )
testHelloWorldContinuations ( ) { javax . xml . namespace . QName serviceName = new javax . xml . namespace . QName ( "http://cxf.apache.org/systest/jaxws" , "http://cxf.apache.org/systest/jaxws" 1 ) ; java . net . URL wsdlURL = getClass ( ) . getClassLoader ( ) . getResource ( org . apache . cxf . systest . jms . cont...
org . junit . Assert . assertEquals ( "http://cxf.apache.org/systest/jaxws" 0 , 0 , helloDoneSignal . getCount ( ) )
testSimpleP2 ( ) { java . util . List < ch . qos . logback . core . pattern . parser . Token > tl = new ch . qos . logback . core . pattern . parser . TokenStream ( "X<sp>%a<sp>%-12.550(hello<sp>%class{.4?})" ) . tokenize ( ) ; java . util . List < ch . qos . logback . core . pattern . parser . Token > witness = new ja...
org . junit . Assert . assertEquals ( witness , tl )
isPrivate_A$String_StringIsNull ( ) { java . lang . String methodSignature = null ; boolean actual = org . junithelper . core . util . AccessModifierDetector . isPrivate ( methodSignature ) ; boolean expected = false ; "<AssertPlaceHolder>" ; } isPrivate ( java . lang . String ) { return ( methodSignature != null ) && ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
keyIteratorIsEmpty ( ) { java . util . Iterator < java . lang . String > kit = this . dataset . keyIterator ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return this . iterator . hasNext ( ) ; }
org . junit . Assert . assertFalse ( kit . hasNext ( ) )
tesGroepen10 ( ) { final java . lang . String message = maakLo3VerblijfplaatsInhoud ( new nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3GemeenteCode ( "1234" ) , new nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3Datum ( 20120101 ) , Lo3FunctieAdresEnum . BRIEFADRE...
org . junit . Assert . assertEquals ( "" , message )
testAddKVColumnToNewFamily ( ) { long ts = nextTimestamp ( ) ; java . lang . String tenantId = getOrganizationId ( ) ; initATableValues ( tenantId , getDefaultSplits ( tenantId ) , null , ts ) ; java . util . Properties props = new java . util . Properties ( ) ; props . setProperty ( PhoenixRuntime . CURRENT_SCN_ATTRIB...
org . junit . Assert . assertTrue ( conn2 . prepareStatement ( query ) . executeQuery ( ) . next ( ) )
testNodeJsVersion ( ) { final org . eclipse . n4js . utils . process . ProcessResult result = commandFactory . checkBinaryVersionCommand ( nodeJsBinary ) . execute ( ) ; final org . eclipse . n4js . semver . Semver . VersionNumber currentVersion = semverHelper . parseVersionNumber ( result . getStdOut ( ) . trim ( ) ) ...
org . junit . Assert . assertTrue ( msg , relation . isGreaterOrEqual ( ) )
testExecuteGroupNotSubscribed ( ) { sut = new org . eurekastreams . server . persistence . mappers . db . notification . GetStreamActivitySubscriptionDbMapper ( org . eurekastreams . server . domain . EntityType . GROUP ) ; ( ( org . eurekastreams . server . persistence . mappers . BaseDomainMapper ) ( sut ) ) . setEnt...
org . junit . Assert . assertFalse ( sut . execute ( request ) )
createProducerWithDefaultMetadata ( ) { final org . springframework . integration . kafka . support . ProducerMetadata < byte [ ] , byte [ ] > producerMetadata = new org . springframework . integration . kafka . support . ProducerMetadata < byte [ ] , byte [ ] > ( "test" ) ; final org . springframework . integration . ...
org . junit . Assert . assertTrue ( ( producer != null ) )
shouldReturnNoErrorsIfTheQuantitiesDoMatch ( ) { com . qcadoo . model . api . EntityTree tree = com . qcadoo . mes . timeNormsForOperations . NormServiceTest . mockEntityTreeIterator ( asList ( operComp1 ) ) ; given ( technology . getTreeField ( "operationComponents" ) ) . willReturn ( tree ) ; given ( technologyServic...
org . junit . Assert . assertEquals ( 0 , messages . size ( ) )
testToFromString ( ) { final com . hartwig . hmftools . common . purple . region . FittedRegion expected = com . hartwig . hmftools . common . purple . region . FittedRegionFileTest . createRandom ( new java . util . Random ( ) ) ; final com . hartwig . hmftools . common . purple . region . FittedRegion decoded = com ....
org . junit . Assert . assertEquals ( expected , decoded )
iterator ( ) { com . machinezoo . sourceafis . List < com . machinezoo . sourceafis . Cell > l = new com . machinezoo . sourceafis . ArrayList ( ) ; for ( com . machinezoo . sourceafis . Cell c : new com . machinezoo . sourceafis . Cell ( 2 , 3 ) ) l . add ( c ) ; "<AssertPlaceHolder>" ; for ( com . machinezoo . source...
org . junit . Assert . assertEquals ( com . machinezoo . sourceafis . Arrays . asList ( new com . machinezoo . sourceafis . Cell ( 0 , 0 ) , new com . machinezoo . sourceafis . Cell ( 1 , 0 ) , new com . machinezoo . sourceafis . Cell ( 0 , 1 ) , new com . machinezoo . sourceafis . Cell ( 1 , 1 ) , new com . machinezoo...
testWaitForFlowThatCannotFinish_shouldReturnFalse ( ) { java . lang . Long pid = service . startFlow ( "floweventtest" ) ; service . processEvent ( new org . openengsb . core . api . Event ( "FirstEvent" ) ) ; service . startFlow ( "flowtest" ) ; boolean finished = service . waitForFlowToFinish ( pid , 400 ) ; "<Assert...
org . junit . Assert . assertThat ( finished , org . hamcrest . CoreMatchers . is ( false ) )
testMulti ( ) { java . util . List < java . lang . Boolean > result = com . squareup . cascading_helpers . TestHelpers . exec ( new com . squareup . cascading_helpers . filter . FilterEquals ( 1 , "two" , true ) , new cascading . tuple . Fields ( "first" , "second" , "third" ) , new cascading . tuple . Tuple ( 1 , "two...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( true , false ) , result )
testGerritId ( ) { setText ( ( "I" + ( org . eclipse . egit . internal . mylyn . CommitHyperlinkDetectorTest . EXAMPLE_ID ) ) ) ; org . eclipse . jface . text . hyperlink . IHyperlink [ ] hyperlinks = detectHyperlinks ( 0 , textViewer . getDocument ( ) . getLength ( ) ) ; "<AssertPlaceHolder>" ; } getDocument ( ) { ret...
org . junit . Assert . assertNull ( hyperlinks )
getRelationshipTypeByUuid_shouldFindObjectGivenValidUuid ( ) { java . lang . String uuid = "6d9002ea-a96b-4889-af78-82d48c57a110" ; org . openmrs . RelationshipType relationshipType = org . openmrs . api . context . Context . getPersonService ( ) . getRelationshipTypeByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } getRelat...
org . junit . Assert . assertEquals ( 1 , ( ( int ) ( relationshipType . getRelationshipTypeId ( ) ) ) )
testServerGetIndexPath ( ) { System . out . println ( "testServerGetIndexPath" ) ; "<AssertPlaceHolder>" ; } getIndexPath ( ) { return indexPath ; }
org . junit . Assert . assertEquals ( config . getIndexPath ( ) , storage . getIndexPath ( ) )
testGetTablesSingle ( ) { newDialectFor ( io . confluent . connect . jdbc . dialect . GenericDatabaseDialectTest . TABLE_TYPES , null ) ; db . createTable ( "test" , "id" , "INT" ) ; io . confluent . connect . jdbc . util . TableId test = new io . confluent . connect . jdbc . util . TableId ( null , "APP" , "test" ) ; ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( test ) , dialect . tableIds ( conn ) )
testGetTransactionsAfterRemoveInvalid ( ) { long initialTime = clock . millis ( ) ; when ( clock . millis ( ) ) . thenReturn ( initialTime , ( initialTime + 1000 ) , ( initialTime + 2000 ) ) ; org . hawkular . apm . api . model . config . txn . TransactionConfig btc1 = new org . hawkular . apm . api . model . config . ...
org . junit . Assert . assertNull ( btc1again )
testGetJobStatusDownProcessing ( ) { when ( mockAuthorizationManager . isUserCreatorOrAdmin ( any ( org . sagebionetworks . repo . model . UserInfo . class ) , anyString ( ) ) ) . thenReturn ( true ) ; when ( mockStackStatusDao . getCurrentStatus ( ) ) . thenReturn ( StatusEnum . DOWN ) ; org . sagebionetworks . repo ....
org . junit . Assert . assertNotNull ( result )
testGetGameModes ( ) { "<AssertPlaceHolder>" ; } getGameModes ( ) { return gameModes ; }
org . junit . Assert . assertTrue ( f . getGameModes ( ) . isEmpty ( ) )
remove ( ) { org . roaringbitmap . Container rc = new org . roaringbitmap . RunContainer ( ) ; rc . add ( ( ( short ) ( 1 ) ) ) ; org . roaringbitmap . Container newContainer = rc . remove ( 1 , 2 ) ; "<AssertPlaceHolder>" ; } getCardinality ( ) { return ( ( int ) ( getLongCardinality ( ) ) ) ; }
org . junit . Assert . assertEquals ( 0 , newContainer . getCardinality ( ) )
testEnumNamen ( ) { for ( final nl . moderniseringgba . migratie . Requirements req : nl . moderniseringgba . migratie . Requirements . values ( ) ) { final java . lang . String naamZonderKoppel = req . name ( ) . replaceAll ( "_" , "" ) . toUpperCase ( ) ; final java . lang . String codeZonderKoppel = req . getCode ( ...
org . junit . Assert . assertEquals ( naamZonderKoppel , codeZonderKoppel )
testGetDeclaration ( ) { org . eclipse . tracecompass . ctf . core . event . types . IntegerDeclaration result = fixture . getDeclaration ( ) ; "<AssertPlaceHolder>" ; } getDeclaration ( ) { return null ; }
org . junit . Assert . assertNotNull ( result )
voidPatient_shouldVoidPerson ( ) { org . openmrs . Patient patient = org . openmrs . api . PatientServiceTest . patientService . getPatient ( 2 ) ; org . openmrs . api . PatientServiceTest . patientService . voidPatient ( patient , "reason" ) ; "<AssertPlaceHolder>" ; } getPersonVoided ( ) { return personVoided ; }
org . junit . Assert . assertTrue ( patient . getPersonVoided ( ) )
testVoorkomenTbvLeveringMutatie ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonIndicatieHistorie historie = maakPersoonIndicatieHistorie ( ) ; historie . setIndicatieVoorkomenTbvLeveringMutaties ( Boolean . TRUE ) ; final java . util . Set < nl . bzk . algemeenbrp . dal . domein . brp . entit...
org . junit . Assert . assertNull ( result )
testConvertFromYamlToJson ( ) { java . lang . String yamlInput = "---\n" + ( ( "person:\n" + "<sp>name:<sp>test-name\n" ) + "<sp>age:<sp>14\n" ) ; java . lang . String expectedJsonOutput = "{\"person\":{\"name\":\"test-name\",\"age\":14}}" ; java . lang . String actualJsonOutput = com . vmware . admiral . common . util...
org . junit . Assert . assertEquals ( expectedJsonOutput , actualJsonOutput )
testForEach ( ) { final long [ ] expected = new long [ ] { 12L , 32L , 22L , 9L } ; com . annimon . stream . LongStream . of ( 12L , 32L , 22L , 9L ) . forEach ( new com . annimon . stream . function . LongConsumer ( ) { private int index = 0 ; @ com . annimon . stream . longstreamtests . Override public void accept ( ...
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . is ( expected [ ( ( index ) ++ ) ] ) )
testShouldReturnItIfExistsInRootFolder ( ) { com . liferay . portal . kernel . repository . model . FileEntry fileEntry1 = com . liferay . document . library . app . service . test . DLAppServiceTestUtil . addFileEntry ( group . getGroupId ( ) , DLFolderConstants . DEFAULT_PARENT_FOLDER_ID ) ; com . liferay . portal . ...
org . junit . Assert . assertEquals ( fileEntry1 . getFileEntryId ( ) , fileEntry2 . getFileEntryId ( ) )
testCreate ( ) { org . oscarehr . common . model . MeasurementType entity = new org . oscarehr . common . model . MeasurementType ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . ...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
testHasField ( ) { fixture . setTag ( "" ) ; java . lang . String tag = "" ; boolean result = fixture . hasField ( tag ) ; "<AssertPlaceHolder>" ; } hasField ( java . lang . String ) { return fFields . containsKey ( fieldTag ) ; }
org . junit . Assert . assertEquals ( false , result )
shouldNotAllowUpgrade ( ) { when ( repository . countUpgradeTask ( anyString ( ) ) ) . thenReturn ( 1 ) ; final org . talend . dataprep . upgrade . model . UpgradeTask upgradeTask = mock ( org . talend . dataprep . upgrade . model . UpgradeTask . class ) ; when ( upgradeTask . getTarget ( ) ) . thenReturn ( org . talen...
org . junit . Assert . assertFalse ( service . needUpgrade ( ) )
testBootstrap2 ( ) { final java . util . Random rnd = new java . util . Random ( 42 ) ; net . tomp2p . p2p . Peer master = null ; try { net . tomp2p . p2p . Peer [ ] peers = net . tomp2p . Utils2 . createNodes ( 2000 , rnd , 4001 ) ; master = peers [ 0 ] ; java . util . List < net . tomp2p . futures . FutureBootstrap >...
org . junit . Assert . assertEquals ( true , fm . isSuccess ( ) )
testDoBackwardWithDatastreamContent ( ) { when ( node . isNodeType ( org . fcrepo . http . commons . api . rdf . FEDORA_BINARY ) ) . thenReturn ( true ) ; final org . apache . jena . rdf . model . Resource converted = converter . reverse ( ) . convert ( new org . fcrepo . kernel . modeshape . FedoraBinaryImpl ( node ) ...
org . junit . Assert . assertEquals ( resource , converted )
testImportFeatures ( ) { testedStore . importFeatures ( null ) ; org . ff4j . core . Feature fx1 = new org . ff4j . core . Feature ( "fx1" , true ) ; org . ff4j . core . Feature fx2 = new org . ff4j . core . Feature ( "fx2" , true ) ; testedStore . importFeatures ( org . ff4j . utils . Util . list ( fx1 , fx2 ) ) ; "<A...
org . junit . Assert . assertTrue ( testedStore . exist ( "fx1" ) )
isExpired_Failed ( ) { java . util . Date current = new java . util . Date ( ) ; long time = current . getTime ( ) ; time = time - 86400020 ; "<AssertPlaceHolder>" ; } isExpired ( long ) { java . util . Date current = new java . util . Date ( ) ; long currentDate = current . getTime ( ) ; long hours = currentDate - pwd...
org . junit . Assert . assertEquals ( true , org . oscm . internal . passwordrecovery . PasswordRecoveryValidator . isExpired ( time ) )
updateTypeEntityOnDepA ( ) { waitForSync ( ) ; com . google . appengine . api . datastore . Key key = com . google . appengine . api . datastore . KeyFactory . createKey ( "UPDATE" , 1 ) ; com . google . appengine . api . datastore . Entity lookup = getService ( ) . get ( key ) ; "<AssertPlaceHolder>" ; lookup . setPro...
org . junit . Assert . assertNotNull ( lookup )
dsg1_bad_1 ( ) { org . apache . jena . query . Dataset ds = ( ( org . apache . jena . query . Dataset ) ( org . apache . jena . sparql . core . assembler . AssemblerUtils . build ( ( ( org . apache . jena . test . assembler . TestDatasetAssembler . DIR ) + "assem_dsg1_bad_1.ttl" ) , DatasetAssemblerVocab . tDatasetOne ...
org . junit . Assert . assertNotNull ( ds )
should_required ( ) { java . lang . String demo = loadDemoFlowYaml ( "demo-yml.yaml" ) ; try { com . flow . platform . yml . parser . test . domain . FlowTestRequired [ ] flows = com . flow . platform . yml . parser . YmlParser . fromYml ( demo , com . flow . platform . yml . parser . test . domain . FlowTestRequired [...
org . junit . Assert . assertEquals ( com . flow . platform . yml . parser . exception . YmlParseException . class , e . getClass ( ) )
testMod02 ( ) { javax . el . ELProcessor processor = new javax . el . ELProcessor ( ) ; java . lang . Object result = processor . eval ( "null<sp>%<sp>null" ) ; "<AssertPlaceHolder>" ; } eval ( java . lang . String ) { return getValue ( expression , java . lang . Object . class ) ; }
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 0 ) , result )
testGetDirectChildrenFromLeaf_shouldReturnEmptyList ( ) { java . util . List < org . apache . directory . shared . ldap . model . entry . Entry > children = dao . getDirectChildren ( baseDn ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return map . isEmpty ( ) ; }
org . junit . Assert . assertThat ( children . isEmpty ( ) , org . hamcrest . Matchers . is ( true ) )
testSorteerPLLegeStapel ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst pl = nl . bzk . migratiebrp . ggo . viewer . GgoBrpStapelSorter . sorteerPersoonslijst ( createBrpPersoonslijstMissing ( new nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpGemeenteCode ( ( ( short ...
org . junit . Assert . assertNotNull ( pl )
testCompareToHigher ( ) { opennlp . tools . util . Span a = new opennlp . tools . util . Span ( 100 , 200 ) ; opennlp . tools . util . Span b = new opennlp . tools . util . Span ( 300 , 400 ) ; "<AssertPlaceHolder>" ; } compareTo ( opennlp . tools . util . Span ) { if ( ( getStart ( ) ) < ( s . getStart ( ) ) ) { retur...
org . junit . Assert . assertEquals ( true , ( ( a . compareTo ( b ) ) < 0 ) )
testLookupBlob ( ) { final java . io . File repoPath = setupRepository ( "testrepo" ) ; org . libgit2 . jagged . Repository repository = new org . libgit2 . jagged . Repository ( repoPath . getAbsolutePath ( ) ) ; org . libgit2 . jagged . ObjectId oid = new org . libgit2 . jagged . ObjectId ( "dc48b6c38e967e57965e36c6f...
org . junit . Assert . assertEquals ( oid , blob . getId ( ) )
testBuildWithOrderBy ( ) { org . lnu . is . domain . employee . status . EmployeeStatus context = new org . lnu . is . domain . employee . status . EmployeeStatus ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "abbrName" , org . lnu . is . pagination . OrderByType . A...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
timeTest3 ( ) { java . sql . Statement stmt = sharedConnection . createStatement ( ) ; java . sql . ResultSet rs = stmt . executeQuery ( "select<sp>'aaa'<sp>as<sp>a" ) ; "<AssertPlaceHolder>" ; rs . getTimestamp ( "a" ) ; } next ( ) { if ( isClosed ) { throw new java . sql . SQLException ( "Operation<sp>not<sp>permit<s...
org . junit . Assert . assertTrue ( rs . next ( ) )
testMixedDeletes ( ) { java . util . List < org . apache . hadoop . hbase . shaded . protobuf . generated . AdminProtos . WALEntry > entries = new java . util . ArrayList ( 3 ) ; java . util . List < org . apache . hadoop . hbase . Cell > cells = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 3 ; i ++ ) { entr...
org . junit . Assert . assertEquals ( 0 , scanRes . next ( 3 ) . length )
testAnnotatedButtonTemplateBot ( ) { java . lang . String json = "{\"sender\":{\"id\":\"1158621824216736\"},\"recipient\":{\"id\":\"1226565047419159\"},\"timestamp\":1490832021661,\"message\":{\"mid\":\"mid.$cAAUPCFn4ymdhTcignVbHH3rzpKd_\",\"seq\":844819,\"text\":\"button<sp>template\"}}" ; co . aurasphere . botmill . ...
org . junit . Assert . assertNotNull ( envelope )
testGetScriptOverrideAnnotation ( ) { java . util . Map < java . lang . Class < ? > , org . richfaces . javascript . LibraryFunction > defaultMapping = com . google . common . collect . ImmutableMap . < java . lang . Class < ? > , org . richfaces . javascript . LibraryFunction > of ( org . richfaces . validator . Valid...
org . junit . Assert . assertSame ( function , script )
test ( ) { com . bwssystems . hass . test . StateDataConstructor aTestTarget = new com . bwssystems . hass . test . StateDataConstructor ( ) ; "<AssertPlaceHolder>" ; } validateStructure ( ) { com . google . gson . Gson aGson ; com . bwssystems . HABridge . NamedIP anAddress = new com . bwssystems . HABridge . NamedIP ...
org . junit . Assert . assertEquals ( aTestTarget . validateStructure ( ) , true )
ManyMessageTransferCountTest ( ) { java . nio . ByteBuffer byteBuffer = java . nio . ByteBuffer . allocate ( 20 ) ; byteBuffer . putInt ( 20 ) ; org . apache . rocketmq . store . GetMessageResult getMessageResult = new org . apache . rocketmq . store . GetMessageResult ( ) ; org . apache . rocketmq . broker . pagecache...
org . junit . Assert . assertEquals ( manyMessageTransfer . count ( ) , 20 )
toStringValues ( ) { biweekly . property . Version property = new biweekly . property . Version ( "2.0" ) ; "<AssertPlaceHolder>" ; } toStringValues ( ) { biweekly . property . ValuedProperty < java . lang . String > property = new biweekly . property . ValuedProperty < java . lang . String > ( "value" ) ; org . junit ...
org . junit . Assert . assertFalse ( property . toStringValues ( ) . isEmpty ( ) )
shouldPersistAndRetrieveMetadataReplica ( ) { org . neo4j . graphdb . GraphDatabaseService mainDatabase = getOneReplicaDatabase ( ) ; repository = new com . graphaware . runtime . metadata . GraphPropertiesMetadataRepository ( mainDatabase , com . graphaware . runtime . config . FluentRuntimeConfiguration . defaultConf...
org . junit . Assert . assertNull ( repository . getModuleMetadata ( "TEST-REPLICA" ) )
testGetBuilderIdempotent ( ) { org . apache . olingo . odata2 . jpa . processor . api . access . JPAEdmBuilder builder1 = objJPAEdmSchema . getBuilder ( ) ; org . apache . olingo . odata2 . jpa . processor . api . access . JPAEdmBuilder builder2 = objJPAEdmSchema . getBuilder ( ) ; "<AssertPlaceHolder>" ; } hashCode ( ...
org . junit . Assert . assertEquals ( builder1 . hashCode ( ) , builder2 . hashCode ( ) )
testInvoke_adjustThrowsException_throwsException ( ) { java . io . File recommendationsDir = temp . newFolder ( "recommendationDir" ) ; java . lang . String recommendationsArtifactsLifetime = "1w" ; int requestId = 0 ; org . apache . ambari . server . api . services . stackadvisor . StackAdvisorRunner saRunner = mock (...
org . junit . Assert . assertTrue ( false )
sessionIdShortcutShouldReturnTheSessionIdIfSet ( ) { when ( unit . get ( eq ( TraceeConstants . SESSION_ID_KEY ) ) ) . thenReturn ( "ourSessionId" ) ; "<AssertPlaceHolder>" ; } getSessionId ( ) { return get ( TraceeConstants . SESSION_ID_KEY ) ; }
org . junit . Assert . assertThat ( unit . getSessionId ( ) , org . hamcrest . Matchers . is ( "ourSessionId" ) )
testGetAddress_2 ( ) { final org . cloudifysource . esc . driver . provisioning . jclouds . CloudAddressResolver fixture = new org . cloudifysource . esc . driver . provisioning . jclouds . CloudAddressResolver ( ) ; final java . util . Set < java . lang . String > addresses = new java . util . HashSet ( ) ; final java...
org . junit . Assert . assertEquals ( null , result )
find_A$Function1 ( ) { java . util . List < java . lang . String > list = java . util . Arrays . asList ( "a" , "b" , "a" , "a" , "c" , "z" ) ; com . m3 . scalaflavor4j . Seq < java . lang . String > seq = com . m3 . scalaflavor4j . Seq . apply ( list ) ; com . m3 . scalaflavor4j . F1 < java . lang . String , java . la...
org . junit . Assert . assertThat ( actual . getOrNull ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "c" ) ) )
detect ( ) { com . navercorp . pinpoint . plugin . vertx . VertxDetector detector = new com . navercorp . pinpoint . plugin . vertx . VertxDetector ( null ) ; "<AssertPlaceHolder>" ; } detect ( ) { java . lang . String bootstrapMainClass = MainClassCondition . INSTANCE . getValue ( ) ; return expectedMainClasses . cont...
org . junit . Assert . assertFalse ( detector . detect ( ) )
testStartMS ( ) { com . bixly . pastevid . models . VideoFileItemTest . log ( "VideoFileItem.startMS" ) ; com . bixly . pastevid . models . VideoFileItem instance = new com . bixly . pastevid . models . VideoFileItem ( ) ; long expResult = java . lang . System . currentTimeMillis ( ) ; instance . setStartMS ( expResult...
org . junit . Assert . assertEquals ( expResult , result )
testRangeCardinality ( ) { org . roaringbitmap . buffer . MutableRoaringBitmap r = new org . roaringbitmap . buffer . MutableRoaringBitmap ( ) ; long Min = 0L ; long Max = 1000000L ; r . add ( Min , Max ) ; for ( long s = Min ; s <= Max ; s += 100 ) { for ( long e = s ; e <= Max ; e += 100 ) { "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( ( e - s ) , r . rangeCardinality ( s , e ) )
testReadLong ( ) { long n = ( ( long ) ( ( java . lang . Math . random ( ) ) * 1000 ) ) ; write ( java . lang . Long . toString ( n ) ) ; "<AssertPlaceHolder>" ; } readLong ( ) { return java . lang . Long . valueOf ( org . kocakosm . pitaya . io . Scanf . readString ( ) ) ; }
org . junit . Assert . assertEquals ( n , org . kocakosm . pitaya . io . Scanf . readLong ( ) )
testEnhancedFind ( ) { java . lang . String input = "foob" ; java . lang . String pattern = "a*b" ; java . util . regex . Pattern pat = java . util . regex . Pattern . compile ( pattern ) ; java . util . regex . Matcher mat = pat . matcher ( input ) ; mat . find ( ) ; "<AssertPlaceHolder>" ; } group ( ) { return group ...
org . junit . Assert . assertEquals ( "b" , mat . group ( ) )
testLeadingWhitespaceTrimWithoutOutsideText ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( true ) . build ( ) ; com . mitchellbosecke . pebble . t...
org . junit . Assert . assertEquals ( "bar" , writer . toString ( ) )
testMonitorRunningAnalysesSuccessErrorWithEmail ( ) { analysisSubmission . setAnalysisState ( AnalysisState . RUNNING ) ; analysisSubmission . setEmailPipelineResult ( true ) ; java . util . Map < ca . corefacility . bioinformatics . irida . model . workflow . execution . galaxy . GalaxyWorkflowState , java . util . Se...
org . junit . Assert . assertEquals ( AnalysisState . ERROR , analysisSubmission . getAnalysisState ( ) )
testSample ( ) { System . out . println ( "Sample<sp>Test" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testGivenMTLSellWithoutLOBuy ( ) { vn . com . vndirect . exchangesimulator . model . NewOrderSingle order = vn . com . vndirect . exchangesimulator . matching . OrderFactory . createLOSell ( "VND" , 1000 , 13000 ) ; sm . push ( order ) ; vn . com . vndirect . exchangesimulator . model . NewOrderSingle mtlOrder = vn . c...
org . junit . Assert . assertEquals ( 1 , reports . size ( ) )
testReSeed ( ) { empiricalDistribution . load ( url ) ; empiricalDistribution . reSeed ( 100 ) ; final double [ ] values = new double [ 10 ] ; for ( int i = 0 ; i < 10 ; i ++ ) { values [ i ] = empiricalDistribution . getNextValue ( ) ; } empiricalDistribution . reSeed ( 100 ) ; for ( int i = 0 ; i < 10 ; i ++ ) { "<As...
org . junit . Assert . assertEquals ( values [ i ] , empiricalDistribution . getNextValue ( ) , 0.0 )
testGet_cachesValue ( ) { org . eclipse . rap . rwt . internal . util . SharedInstanceBuffer . InstanceCreator < java . lang . Object , java . lang . Object > instanceCreator = org . eclipse . rap . rwt . internal . util . SharedInstanceBuffer_Test . mockInstanceCreator ( value ) ; java . lang . Object returned1 = keyV...
org . junit . Assert . assertSame ( returned1 , returned2 )
testVerzamelAfleidingsregels ( ) { final nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . reisdocument . ReisdocumentGroepVerwerker verwerker = new nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . reisdocument . ReisdocumentGroepVerwerker ( null , null , cre...
org . junit . Assert . assertEquals ( 0 , verwerker . getAfleidingsregels ( ) . size ( ) )
testLiteral ( ) { final org . hamcrest . Matcher < com . fasterxml . jackson . databind . JsonNode > sut = com . spotify . hamcrest . jackson . IsJsonObject . jsonObject ( com . spotify . hamcrest . jackson . IsJsonObjectTest . NF . objectNode ( ) . put ( "a" , 1 ) . put ( "b" , false ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( com . spotify . hamcrest . jackson . IsJsonObjectTest . NF . objectNode ( ) . put ( "a" , 1 ) . put ( "b" , false ) , org . hamcrest . core . Is . is ( sut ) )
shouldReturnTrueIfRevisionTypeIsDel ( ) { java . lang . String value = EMPTY ; ch . puzzle . itc . mobiliar . business . database . entity . MyRevisionEntity revisionEntity = new ch . puzzle . itc . mobiliar . business . database . entity . MyRevisionEntity ( ) ; ch . puzzle . itc . mobiliar . business . auditview . en...
org . junit . Assert . assertThat ( relevant , org . hamcrest . Matchers . is ( true ) )
testParse_EmptyQueriesString ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )