input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
defaultTest1 ( ) { final com . zaxxer . hikari . HikariConfig config = new com . zaxxer . hikari . HikariConfig ( ) ; config . setDataSourceClassName ( com . navercorp . pinpoint . plugin . hikaricp . HikariCpIT . DATA_SOURCE_CLASS_NAME ) ; config . addDataSourceProperty ( "url" , com . navercorp . pinpoint . plugin . ...
org . junit . Assert . assertNotNull ( connection )
testWindow_applyIf ( ) { cz . seznam . euphoria . core . client . flow . Flow flow = cz . seznam . euphoria . core . client . flow . Flow . create ( "TEST" ) ; cz . seznam . euphoria . core . client . dataset . Dataset < java . lang . String > dataset = cz . seznam . euphoria . core . client . operator . Util . createM...
org . junit . Assert . assertTrue ( ( ( tpk . windowing ) instanceof cz . seznam . euphoria . core . client . dataset . windowing . Time ) )
testIsUnique ( ) { classUnderTest . setUnique ( true ) ; "<AssertPlaceHolder>" ; } IsUnique ( ) { return this . isUnique ; }
org . junit . Assert . assertEquals ( true , classUnderTest . IsUnique ( ) )
testValidPadesContainerWithTwoSignatures ( ) { org . digidoc4j . Container container = org . digidoc4j . ContainerBuilder . aContainer ( Container . DocumentType . PADES ) . withConfiguration ( org . digidoc4j . Configuration . of ( Configuration . Mode . PROD ) ) . fromExistingFile ( "src/test/resources/prodFiles/vali...
org . junit . Assert . assertTrue ( result . isValid ( ) )
bufferedQueueTest ( ) { com . dp . nebula . wormhole . engine . storage . DoubleQueue dq = new com . dp . nebula . wormhole . engine . storage . DoubleQueue ( 200 , ( 1024 * 200 ) ) ; com . dp . nebula . wormhole . common . interfaces . ILine [ ] setLines ; com . dp . nebula . wormhole . common . interfaces . ILine [ ]...
org . junit . Assert . assertArrayEquals ( setLines , getLines )
copyMMForExcludeEmptyString ( ) { java . util . Map < java . lang . String , java . lang . Object > src = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; src . put ( "aaa" , "" ) ; java . util . Map < java . lang . String , java . lang . Object > dest = new java . util . HashMap < java ....
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( dest . get ( "aaa" ) ) ) , org . hamcrest . CoreMatchers . is ( "111" ) )
shouldUseContainerForNewView ( ) { final br . com . caelum . vraptor . core . DefaultResultTest . MyView expectedView = new br . com . caelum . vraptor . core . DefaultResultTest . MyView ( ) ; when ( container . instanceFor ( br . com . caelum . vraptor . core . DefaultResultTest . MyView . class ) ) . thenReturn ( ex...
org . junit . Assert . assertThat ( view , org . hamcrest . Matchers . is ( expectedView ) )
toArrayWithCircledBuffer ( ) { com . cloudhopper . commons . util . ByteBuffer buffer = com . cloudhopper . commons . util . ByteBufferTest . createCircledByteBuffer ( ( ( com . cloudhopper . commons . util . ByteBufferTest . TEST_BYTES1 . length ) + 20 ) ) ; buffer . add ( com . cloudhopper . commons . util . ByteBuff...
org . junit . Assert . assertArrayEquals ( com . cloudhopper . commons . util . ByteBufferTest . TEST_BYTES1 , copyArray )
testNonDefaultSetting ( ) { org . apache . commons . math3 . geometry . euclidean . twod . Vector2D c = new org . apache . commons . math3 . geometry . euclidean . twod . Vector2D ( 1 , 1 ) ; java . lang . String expected = "[1<sp>:<sp>1]" ; java . lang . String actual = vector2DFormatSquare . format ( c ) ; "<AssertPl...
org . junit . Assert . assertEquals ( expected , actual )
getDistanceTestFullSubstringMatch ( ) { java . lang . String needle = "needle" ; java . lang . String noise = "bla" ; java . lang . String haystack = ( "prefix<sp>needle<sp>" + noise ) + "<sp>postfix" ; org . eclipse . sw360 . cvesearch . datasource . matcher . Match match = org . eclipse . sw360 . cvesearch . datasour...
org . junit . Assert . assertThat ( match . getDistance ( ) , is ( 0 ) )
testMkdirsRemoteFile ( ) { doReturn ( true ) . when ( mockLocalFS ) . mkdirs ( new org . apache . hadoop . fs . Path ( "/foo/bar/dir2" ) , org . apache . hadoop . fs . permission . FsPermission . getFileDefault ( ) ) ; doReturn ( true ) . when ( mockRemoteFS ) . mkdirs ( new org . apache . hadoop . fs . Path ( "/foo/ba...
org . junit . Assert . assertTrue ( fs . mkdirs ( path , org . apache . hadoop . fs . permission . FsPermission . getFileDefault ( ) ) )
itShouldAssignNullToInfluxDBSenderInCleanupMethod ( ) { final com . github . christiangda . storm . metrics . InfluxDBSender influxDBSender = org . mockito . Mockito . mock ( com . github . christiangda . storm . metrics . InfluxDBSender . class ) ; final java . lang . reflect . Field fieldInfluxDBSender = influxDBMetr...
org . junit . Assert . assertNull ( fieldInfluxDBSender . get ( influxDBMetricsConsumer ) )
compareDrugNamesIgnoringNumericals_shouldReturnPositiveIfNameForDrug1ComesBeforeThatOfDrug2IgnoringDashes ( ) { org . openmrs . Drug drug1 = new org . openmrs . Drug ( ) ; drug1 . setName ( "AB-AB" ) ; org . openmrs . Drug drug2 = new org . openmrs . Drug ( ) ; drug2 . setName ( "ABAA" ) ; org . openmrs . util . DrugsB...
org . junit . Assert . assertEquals ( actualValue , 1 )
verifyScopeMethod ( ) { java . lang . reflect . Method getScopedByKeyMethod = org . androidtransfuse . scope . Scope . class . getMethod ( Scope . GET_SCOPED_OBJECT , org . androidtransfuse . scope . ScopeKey . class , javax . inject . Provider . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( getScopedByKeyMethod )
setMeasurand_currentOffered_measurandIsSet ( ) { java . lang . String measurand = "Current.Offered" ; sampledValue . setMeasurand ( measurand ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( sampledValue . getMeasurand ( ) , org . hamcrest . CoreMatchers . equalTo ( measurand ) )
example ( ) { org . psjava . ds . graph . MutableUndirectedUnweightedGraph < java . lang . String > graph = org . psjava . ds . graph . MutableUndirectedUnweightedGraph . create ( ) ; graph . insertVertex ( "A" ) ; graph . insertVertex ( "B" ) ; graph . insertVertex ( "C" ) ; graph . insertVertex ( "D" ) ; graph . inse...
org . junit . Assert . assertEquals ( 3 , number )
testChangeTypeErrorToNumber ( ) { org . apache . poi . ss . usermodel . Workbook wb = _testDataProvider . createWorkbook ( ) ; org . apache . poi . ss . usermodel . Cell cell = createACell ( wb ) ; cell . setCellErrorValue ( FormulaError . NAME . getCode ( ) ) ; try { cell . setCellValue ( 2.5 ) ; } catch ( java . lang...
org . junit . Assert . assertEquals ( 2.5 , cell . getNumericCellValue ( ) , 0.0 )
shouldParseTableManipulations ( ) { org . databaseliner . manipulation . ManipulationService manipulationService = org . databaseliner . manipulation . parser . ManipulationConfigParser . parse ( getDocument ( org . databaseliner . manipulation . parser . ManipulationConfigParserTest . CONFIG_WITH_MANIPULATIONS ) ) ; "...
org . junit . Assert . assertEquals ( 1 , manipulationService . getTableManipulations ( ) . size ( ) )
testVoerStapUitMetStappenIsNull ( ) { berichtVerwerker . setStappen ( null ) ; final nl . bzk . brp . model . bericht . kern . ActieBericht actie = new nl . bzk . brp . model . bericht . kern . ActieRegistratieAdresBericht ( ) ; actie . setRootObject ( new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ) ...
org . junit . Assert . assertTrue ( resultaat . getMeldingen ( ) . isEmpty ( ) )
respondWithUnknownArgumentsShouldReturnFalseAndPrintDetailsAboutUnknownArguments ( ) { final net . usikkert . kouchat . argument . ArgumentResponder handler = createHandlerWithArguments ( "--something" , "-w" ) ; "<AssertPlaceHolder>" ; verify ( System . out ) . println ( ( "KouChat<sp>v" + ( net . usikkert . kouchat ....
org . junit . Assert . assertFalse ( handler . respond ( ) )
testEditTodoList ( ) { expect ( todoListsService . findTodoList ( "001" ) ) . andReturn ( todoList ) ; todoListsService . updateTodoList ( todoList ) ; replay_ ( ) ; todoListsDwr . editTodoList ( "001" , "edit<sp>name" , "1" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( "edit<sp>name" , todoList . getName ( ) )
insert1 ( ) { sut . insert ( "Sirou" ) ; org . dbunit . dataset . ITable actual = tester . getConnection ( ) . createDataSet ( ) . getTable ( "users" ) ; java . io . InputStream expectedIn = getClass ( ) . getResourceAsStream ( "zero_expected.xml" ) ; org . dbunit . dataset . ITable expected = new org . dbunit . datase...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( tableOf ( expected ) ) )
testWriteOffset ( ) { byte [ ] bytes = fromString ( ( "123456789012345678901234567890123456789012" + ( "3456789012345678901234567890123456789012345678901234567890" + "123456789012345" ) ) ) ; java . io . ByteArrayOutputStream b = new java . io . ByteArrayOutputStream ( ) ; org . apache . james . mime4j . codec . Base64...
org . junit . Assert . assertEquals ( expected , actual )
testExonOverlapStartInvertedOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59004875\t.\tN\t<INV>\t.\t.\tSVTYPE=INV;END=59005052" ) ; final java . lang . String expected = "1\t59004875\t.\tN\t<INV>\t.\t.\tEND=59005052;" + ( "SVANN=inversion&structural_variant&coding_transcr...
org . junit . Assert . assertEquals ( expected , actual )
top ( ) { "<AssertPlaceHolder>" ; } bottom ( ) { org . junit . Assert . assertEquals ( 3 , new com . machinezoo . sourceafis . Block ( 2 , 3 , 4 , 5 ) . top ( ) ) ; }
org . junit . Assert . assertEquals ( 8 , new com . machinezoo . sourceafis . Block ( 2 , 3 , 4 , 5 ) . bottom ( ) )
shouldFavourTestsThatCoverFewerLinesInTheSameAmountOfTime ( ) { final org . pitest . coverage . TestInfo fastButWide = testInfo ( 1 , org . pitest . mutationtest . build . TestInfoPriorisationComparatorTest . TARGET , 100 ) ; final org . pitest . coverage . TestInfo fastAndTargetted = testInfo ( 1 , org . pitest . muta...
org . junit . Assert . assertThat ( actual , org . hamcrest . core . Is . is ( java . util . Arrays . asList ( fastAndTargetted , fastAndSlightlyTargetted , fastButWide ) ) )
noCredentials ( ) { com . betfair . cougar . core . impl . security . SSLAwareTokenResolver tr = new com . betfair . cougar . core . impl . security . SSLAwareTokenResolver < java . lang . Object , java . lang . Object , java . lang . Object > ( new com . betfair . cougar . core . impl . security . CommonNameCertInfoEx...
org . junit . Assert . assertNull ( tr . findCertInfo ( null ) )
testCreateFacetSearchConditionStringNullFacet ( ) { "<AssertPlaceHolder>" ; } createFacetSearchConditionString ( org . sagebionetworks . repo . model . table . FacetColumnRequest ) { if ( facetColumnRequest == null ) { return null ; } if ( facetColumnRequest instanceof org . sagebionetworks . repo . model . table . Fac...
org . junit . Assert . assertNull ( org . sagebionetworks . table . query . util . FacetRequestColumnModel . createFacetSearchConditionString ( null ) )
testThreePartiesValidBroadcast ( ) { initContexts ( 3 ) ; java . util . List < byte [ ] > messages = java . util . Arrays . asList ( new byte [ ] { 0 , 1 } , new byte [ ] { 2 } , new byte [ ] { 3 } ) ; java . util . concurrent . Callable < dk . alexandra . fresco . framework . util . Pair < java . lang . Boolean , java...
org . junit . Assert . assertEquals ( res . getFirst ( ) , false )
scanningClassPathShouldNotIncludeSpringStuff ( ) { java . lang . Class scanned = generator . scanForExtensionAnnotatedClasses ( heisenbergPlugin , newArrayList ( this . getClass ( ) . getProtectionDomain ( ) . getCodeSource ( ) . getLocation ( ) ) ) ; "<AssertPlaceHolder>" ; } nullValue ( ) { assertExpected ( null ) ; ...
org . junit . Assert . assertThat ( scanned , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . nullValue ( ) ) )
applyDefaultsCorrectsNoOutputIfExtensionIsPresent ( ) { com . github . timm . cucumber . generate . Plugin plugin = new com . github . timm . cucumber . generate . Plugin ( ) ; plugin . setName ( "path.to.my.XmlFormatter" ) ; plugin . setExtension ( "xml" ) ; plugin . setNoOutput ( true ) ; plugin . applyDefaults ( new...
org . junit . Assert . assertThat ( plugin . isNoOutput ( ) , org . hamcrest . CoreMatchers . equalTo ( false ) )
testSetText ( ) { org . kie . workbench . common . stunner . lienzo . toolbox . items . tooltip . ToolboxTextTooltip cascade = tested . setText ( "text1" ) ; "<AssertPlaceHolder>" ; verify ( delegate , times ( 1 ) ) . setText ( eq ( "text1" ) ) ; } setText ( org . kie . workbench . common . dmn . api . property . dmn ....
org . junit . Assert . assertEquals ( tested , cascade )
shouldAutotypeFloatProperties ( ) { final org . apache . tinkerpop . gremlin . structure . Vertex v = graph . addVertex ( ) ; v . property ( VertexProperty . Cardinality . single , "float" , 0.1F ) ; final java . lang . Float best = v . value ( "float" ) ; "<AssertPlaceHolder>" ; } value ( java . lang . String ) { retu...
org . junit . Assert . assertEquals ( best , java . lang . Float . valueOf ( 0.1F ) )
test ( ) { int [ ] candidates = new int [ ] { 2 , 3 , 6 , 7 } ; int target = 7 ; java . util . List < java . util . List < java . lang . Integer > > list = combinationSum ( candidates , target ) ; list . stream ( ) . forEach ( System . out :: println ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
org . junit . Assert . assertThat ( list . size ( ) , org . hamcrest . Matchers . is ( 2 ) )
testSynsetAddAllNull ( ) { net . sf . extjwnl . data . Synset s = new net . sf . extjwnl . data . Synset ( null , POS . NOUN , 1 ) ; s . setGloss ( "test<sp>gloss" ) ; net . sf . extjwnl . data . Synset t = new net . sf . extjwnl . data . Synset ( null , POS . NOUN , 2 ) ; t . setGloss ( "car<sp>gloss" ) ; net . sf . e...
org . junit . Assert . assertEquals ( 3 , iws . getSenses ( ) . size ( ) )
testCustomEffort ( ) { io . joynr . messaging . MessagingQos messagingQos = new io . joynr . messaging . MessagingQos ( 0L , MessagingQosEffort . BEST_EFFORT ) ; "<AssertPlaceHolder>" ; } getEffort ( ) { return messageDeserializer . getHeader ( Message . HEADER_EFFORT ) ; }
org . junit . Assert . assertEquals ( MessagingQosEffort . BEST_EFFORT , messagingQos . getEffort ( ) )
testUnknownTokensText ( ) { int dim = 50 ; float [ ] unkVector = org . dkpro . core . api . embeddings . VectorizerUtils . randomVector ( dim ) ; int minTokenLength = 3 ; org . apache . uima . collection . CollectionReaderDescription reader = createReaderDescription ( de . tudarmstadt . ukp . dkpro . core . io . text ....
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( vector , unkVector ) )
testTypeMatchesObject ( ) { org . switchyard . test . InvocationFaultException infEx = new org . switchyard . test . InvocationFaultException ( new org . switchyard . internal . DefaultMessage ( ) . setContent ( new org . switchyard . test . DummyObject ( ) ) ) ; "<AssertPlaceHolder>" ; } isType ( java . lang . Class )...
org . junit . Assert . assertTrue ( infEx . isType ( org . switchyard . test . DummyObject . class ) )
loadChartDiscardInvalidConfigurations ( ) { java . util . List < org . phenotips . measurements . MeasurementsChartConfiguration > settings = this . mocker . getComponentUnderTest ( ) . loadConfigurationsForMeasurementType ( "tested" ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . internalList . size ( ) ; }
org . junit . Assert . assertEquals ( 5 , settings . size ( ) )
sampleTest ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNull ( null )
testBuildWithParametersAndDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . enrolment . Enrolment enrolment = new org . lnu . is . domain . enrolment . Enrolment ( ) ; org . lnu . is . domain . specoffer . SpecOfferWave specOfferWave = new org . lnu ....
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testReadable ( ) { java . util . ArrayList < java . io . File > files = new java . util . ArrayList < java . io . File > ( 4 ) ; files . add ( new java . io . File ( outputDir , "org/hibernate/tool/hbm2x/hbm2hbmxml/MapAndAnyTest/ComplexPropertyValue.hbm.xml" ) ) ; files . add ( new java . io . File ( outputDir , "org/h...
org . junit . Assert . assertNotNull ( metadataDescriptor . createMetadata ( ) )
testRemoveFile ( ) { filePool . createFile ( "tmp" ) ; filePool . removeFile ( 1 , "tmp" ) ; "<AssertPlaceHolder>" ; } hasFile ( long , java . lang . String ) { return proxy . hasFile ( fId , suffix ) ; }
org . junit . Assert . assertFalse ( filePool . hasFile ( 1 , "tmp" ) )
testServiceIsSingleton ( ) { com . salesforce . dva . argus . service . MQService service1 = system . getServiceFactory ( ) . getMQService ( ) ; com . salesforce . dva . argus . service . MQService service2 = system . getServiceFactory ( ) . getMQService ( ) ; "<AssertPlaceHolder>" ; } getMQService ( ) { return _mqServ...
org . junit . Assert . assertTrue ( ( service1 == service2 ) )
testWillUsePicoContainerToHandleActions ( ) { final com . picocontainer . containers . TransientPicoContainer tpc = new com . picocontainer . containers . TransientPicoContainer ( ) ; tpc . addComponent ( java . lang . String . class , "This<sp>is<sp>a<sp>test" ) ; final java . lang . Class < com . picocontainer . web ...
org . junit . Assert . assertNotNull ( result )
testFib_5_5 ( ) { final long result = com . facebook . samples . scrollperf . util . TimeWaster . Fib ( 5 ) ; "<AssertPlaceHolder>" ; } Fib ( int ) { if ( n < 2 ) { return n ; } else { return ( com . facebook . samples . scrollperf . util . TimeWaster . Fib ( ( n - 1 ) ) ) + ( com . facebook . samples . scrollperf . ut...
org . junit . Assert . assertEquals ( 5 , result )
getResourceByGroupName ( ) { java . lang . String name = "ch_mobi_fofa_fofa_selection" ; java . util . List < ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity > list = new java . util . ArrayList ( ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity...
org . junit . Assert . assertTrue ( name . equals ( result . get ( 0 ) . getName ( ) ) )
testFiles ( ) { final org . apache . commons . vfs2 . FileSelector selector = new org . apache . commons . vfs2 . FileTypeSelector ( FileType . FILE ) ; final org . apache . commons . vfs2 . FileObject [ ] foList = org . apache . commons . vfs2 . FileTypeSelectorTest . BaseFolder . findFiles ( selector ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( 5 , foList . length )
deveObterDataHoraRegistroComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . NFInfoEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe400 . classes . evento . NFInfoEventoRetorno ( ) ; final java . time . LocalDateTime dataHoraRegistro = java . time . LocalDateT...
org . junit . Assert . assertEquals ( dataHoraRegistro , eventoRetorno . getDataHoraRegistro ( ) )
testGetVirtualSize ( ) { long virtualSize = 2000 ; long actualSize = 1000 ; java . io . File mockFile = org . mockito . Mockito . mock ( java . io . File . class ) ; org . mockito . Mockito . when ( mockFile . length ( ) ) . thenReturn ( actualSize ) ; org . mockito . Mockito . doReturn ( virtualSize ) . when ( process...
org . junit . Assert . assertEquals ( virtualSize , processor . getVirtualSize ( mockFile ) )
givenValidJsonStringWithNewLineAndSingleQuotesThenSuccessfullyRemoveEmpty ( ) { jsonStringInput = "{'removed1':'',<sp>'removed2':[],<sp>'removed3':null,<sp>'expected':'value'}<sp>" ; expectedJsonStringOutput = "{'expected':'value'}" ; actualJsonStringOutput = jsonServiceUnderTest . removeEmptyElementsJson ( jsonStringI...
org . junit . Assert . assertEquals ( expectedJsonStringOutput , actualJsonStringOutput )
testInvoke_voidCall ( ) { java . lang . Object [ ] args = new java . lang . Object [ ] { "2" , 1 } ; when ( soapCall . getSoapClientMethod ( ) ) . thenReturn ( com . google . api . ads . common . lib . soap . testing . MockSoapClient . class . getMethod ( "voidCall" , java . lang . Object [ ] . class ) ) ; when ( soapC...
org . junit . Assert . assertNull ( result )
testDeleteValue ( ) { factory . getDb ( ) . command ( new com . orientechnologies . orient . core . sql . OCommandSQL ( "INSERT<sp>INTO<sp>Config<sp>SET<sp>key<sp>=<sp>'testKey4',<sp>value<sp>=<sp>'testValue4'" ) ) . execute ( ) ; repository . deleteValue ( "testKey4" ) ; com . orientechnologies . orient . core . sql ....
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
testCodec130 ( ) { final java . io . ByteArrayOutputStream bos = new java . io . ByteArrayOutputStream ( ) ; try ( final org . apache . commons . codec . binary . Base64OutputStream base64os = new org . apache . commons . codec . binary . Base64OutputStream ( bos ) ) { base64os . write ( org . apache . commons . codec ...
org . junit . Assert . assertEquals ( org . apache . commons . codec . binary . Base64InputStreamTest . STRING_FIXTURE . substring ( 1 ) , str )
test16 ( ) { org . evosuite . Properties . CLIENT_ON_THREAD = true ; org . evosuite . Properties . PRINT_TO_SYSTEM = true ; org . evosuite . Properties . TIMEOUT = 5000000 ; org . evosuite . testcase . DefaultTestCase tc = org . evosuite . symbolic . SymbolicObserverTest . build_test_input_16 ( ) ; System . out . print...
org . junit . Assert . assertEquals ( 0 , branch_conditions . size ( ) )
getValueAfterBeanUpdate ( ) { com . vaadin . v7 . data . util . MethodProperty < java . lang . String > mp = new com . vaadin . v7 . data . util . MethodProperty < java . lang . String > ( testObject , "street" ) ; testObject . setStreet ( "Foo<sp>street" ) ; "<AssertPlaceHolder>" ; } getValue ( ) { if ( ( grid ) == nu...
org . junit . Assert . assertEquals ( "Foo<sp>street" , mp . getValue ( ) )
readData_IOException ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) ) . thenThrow ( new java . io . IOException ( "test<sp>exception"...
org . junit . Assert . assertEquals ( 0 , listLocationEvent . size ( ) , 0 )
testSequence3 ( ) { java . util . ArrayList listReturn = rx . Observable . range ( 0 , 2 ) . collect ( ( ) -> new java . util . ArrayList ( ) , ( list , i ) -> { list . add ( i ) ; } ) . toBlocking ( ) . first ( ) ; "<AssertPlaceHolder>" ; } last ( ) { return last ; }
org . junit . Assert . assertEquals ( listReturn , rx . Observable . range ( 0 , 2 ) . toList ( ) . toBlocking ( ) . last ( ) )
testPutDockerPZInUseToSchedulerPZShouldFail ( ) { com . vmware . photon . controller . model . resources . ResourcePoolService . ResourcePoolState createdPlacementZone = createPlacementZone ( "docker-placement-zone" , false ) ; "<AssertPlaceHolder>" ; createComputeState ( createdPlacementZone ) ; markSchedulerPlacement...
org . junit . Assert . assertNotNull ( createdPlacementZone )
main ( ) { final javax . tools . JavaCompiler compiler = javax . tools . ToolProvider . getSystemJavaCompiler ( ) ; final javax . tools . StandardJavaFileManager fm = compiler . getStandardFileManager ( null , null , StandardCharsets . UTF_8 ) ; final javax . tools . JavaCompiler . CompilationTask task = compiler . get...
org . junit . Assert . assertTrue ( task . call ( ) )
testParallelSaveAndSave ( ) { java . nio . file . Path savePath = java . nio . file . Files . createTempDirectory ( "savePath" ) ; org . cubedb . core . MultiCubeImpl c = new org . cubedb . core . MultiCubeImpl ( savePath . toString ( ) ) ; int numCubes = java . lang . Runtime . getRuntime ( ) . availableProcessors ( )...
org . junit . Assert . assertTrue ( ( allTime < ( saveTime1 + saveTime2 ) ) )
testDisabledWrappedOperation ( ) { org . apache . tuscany . sca . contribution . processor . ProcessorContext context = new org . apache . tuscany . sca . contribution . processor . ProcessorContext ( ) ; java . net . URL url = getClass ( ) . getResource ( "../xml/disabledwrapped-stockquote.wsdl" ) ; org . apache . tus...
org . junit . Assert . assertFalse ( op . isInputWrapperStyle ( ) )
testUpdateFailsWithLocationChange ( ) { ensureCreated ( ) ; org . kitesdk . data . Dataset < org . apache . avro . generic . GenericData . Record > dataset = repo . load ( org . kitesdk . data . spi . filesystem . NAMESPACE , org . kitesdk . data . spi . filesystem . NAME ) ; java . net . URI location = dataset . getDe...
org . junit . Assert . assertEquals ( location , repo . load ( org . kitesdk . data . spi . filesystem . NAMESPACE , org . kitesdk . data . spi . filesystem . NAME ) . getDescriptor ( ) . getLocation ( ) )
testIsSchemaAutoPropagate ( ) { org . talend . components . jdbc . tjdbcinput . TJDBCInputDefinition fixture = new org . talend . components . jdbc . tjdbcinput . TJDBCInputDefinition ( ) ; boolean result = fixture . isSchemaAutoPropagate ( ) ; "<AssertPlaceHolder>" ; } isSchemaAutoPropagate ( ) { return true ; }
org . junit . Assert . assertEquals ( true , result )
testPolicy_seq ( ) { java . lang . String sql = "" + ( ( ( "<sp>from<sp>every<sp>e1=syslog_stream[regex:find(\"UPDOWN\",<sp>op)]<sp>-><sp>" + "<sp>e2=syslog_stream[dims_hostname<sp>==<sp>e1.dims_hostname<sp>and<sp>regex:find(\"Abort\",<sp>op)]<sp>within<sp>1<sp>min<sp>" ) + "<sp>select<sp>e1.timestamp<sp>as<sp>timestam...
org . junit . Assert . assertTrue ( checked . get ( ) )
isActiveDecisionTableEditableIsReadOnly ( ) { final org . drools . workbench . screens . guided . dtable . client . widget . table . GuidedDecisionTableView . Presenter dtPresenter = makeDecisionTable ( ) ; final org . drools . workbench . screens . guided . dtable . client . widget . table . GuidedDecisionTablePresent...
org . junit . Assert . assertFalse ( presenter . isActiveDecisionTableEditable ( ) )
testLogsumFormulas ( ) { double betaWalkTT = - 2.0 ; double betaWalkTD = - 1.0 ; double cijTT = 10.0 ; double cjk1TT = 5.0 ; double cjk2TT = 2.0 ; double cjk3TT = 4.0 ; double cik1TT = cijTT + cjk1TT ; double cik2TT = cijTT + cjk2TT ; double cik3TT = cijTT + cjk3TT ; double cijTD = 500.0 ; double cjk1TD = 80.0 ; double...
org . junit . Assert . assertTrue ( ( Ai == Ai2 ) )
min_A$ ( ) { com . m3 . scalaflavor4j . Nil < java . lang . String > nil = com . m3 . scalaflavor4j . Nil . < java . lang . String > apply ( ) ; com . m3 . scalaflavor4j . SNum actual = nil . min ( ) ; "<AssertPlaceHolder>" ; } toInt ( ) { return value . intValue ( ) ; }
org . junit . Assert . assertThat ( actual . toInt ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 0 ) ) )
shouldEnrichTest ( ) { org . arquillian . cube . impl . client . enricher . HostPortTestEnricher hostPortTestEnricher = new org . arquillian . cube . impl . client . enricher . HostPortTestEnricher ( ) ; hostPortTestEnricher . cubeRegistryInstance = new org . jboss . arquillian . core . api . Instance < org . arquillia...
org . junit . Assert . assertThat ( testCase . port , org . hamcrest . CoreMatchers . is ( 9999 ) )
testZonderLoggerNameEnMarkerEnMessage ( ) { final org . apache . logging . log4j . core . impl . Log4jLogEvent log4jLogEvent = new org . apache . logging . log4j . core . impl . Log4jLogEvent ( "" , null , nl . bzk . brp . logging . log4j . BrpJsonLayoutTest . LOGGER_FQCN , org . apache . logging . log4j . Level . ERRO...
org . junit . Assert . assertNotNull ( serializable )
testMatchesWithNullHttpServiceReference ( ) { matcher = new org . eclipse . rap . rwt . osgi . internal . Matcher ( null , configuratorReference ) ; boolean matches = matcher . matches ( ) ; "<AssertPlaceHolder>" ; } matches ( ) { return ( matchesHttpService ( ) ) && ( matchesConfigurator ( ) ) ; }
org . junit . Assert . assertFalse ( matches )
testUpdateCalculatedMemberBlankCalculatedMemberSourceName ( ) { boolean result = true ; "<AssertPlaceHolder>" ; mondrian . olap . MondrianDef . CalculatedMember calculatedMember = getMockCalculatedMember ( ) ; org . pentaho . agilebi . modeler . models . annotations . util . MondrianSchemaHandler mondrianSchemaHandler ...
org . junit . Assert . assertTrue ( ( ( schemaDocument ) != null ) )
testSaveAndFindEmptyStepContext ( ) { org . springframework . batch . item . ExecutionContext ctx = new org . springframework . batch . item . ExecutionContext ( ) ; stepExecution . setExecutionContext ( ctx ) ; contextDao . saveExecutionContext ( stepExecution ) ; org . springframework . batch . item . ExecutionContex...
org . junit . Assert . assertEquals ( ctx , retrieved )
testToString ( ) { java . lang . String name = "TestName" ; org . drugis . addis . entities . Endpoint e = new org . drugis . addis . entities . Endpoint ( "e" , org . drugis . addis . entities . Endpoint . convertVarType ( Variable . Type . RATE ) ) ; e . setName ( name ) ; "<AssertPlaceHolder>" ; } toString ( ) { ret...
org . junit . Assert . assertEquals ( name , e . toString ( ) )
debieraMostrarTipoColportor ( ) { mx . edu . um . mateo . colportor . test . TipoColportorControllerTest . log . debug ( "Debiera<sp>mostrar<sp>TipoColportor" ) ; mx . edu . um . mateo . colportor . model . TipoColportor tipoColportor = new mx . edu . um . mateo . colportor . model . TipoColportor ( "test" , "A" ) ; ti...
org . junit . Assert . assertNotNull ( tipoColportor . getId ( ) )
findIPStartSLL ( ) { byte [ ] packet = new byte [ 20 ] ; net . ripe . hadoop . pcap . PcapReader xreader = new net . ripe . hadoop . pcap . PcapReader ( PcapReader . LinkType . LINUX_SLL ) ; byte [ ] sllAddressSourceLength = net . ripe . hadoop . pcap . PcapReaderUtil . convertShort ( 6 ) ; packet [ 4 ] = sllAddressSou...
org . junit . Assert . assertEquals ( 16 , xreader . findIPStart ( packet ) )
shouldHandleDuration ( ) { final java . time . Duration o = java . time . Duration . ZERO ; "<AssertPlaceHolder>" ; } serializeDeserialize ( org . apache . tinkerpop . shaded . jackson . databind . ObjectMapper , java . lang . Object , java . lang . Class ) { try ( final java . io . ByteArrayOutputStream stream = new j...
org . junit . Assert . assertEquals ( o , serializeDeserialize ( mapper , o , java . time . Duration . class ) )
testRead ( ) { final com . helger . schematron . xslt . ISchematronXSLTBasedResource aRes = com . helger . schematron . xslt . SchematronResourceSCH . fromFile ( new java . io . File ( "src/test/resources/issues/20180214/04-ESPD-Common-BR-rules.sch" ) ) ; aRes . setAllowForeignElements ( true ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertTrue ( aRes . isValidSchematron ( ) )
verifyIdentity ( ) { org . opennms . netmgt . bsm . service . model . functions . map . Identity ignore = new org . opennms . netmgt . bsm . service . model . functions . map . Identity ( ) ; for ( org . opennms . netmgt . bsm . service . model . Status eachStatus : org . opennms . netmgt . bsm . service . model . Stat...
org . junit . Assert . assertEquals ( eachStatus , ignore . map ( eachStatus ) . get ( ) )
test_setSizeLorg_eclipse_swt_graphics_Point ( ) { org . eclipse . swt . widgets . Button button = new org . eclipse . swt . widgets . Button ( coolBar , org . eclipse . swt . SWT . PUSH ) ; button . setText ( "foo" ) ; coolItem . setControl ( button ) ; org . eclipse . swt . graphics . Point size = new org . eclipse . ...
org . junit . Assert . assertEquals ( size2 , coolItem . getSize ( ) )
testRenew ( ) { access = new com . huawei . streaming . window . WindowRandomAccess ( service ) ; com . huawei . streaming . view . IDataCollection renew = access . renew ( ) ; "<AssertPlaceHolder>" ; } renew ( ) { return new com . huawei . streaming . window . WindowRelativeAccess ( service ) ; }
org . junit . Assert . assertEquals ( true , ( renew instanceof com . huawei . streaming . window . WindowRandomAccess ) )
testHammer ( ) { try ( org . apache . bookkeeper . client . MetadataUpdateLoopTest . NonDeterministicMockLedgerManager lm = new org . apache . bookkeeper . client . MetadataUpdateLoopTest . NonDeterministicMockLedgerManager ( ) ) { long ledgerId = 1234L ; int ensembleSize = 100 ; java . util . List < org . apache . boo...
org . junit . Assert . assertEquals ( reference . get ( ) . getValue ( ) . getEnsembleAt ( 0L ) , replacementBookies )
testComponentWidths ( ) { "<AssertPlaceHolder>" ; invocation . getComponentWidths ( ) . forEach ( org . junit . Assert :: assertNull ) ; } getRequiredComponentWidthCount ( ) { return ( getColumn ( ) . size ( ) ) + ( org . kie . workbench . common . dmn . api . definition . v1_1 . Relation . STATIC_COLUMNS ) ; }
org . junit . Assert . assertEquals ( invocation . getRequiredComponentWidthCount ( ) , invocation . getComponentWidths ( ) . size ( ) )
defaultValueChain1 ( ) { final java . lang . Object someObject = new java . lang . Object ( ) ; final org . jboss . msc . value . Value < java . lang . Object > value = new org . jboss . msc . value . DefaultValue < java . lang . Object > ( new org . jboss . msc . value . DefaultValue < java . lang . Object > ( new org...
org . junit . Assert . assertEquals ( 34L , value . getValue ( ) )
getAangifteAdreshoudingNOkTest ( ) { final java . lang . String code = "X" ; final java . lang . String resultNat = lo3StamtabelService . getAangifteAdreshouding ( code ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( code , resultNat )
getBoolean_test ( ) { pref . edit ( ) . putBoolean ( "boolean" , true ) . commit ( ) ; com . amazonaws . mobileconnectors . amazonmobileanalytics . internal . core . system . AndroidPreferences preferences = new com . amazonaws . mobileconnectors . amazonmobileanalytics . internal . core . system . AndroidPreferences (...
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . is ( true ) )
shouldReturnNewEditRelationIfBothHaveNoIdentifierAndSameSlaveGroupId ( ) { ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditRelation existingEditRelation = new ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditRelation ( null , null , null , null , null , null , null , n...
org . junit . Assert . assertThat ( replaced , org . hamcrest . CoreMatchers . is ( newEditRelation ) )
testProcessPatientDiscoveryDeferredReqQueue ( ) { gov . hhs . fha . nhinc . patientdiscovery . adapter . deferred . request . queue . AdapterPatientDiscoveryDeferredReqQueueProcess process = new gov . hhs . fha . nhinc . patientdiscovery . adapter . deferred . request . queue . AdapterPatientDiscoveryDeferredReqQueuePr...
org . junit . Assert . assertNotNull ( response )
testListTranslation ( ) { io . cdap . cdap . hive . serde . ObjectDeserializer translator = new io . cdap . cdap . hive . serde . ObjectDeserializer ( com . google . common . collect . Lists . newArrayList ( "dummy-name" ) , com . google . common . collect . Lists . newArrayList ( org . apache . hadoop . hive . serde2 ...
org . junit . Assert . assertEquals ( list , translator . deserialize ( list ) )
deveObterVersaoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastro retornoConsultaCadastro = new com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastro ( ) ; retornoConsultaCadastro . setVersao ( "3.10" ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( "3.10" , retornoConsultaCadastro . getVersao ( ) )
testVersion ( ) { int rc = run ( "--version" ) ; verify ( console ) . info ( contains ( "Kite<sp>version" ) , anyString ( ) ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . String ) { return new org . kitesdk . data . spi . predicates . TestRegisteredPredicateToFromString . Contains < java . lang . String > ( con...
org . junit . Assert . assertEquals ( 0 , rc )
shouldUpdateStringArrayPropertiesOnNodesUsingBatchInserter1 ( ) { org . neo4j . unsafe . batchinsert . BatchInserter inserter = org . neo4j . unsafe . batchinsert . internal . BatchInsertTest . globalInserter ; java . lang . String [ ] array1 = new java . lang . String [ ] { "1" } ; java . lang . String [ ] array2 = ne...
org . junit . Assert . assertThat ( inserter . getNodeProperties ( id1 ) . get ( "array" ) , org . hamcrest . CoreMatchers . equalTo ( array1 ) )
getNonExistentResource ( ) { org . xmldb . api . base . Collection collection = getCollection ( ) ; org . xmldb . api . base . Resource resource = collection . getResource ( "unknown.xml" ) ; "<AssertPlaceHolder>" ; } getResource ( long ) { if ( ( pos < 0 ) || ( pos >= ( resources . size ( ) ) ) ) { return null ; } fin...
org . junit . Assert . assertNull ( resource )
testCreateXPageSession ( ) { java . lang . String userName = org . openntf . domino . utils . Factory . getLocalServerName ( ) ; final long userHandle = com . ibm . domino . napi . c . NotesUtil . createUserNameList ( userName ) ; try { lotus . domino . Session xs = com . ibm . domino . napi . c . xsp . XSPNative . cre...
org . junit . Assert . assertEquals ( userName , xs . getEffectiveUserName ( ) )
testSetServiceMetrics ( ) { System . out . println ( ( ( getTestTraceHead ( "[CygnusHandler.setServiceMetrics]" ) ) + "<sp>-<sp>Given<sp>metrics<sp>are<sp>set" ) ) ; com . telefonica . iot . cygnus . handlers . CygnusHandlerTest . CygnusHandlerImpl ch = new com . telefonica . iot . cygnus . handlers . CygnusHandlerTest...
org . junit . Assert . assertEquals ( metrics , ch . getServiceMetrics ( ) )
testScriptingConfigurationAliased ( ) { java . lang . Boolean configurationAliasRegistered = false ; java . lang . Class configurationClass = it . geosolutions . geobatch . action . scripting . ScriptingConfiguration . class ; java . util . Iterator < java . util . Map . Entry < java . lang . String , java . lang . Cla...
org . junit . Assert . assertTrue ( configurationAliasRegistered )
testFetchByPrimaryKeyExisting ( ) { com . liferay . segments . model . SegmentsEntry newSegmentsEntry = addSegmentsEntry ( ) ; com . liferay . segments . model . SegmentsEntry existingSegmentsEntry = _persistence . fetchByPrimaryKey ( newSegmentsEntry . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) ...
org . junit . Assert . assertEquals ( existingSegmentsEntry , newSegmentsEntry )
givenSQLFileWithMultipleStatementsInOneLine_whenParse_thenGetTwoStatements ( ) { java . lang . String sqlContent = "CREATE<sp>TABLE<sp>`one`(id<sp>INTEGER);<sp>CREATE<sp>TABLE<sp>`two`(id<sp>INTEGER);" ; com . novoda . sqlite . impl . SQLFile sqlFile = givenSQLFileWhenParse ( sqlContent ) ; java . lang . String [ ] act...
org . junit . Assert . assertEquals ( actual . length , 2 )
shouldReturnFalseForLowerCaseLetterAfterUpperCaseLetter ( ) { boolean start = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . isWordStart ( "Aa" , 1 ) ; "<AssertPlaceHolder>" ; } isWordStart ( java . lang . String , int ) { checkNotNull ( entityName ) ; int length = entityName . length ( ) ;...
org . junit . Assert . assertEquals ( false , start )
given2DifferentValueTypesWithAutoValue_whenNotEqual_thenCorrect ( ) { com . baeldung . autovalue . AutoValueMoney m1 = com . baeldung . autovalue . AutoValueMoney . create ( "GBP" , 5000 ) ; com . baeldung . autovalue . AutoValueMoney m2 = com . baeldung . autovalue . AutoValueMoney . create ( "USD" , 5000 ) ; "<Assert...
org . junit . Assert . assertFalse ( m1 . equals ( m2 ) )