input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testAddPeerWithUnDeletedQueues ( ) { org . apache . hadoop . hbase . replication . ReplicationPeerConfig rpc1 = new org . apache . hadoop . hbase . replication . ReplicationPeerConfig ( ) ; rpc1 . setClusterKey ( KEY_ONE ) ; org . apache . hadoop . hbase . replication . ReplicationPeerConfig rpc2 = new org . apache . h...
org . junit . Assert . assertEquals ( 0 , queueStorage . getAllQueues ( serverName ) . size ( ) )
update ( ) { int size = 100 ; byte [ ] bytes = new byte [ size ] ; random . nextBytes ( bytes ) ; com . cetsoft . imcache . offheap . bytebuffer . Pointer pointer = buffer . store ( bytes ) ; byte [ ] expectedBytes = new byte [ size ] ; random . nextBytes ( expectedBytes ) ; pointer = buffer . update ( pointer , expect...
org . junit . Assert . assertArrayEquals ( expectedBytes , actualBytes )
testGetNextProducesFieldElement ( ) { byte [ ] seedBytes = new byte [ 32 ] ; new java . util . Random ( ) . nextBytes ( seedBytes ) ; dk . alexandra . fresco . framework . util . StrictBitVector seed = new dk . alexandra . fresco . framework . util . StrictBitVector ( seedBytes ) ; dk . alexandra . fresco . tools . mas...
org . junit . Assert . assertNotNull ( el )
getFunctieAdresTestOK ( ) { final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortAdresCode faCode = nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortAdresCode . B ; final nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . FunctieAdres expectedFa ...
org . junit . Assert . assertEquals ( expected , resultFa )
shouldConsiderTwoEquivalentObjectsEqual ( ) { com . mpatric . mp3agic . ID3v2UrlFrameData frameData1 = new com . mpatric . mp3agic . ID3v2UrlFrameData ( false , new com . mpatric . mp3agic . EncodedText ( ( ( byte ) ( 0 ) ) , com . mpatric . mp3agic . ID3v2UrlFrameDataTest . TEST_DESCRIPTION ) , com . mpatric . mp3agic...
org . junit . Assert . assertEquals ( frameData1 , frameData2 )
testVerbatim ( ) { com . gargoylesoftware . htmlunit . html . HtmlPage page = webClient . getPage ( ( ( webUrl ) + "faces/viewVerbatim.xhtml" ) ) ; java . lang . String text = page . asText ( ) ; text = text . substring ( ( ( text . indexOf ( "Hash='" ) ) + ( "Hash='" . length ( ) ) ) ) ; text = text . substring ( 0 , ...
org . junit . Assert . assertEquals ( text , text2 )
shouldHandleEmptyListWithSpaces ( ) { org . neo4j . kernel . impl . proc . ListConverter converter = new org . neo4j . kernel . impl . proc . ListConverter ( java . lang . String . class , NTString ) ; java . lang . String listString = "<sp>[<sp>]<sp>" ; org . neo4j . internal . kernel . api . procs . DefaultParameterV...
org . junit . Assert . assertThat ( converted , org . hamcrest . CoreMatchers . equalTo ( ntList ( emptyList ( ) , org . neo4j . kernel . impl . proc . NTString ) ) )
unprotectResponseTest ( ) { java . lang . String expectedResponse = new java . lang . String ( org . apache . commons . codec . binary . Base64 . decodeBase64 ( "eyJraWQiOiJ0ZXN0IiwicmVrIjp7Imp3ayI6eyJraWQiOiIwMzZhOTQ2MS01NDAxLTQzNTItYjQ0Ni02ZWNmNGQyNmUwOGEiLCJrdHkiOiJSU0EiLCJrZXlfb3BzIjpbImVuY3J5cHQiLCJ3cmFwS2V5Iiwidm...
org . junit . Assert . assertTrue ( expectedResponse . equals ( unprotectedResponse . body ( ) . string ( ) ) )
testMappedProgramRules ( ) { java . util . List < org . hisp . dhis . rules . models . Rule > rules = subject . toMappedProgramRules ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return messages . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , rules . size ( ) )
testGetContent ( ) { final elemental2 . dom . HTMLElement expectedContent = mock ( elemental2 . dom . HTMLElement . class ) ; when ( contentView . getElement ( ) ) . thenReturn ( expectedContent ) ; final elemental2 . dom . HTMLElement actualContent = dmnCard . getContent ( ) ; "<AssertPlaceHolder>" ; } getContent ( ) ...
org . junit . Assert . assertEquals ( expectedContent , actualContent )
testCertificateToDER ( ) { java . security . KeyPair testKeyPair = org . hyperledger . fabric . sdk . security . CryptoPrimitivesTest . crypto . keyGen ( ) ; java . lang . String certRequest = org . hyperledger . fabric . sdk . security . CryptoPrimitivesTest . crypto . generateCertificationRequest ( "common<sp>name" ,...
org . junit . Assert . assertTrue ( ( ( org . hyperledger . fabric . sdk . security . CryptoPrimitivesTest . crypto . certificateToDER ( certRequest ) . length ) > 0 ) )
test_InMemoryInvertedIndex ( ) { org . terrier . realtime . memory . MemoryInvertedIndex inverted = new org . terrier . realtime . memory . MemoryInvertedIndex ( new org . terrier . realtime . memory . MemoryLexicon ( ) , new org . terrier . realtime . memory . MemoryDocumentIndex ( ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( inverted )
testSetClientName ( ) { java . util . Set < redis . clients . jedis . HostAndPort > jedisClusterNode = new java . util . HashSet < redis . clients . jedis . HostAndPort > ( ) ; jedisClusterNode . add ( new redis . clients . jedis . HostAndPort ( "127.0.0.1" , 7379 ) ) ; java . lang . String clientName = "myAppName" ; r...
org . junit . Assert . assertEquals ( clientName , jedis . clientGetname ( ) )
connection_get_statement_02 ( ) { org . apache . jena . jdbc . connections . JenaConnection conn = this . getConnection ( ) ; conn . close ( ) ; "<AssertPlaceHolder>" ; conn . createStatement ( ) ; } isClosed ( ) { return ( this . ds ) == null ; }
org . junit . Assert . assertTrue ( conn . isClosed ( ) )
return_empty_list_iterator_java ( ) { java . util . ListIterator < java . lang . String > strings = java . util . Collections . emptyListIterator ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( strings . hasNext ( ) )
testIncrementalFeed ( ) { java . util . Set < com . google . inject . Module > modules = new java . util . HashSet < com . google . inject . Module > ( ) ; org . onebusaway . gtfs_realtime . exporter . GtfsRealtimeExporterModule . addModuleAndDependencies ( modules ) ; org . onebusaway . guice . jsr250 . JSR250Module ....
org . junit . Assert . assertTrue ( ( ( afterCount - beforeCount ) > 5 ) )
buildInt ( ) { final com . google . common . collect . TreeMultimap < java . lang . Integer , java . lang . Integer > elements = com . google . common . collect . TreeMultimap . create ( ) ; for ( int i = 0 ; i < ( DOCS ) ; i ++ ) { elements . put ( ( i / 2 ) , i ) ; } final com . yandex . yoctodb . util . mutable . In...
org . junit . Assert . assertTrue ( ( result instanceof com . yandex . yoctodb . util . immutable . impl . IntIndexToIndexMultiMap ) )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . TeamRenameEvent event = new com . github . seratch . jslack . api . model . event . TeamRenameEvent ( ) ; java . lang . String g...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
equalsLogically_differentHierarchy ( ) { org . pentaho . agilebi . modeler . models . annotations . CreateAttribute left = buildCreateAttributeAnnotations ( "sales" , "sales" , "Money" , null , null , false ) ; org . pentaho . agilebi . modeler . models . annotations . CreateAttribute right = buildCreateAttributeAnnota...
org . junit . Assert . assertFalse ( left . equalsLogically ( right ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . dynamic . data . lists . model . DDLRecordSetVersion newDDLRecordSetVersion = addDDLRecordSetVersion ( ) ; com . liferay . dynamic . data . lists . model . DDLRecordSetVersion existingDDLRecordSetVersion = _persistence . findByPrimaryKey ( newDDLRecordSetVersion . getP...
org . junit . Assert . assertEquals ( existingDDLRecordSetVersion , newDDLRecordSetVersion )
shouldReturnFalseWhenCurrentVersionCannotBeResolved ( ) { SystemProperty . applicationVersion . set ( "" ) ; org . togglz . appengine . activation . ApplicationVersionActivationStrategy strategy = new org . togglz . appengine . activation . ApplicationVersionActivationStrategy ( ) ; org . togglz . core . repository . F...
org . junit . Assert . assertFalse ( active )
testIdentity ( ) { final com . annimon . stream . function . UnaryOperator < java . lang . Integer > op = UnaryOperator . Util . identity ( ) ; for ( java . lang . Integer value : com . annimon . stream . function . UnaryOperatorTest . data ) { "<AssertPlaceHolder>" ; } } apply ( A ) { return ( ( R ) ( value ) ) ; }
org . junit . Assert . assertEquals ( value , op . apply ( value ) )
setServerUrlTestHappyPath ( ) { com . spaceheroes . util . SalesforceConfig config = new com . spaceheroes . util . SalesforceConfig ( "username" , "password" , "login.salesforce.com" ) ; "<AssertPlaceHolder>" ; } getServerUrl ( ) { return serverUrl ; }
org . junit . Assert . assertEquals ( "login.salesforce.com" , config . getServerUrl ( ) )
testGetCompletedStepsBetweenDates ( ) { com . onboard . service . collaboration . impl . test . Mockito . doReturn ( getAListOfSampleSteps ( 3 ) ) . when ( mockStepMapper ) . selectByExample ( com . onboard . service . collaboration . impl . test . Mockito . any ( com . onboard . domain . mapper . model . StepExample ....
org . junit . Assert . assertNotNull ( step . getProject ( ) )
type ( ) { org . openl . OpenL openl = org . openl . OpenL . getInstance ( OpenL . OPENL_J_NAME ) ; org . openl . syntax . code . IParsedCode result = new org . openl . engine . OpenLParseManager ( openl ) . parseSource ( new org . openl . source . impl . StringSourceCodeModule ( "String" , "" ) , SourceType . TYPE ) ;...
org . junit . Assert . assertEquals ( 0 , result . getErrors ( ) . length )
testCreateFactoryConfig ( ) { org . osgi . service . cm . Configuration config = cm . createFactoryConfiguration ( "test" ) ; "<AssertPlaceHolder>" ; } getFactoryPid ( ) { return getFactoryPid ( true ) ; }
org . junit . Assert . assertEquals ( "test" , config . getFactoryPid ( ) )
calendarUtils_getFirstDayOfYear_calendarAsFirstDayOfYearReturned ( ) { java . util . Calendar testInput = java . util . Calendar . getInstance ( ) ; testInput . set ( 2014 , Calendar . MARCH , 10 ) ; java . util . Calendar expResult = java . util . Calendar . getInstance ( ) ; expResult . set ( 2014 , Calendar . JANUAR...
org . junit . Assert . assertEquals ( expResult , result )
encodeSubmitSmWithShortMessageAsMax255Bytes ( ) { com . cloudhopper . smpp . transcoder . SubmitSm pdu0 = new com . cloudhopper . smpp . transcoder . SubmitSm ( ) ; java . lang . String text255 = "Lorem<sp>ipsum<sp>dolor<sp>sit<sp>amet,<sp>consectetur<sp>adipiscing<sp>elit.<sp>Vestibulum<sp>in<sp>orci<sp>magna.<sp>Etia...
org . junit . Assert . assertEquals ( expectedHex , actualHex )
parseEnableSamplerForDurationMinutesRegExp ( ) { final org . metricssampler . daemon . commands . ControlCommand expected = mock ( org . metricssampler . daemon . commands . ControlCommand . class ) ; when ( factory . enableSamplerForDuration ( "^what.*ever.+$" , 300L ) ) . thenReturn ( expected ) ; final org . metrics...
org . junit . Assert . assertSame ( expected , result )
shouldCopyISToOSNoClose ( ) { java . lang . String data = "data" ; byte [ ] bytes = data . getBytes ( ) ; jscover . util . ByteArrayOutputStream baos = new jscover . util . ByteArrayOutputStream ( ) ; ioUtils . copyNoClose ( new jscover . util . ByteArrayInputStream ( bytes ) , baos ) ; "<AssertPlaceHolder>" ; } copyNo...
org . junit . Assert . assertThat ( new java . lang . String ( baos . toByteArray ( ) ) , org . hamcrest . CoreMatchers . equalTo ( data ) )
testWithCustomMonitorByClass ( ) { java . lang . Object actual = new com . picocontainer . PicoBuilder ( ) . withMonitor ( com . picocontainer . monitors . ConsoleComponentMonitor . class ) . build ( ) ; com . picocontainer . monitors . ConsoleComponentMonitor cm = new com . picocontainer . monitors . ConsoleComponentM...
org . junit . Assert . assertEquals ( toXml ( expected ) , toXml ( actual ) )
testMetricsRegistryIllegalMetricNames ( ) { final org . apache . hadoop . metrics2 . lib . MetricsRegistry r = new org . apache . hadoop . metrics2 . lib . MetricsRegistry ( "withnewline6\n" 8 ) ; r . newCounter ( "c1" , "c1<sp>desc" , 1 ) ; r . newGauge ( "g1" , "g1<sp>desc" , 1 ) ; r . newQuantiles ( "withnewline6\n"...
org . junit . Assert . assertEquals ( "badcount<sp>2" 3 , 3 , r . metrics ( ) . size ( ) )
testCosineDistance ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] [ ] { new double [ ] { - 0.3 , - 0.2 , - 0.1 } , new double [ ] { 0 , 0.1 , 0.2 } } ) ; org . nd4j . linalg . api . ndarray . INDArray label = org . nd4j . linalg . factory . Nd4j...
org . junit . Assert . assertEquals ( exp , out )
testWithNameWhenSameName ( ) { final com . allanbank . mongodb . bson . element . MongoTimestampElement element = new com . allanbank . mongodb . bson . element . MongoTimestampElement ( "foo" , 1010101 ) ; "<AssertPlaceHolder>" ; } withName ( java . lang . String ) { if ( getName ( ) . equals ( name ) ) { return this ...
org . junit . Assert . assertSame ( element , element . withName ( "foo" ) )
testAssertionError ( ) { org . spf4j . base . TestTimeSource . setTimeStream ( 0L ) ; "<AssertPlaceHolder>" ; try { org . spf4j . base . TimeSource . nanoTime ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . AssertionError e ) { } } nanoTime ( ) { return org . spf4j . base . TimeSource . TIMESUPP . getAs...
org . junit . Assert . assertEquals ( 0L , org . spf4j . base . TimeSource . nanoTime ( ) )
testSingleFile ( ) { final org . apache . hadoop . fs . Path sub1 = new org . apache . hadoop . fs . Path ( inputPath , "dir1" ) ; fs . mkdirs ( sub1 ) ; java . lang . String singleFileName = "a" ; org . apache . hadoop . tools . TestHadoopArchives . createFile ( inputPath , fs , sub1 . getName ( ) , singleFileName ) ;...
org . junit . Assert . assertEquals ( originalPaths , harPaths )
testGetWorkerAddress_whenWorkerAddressIsNull ( ) { operation = new com . hazelcast . simulator . coordinator . operations . FailureOperation ( "FailureOperationTest" , WORKER_EXCEPTION , null , null , cause ) ; "<AssertPlaceHolder>" ; } getWorkerAddress ( ) { if ( ( workerAddress ) == null ) { return null ; } return co...
org . junit . Assert . assertNull ( operation . getWorkerAddress ( ) )
testIsMultipart ( ) { when ( httpServletRequest . getContentType ( ) ) . thenReturn ( "multipart/form-data" ) ; when ( httpServletRequest . getMethod ( ) ) . thenReturn ( "POST" ) ; context . init ( servletContext , httpServletRequest , httpServletResponse ) ; "<AssertPlaceHolder>" ; } isMultipart ( ) { return org . ap...
org . junit . Assert . assertEquals ( true , context . isMultipart ( ) )
testGetValue ( ) { final org . drools . workbench . screens . guided . dtable . client . widget . table . columns . dom . datepicker . DatePickerSingletonDOMElementFactory factory = spy ( makeFactory ( ) ) ; final java . util . Date date = mock ( java . util . Date . class ) ; final java . util . Date convertedDate = m...
org . junit . Assert . assertEquals ( convertedDate , actualDate )
getEffectiveDomainCreatePermissions_withExtId ( ) { authenticateSystemResource ( ) ; final com . acciente . oacc . DomainCreatePermission domCreatePerm_superuser = com . acciente . oacc . DomainCreatePermissions . getInstance ( com . acciente . oacc . DomainPermissions . getInstance ( DomainPermissions . SUPER_USER ) )...
org . junit . Assert . assertThat ( domainCreatePermissions_post , org . hamcrest . CoreMatchers . is ( domainCreatePermissions_pre ) )
testConvertBlank ( ) { java . lang . Byte result = underTest . convert ( "<sp>" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( val...
org . junit . Assert . assertNull ( result )
testGetTaskAttachmentWithNullParameters ( ) { int historyLevel = processEngineConfiguration . getHistoryLevel ( ) . getId ( ) ; if ( historyLevel > ( org . camunda . bpm . engine . impl . cfg . ProcessEngineConfigurationImpl . HISTORYLEVEL_NONE ) ) { org . camunda . bpm . engine . task . Attachment attachment = taskSer...
org . junit . Assert . assertNull ( attachment )
testGetStrands ( ) { org . openscience . cdk . interfaces . IPDBPolymer pdbPolymer = ( ( org . openscience . cdk . interfaces . IPDBPolymer ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IStrand oStrand1 = pdbPolymer . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IStrand . c...
org . junit . Assert . assertEquals ( strands , pdbPolymer . getStrands ( ) )
testFieldLong ( ) { @ org . simpleflatmapper . reflect . test . asm . SuppressWarnings ( "unchecked" ) org . simpleflatmapper . reflect . primitive . LongGetter < org . simpleflatmapper . test . beans . DbPrimitiveObjectFields > getter = ( ( org . simpleflatmapper . reflect . primitive . LongGetter < org . simpleflatma...
org . junit . Assert . assertEquals ( 35L , getter . getLong ( objectField ) )
testVerifyDelegates ( ) { java . security . cert . X509Certificate cert = mock ( java . security . cert . X509Certificate . class ) ; org . jscep . client . verification . CertificateVerifier delegate = mock ( org . jscep . client . verification . CertificateVerifier . class ) ; when ( delegate . verify ( cert ) ) . th...
org . junit . Assert . assertTrue ( verifier . verify ( cert ) )
testGetSystemProperty ( ) { java . lang . String value = "value" ; java . lang . String prop = "prop" ; java . lang . System . setProperty ( ( ( ( com . vaadin . server . DefaultDeploymentConfigurationTest . class . getPackage ( ) . getName ( ) ) + '.' ) + prop ) , value ) ; com . vaadin . server . DefaultDeploymentCon...
org . junit . Assert . assertEquals ( value , config . getSystemProperty ( prop ) )
primFloatValidationShouldWork ( ) { when ( context . getParameter ( "param1" ) ) . thenReturn ( "blah" ) ; create ( "primFloatParam" ) . invoke ( mockController , context ) ; verify ( mockController ) . primFloatParam ( 0 ) ; "<AssertPlaceHolder>" ; } hasFieldViolation ( java . lang . String ) { return ! ( this . getFi...
org . junit . Assert . assertTrue ( validation . hasFieldViolation ( "param1" ) )
testArchiveIncludesSubmoduleDirectory ( ) { writeTrashFile ( "a" , "a<sp>file<sp>with<sp>content!" ) ; writeTrashFile ( "c" , "after<sp>submodule" ) ; git . add ( ) . addFilepattern ( "a" ) . call ( ) ; git . add ( ) . addFilepattern ( "c" ) . call ( ) ; git . commit ( ) . setMessage ( "c" 0 ) . call ( ) ; git . submod...
org . junit . Assert . assertArrayEquals ( expect , actual )
testClampLatLonWithSourceWithinExtents ( ) { gov . nasa . worldwind . geom . LatLon source = new gov . nasa . worldwind . geom . LatLon ( gov . nasa . worldwind . geom . Angle . fromDegrees ( ( - 77.345 ) ) , gov . nasa . worldwind . geom . Angle . fromDegrees ( 12.56 ) ) ; gov . nasa . worldwind . geom . Sector extent...
org . junit . Assert . assertEquals ( source , result )
testPacketFilterCompareSuccessOnNonEmptyPayload ( ) { org . kaazing . k3po . pcap . converter . internal . filter . Filter pf = new org . kaazing . k3po . pcap . converter . internal . filter . NonEmptyDestPortTcpPacketFilter ( 53 ) ; org . kaazing . k3po . pcap . converter . internal . packet . Packet p1 = new org . k...
org . junit . Assert . assertTrue ( pf . passesFilter ( p1 ) )
testValidate_default ( ) { java . lang . Class < ? > [ ] groups = groupEmpty ; com . github . mygreen . supercsv . validation . CsvBindingErrors bindingErrors = new com . github . mygreen . supercsv . validation . CsvBindingErrors ( com . github . mygreen . supercsv . validation . beanvalidation . CsvBeanValidatorTest ...
org . junit . Assert . assertThat ( messages )
testContainsRunContainer_ExcludeSuperSet ( ) { org . roaringbitmap . Container rc = new org . roaringbitmap . RunContainer ( ) . add ( 0 , 10 ) ; org . roaringbitmap . Container superset = new org . roaringbitmap . RunContainer ( ) . add ( 0 , 20 ) ; "<AssertPlaceHolder>" ; } contains ( int ) { throw new java . lang . ...
org . junit . Assert . assertFalse ( rc . contains ( superset ) )
testGetCustomUITemplateByCrisisIDAndAttributeID ( ) { qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestCustomUiTemplateResourceFacadeImp . entityManager . getTransaction ( ) . begin ( ) ; java . util . List < qa . qcri . aidr . dbmanager . dto . CustomUiTemplateDTO > result = qa . qcri . aidr . dbmanage...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) >= 1 ) )
isHomingEnabledShouldBeFalseIfNotSet ( ) { "<AssertPlaceHolder>" ; } isHomingEnabled ( ) { boolean isHomingEnabled = false ; try { isHomingEnabled = backend . getController ( ) . getFirmwareSettings ( ) . isHomingEnabled ( ) ; } catch ( com . willwinder . universalgcodesender . firmware . FirmwareSettingsException igno...
org . junit . Assert . assertFalse ( target . isHomingEnabled ( ) )
testEquals ( ) { org . jfree . chart . plot . CombinedRangeCategoryPlot plot1 = createPlot ( ) ; org . jfree . chart . plot . CombinedRangeCategoryPlot plot2 = createPlot ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( o instanceof com . mysql . fabric . Server ) ) { return false ; } com . my...
org . junit . Assert . assertTrue ( plot1 . equals ( plot2 ) )
roundTripOfClockIntervalCollection ( ) { net . time4j . range . ClockInterval i1 = net . time4j . range . ClockInterval . between ( net . time4j . PlainTime . of ( 20 , 45 , 30 ) , net . time4j . PlainTime . of ( 24 ) ) ; net . time4j . range . ClockInterval i2 = net . time4j . range . ClockInterval . between ( net . t...
org . junit . Assert . assertThat ( windows , org . hamcrest . CoreMatchers . is ( ser ) )
testTodoRepository ( ) { todoRepository . deleteAll ( ) ; io . github . javageeks . mase . model . Todo todo = new io . github . javageeks . mase . model . Todo ( ) ; todo . setUserId ( "1" ) ; todo . setTitle ( "Todo1" ) ; todo . setDescription ( "Todo1<sp>for<sp>user1" ) ; todo . setStatus ( false ) ; todoRepository ...
org . junit . Assert . assertEquals ( 1 , todos . size ( ) )
testGetErrorMessage ( ) { final java . lang . String errorMessage = mIsNumber . getErrorMessage ( mActivity ) ; "<AssertPlaceHolder>" ; } getErrorMessage ( android . content . Context ) { return context . getString ( R . string . formvalidations_not_email ) ; }
org . junit . Assert . assertNotNull ( errorMessage )
testSeparatorInArray ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "test" , "names" , "<names:{n<sp>|<sp>case<sp><n>};<sp>separator=\",<sp>\">" ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; st . add ( "names" , new j...
org . junit . Assert . assertEquals ( expected , result )
testRemoveAllElements ( ) { v . add ( org . apache . tools . ant . util . VectorSetTest . O ) ; v . removeAllElements ( ) ; "<AssertPlaceHolder>" ; } size ( ) { if ( isReference ( ) ) { return getRef ( ) . size ( ) ; } dieOnCircularReference ( ) ; return streamArchives ( ) . mapToInt ( ArchiveFileSet :: size ) . sum ( ...
org . junit . Assert . assertEquals ( 0 , v . size ( ) )
testAssertion ( ) { org . semanticweb . owlapi . util . MaximumModalDepthFinder testsubject = new org . semanticweb . owlapi . util . MaximumModalDepthFinder ( ) ; java . lang . Integer i = object . accept ( testsubject ) ; "<AssertPlaceHolder>" ; } accept ( java . util . stream . Stream ) { org . semanticweb . owlapi ...
org . junit . Assert . assertEquals ( expected , i )
testGetEvaluatedPartitionsStatic ( ) { java . util . List < com . nextdoor . bender . partition . PartitionSpec > partitionSpecs = new java . util . ArrayList < com . nextdoor . bender . partition . PartitionSpec > ( 1 ) ; com . nextdoor . bender . partition . PartitionSpec spec = new com . nextdoor . bender . partitio...
org . junit . Assert . assertEquals ( expected , actual )
testNumDimensions ( ) { final double [ ] initial = new double [ ] { 5.3 , 2.6 , 3.1 , - 852.1 } ; final net . imglib2 . RealPoint p1 = new net . imglib2 . RealPoint ( initial ) ; "<AssertPlaceHolder>" ; } numDimensions ( ) { return distrib . numDimensions ( ) ; }
org . junit . Assert . assertEquals ( 4 , p1 . numDimensions ( ) )
testCase75 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase75 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , branch_conditions . size ( ) )
testShouldProcessIfAnyPatternIsGiven ( ) { when ( propertyChain . getProperty ( ( ( io . tracee . configuration . PropertiesBasedTraceeFilterConfiguration . TRACEE_DEFAULT_PROFILE_PREFIX ) + ( io . tracee . configuration . AsyncDispatch . name ( ) ) ) ) ) . thenReturn ( "a" ) ; "<AssertPlaceHolder>" ; } shouldProcessCo...
org . junit . Assert . assertTrue ( unit . shouldProcessContext ( io . tracee . configuration . AsyncDispatch ) )
testExtendPolicy ( ) { org . apache . eagle . alert . engine . coordinator . PolicyDefinition policyDefinition = new org . apache . eagle . alert . engine . coordinator . PolicyDefinition ( ) ; policyDefinition . setName ( "test-extend-policy" ) ; policyDefinition . setInputStreams ( org . apache . eagle . alert . engi...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testGetPermissionProviderDisabled2 ( ) { org . apache . jackrabbit . oak . spi . security . ConfigurationParameters params = org . apache . jackrabbit . oak . spi . security . ConfigurationParameters . of ( CugConstants . PARAM_CUG_ENABLED , false , CugConstants . PARAM_CUG_SUPPORTED_PATHS , "/content" ) ; org . apache...
org . junit . Assert . assertSame ( org . apache . jackrabbit . oak . spi . security . authorization . permission . EmptyPermissionProvider . getInstance ( ) , pp )
testFilter_NOT_ALL ( ) { final org . eclipse . jgit . revwalk . RevCommit a = commit ( ) ; final org . eclipse . jgit . revwalk . RevCommit b = commit ( a ) ; final org . eclipse . jgit . revwalk . RevCommit c = commit ( b ) ; rw . setRevFilter ( org . eclipse . jgit . revwalk . filter . NotRevFilter . create ( RevFilt...
org . junit . Assert . assertNull ( rw . next ( ) )
testComplexSerialization ( ) { final xapi . model . content . ModelContent content = xapi . model . X_Model . create ( xapi . model . content . ModelContent . class ) ; final long time = java . lang . System . currentTimeMillis ( ) ; content . setText ( "Hello<sp>World" ) ; content . setTime ( time ) ; content . setRel...
org . junit . Assert . assertEquals ( content , asModel )
testEvaluate ( ) { org . apache . commons . functor . Predicate < java . lang . Object > p = new org . apache . commons . functor . adapter . NullaryPredicatePredicate < java . lang . Object > ( org . apache . commons . functor . core . Constant . TRUE ) ; "<AssertPlaceHolder>" ; } test ( java . lang . Float ) { return...
org . junit . Assert . assertTrue ( p . test ( null ) )
testGoodDesc ( ) { org . apache . kylin . cube . model . validation . rule . FunctionRule rule = new org . apache . kylin . cube . model . validation . rule . FunctionRule ( ) ; java . io . File f = new java . io . File ( ( ( org . apache . kylin . common . util . LocalFileMetadataTestCase . LOCALMETA_TEST_DATA ) + "/c...
org . junit . Assert . assertTrue ( ( ( vContext . getResults ( ) . length ) == 0 ) )
testValidateFunctionWithTwoAndThreeArguments ( ) { net . objecthunter . exp4j . Expression exp = new net . objecthunter . exp4j . ExpressionBuilder ( "gamma(x,<sp>beta(y,<sp>h),<sp>z)" ) . variables ( "x" , "y" , "z" , "h" ) . functions ( gamma , beta ) . build ( ) ; net . objecthunter . exp4j . ValidationResult result...
org . junit . Assert . assertTrue ( result . isValid ( ) )
testRenderImports ( ) { final java . lang . String expected = com . speedment . common . codegen . util . Formatting . separate ( nl ( ) , "import<sp>java.util.Objects;" , "import<sp>static<sp>java.util.Objects.equals;" , "import<sp>static<sp>java.util.Objects.requireNonNull;" , "" , "" ) ; final java . lang . String a...
org . junit . Assert . assertEquals ( expected , actual )
buildEmpty ( ) { "<AssertPlaceHolder>" ; } build ( ) { java . util . List < org . phenotips . rest . model . Link > links = new java . util . LinkedList ( ) ; if ( this . subresource ) { return buildForSecondaryResource ( ) ; } if ( ( this . baseResource ) != null ) { links . add ( this . getActionableLinkToSelf ( ) ) ...
org . junit . Assert . assertTrue ( this . component . build ( ) . isEmpty ( ) )
testGetImport ( ) { final org . kie . workbench . common . dmn . api . definition . v1_1 . Import anImport = modelsIndex . getImport ( includedModel ) ; "<AssertPlaceHolder>" ; } getImport ( org . kie . workbench . common . dmn . client . editors . included . IncludedModel ) { return includedModelsIndex . getImport ( r...
org . junit . Assert . assertEquals ( this . anImport , anImport )
testGetDoublePosition ( ) { final net . imglib2 . TestAbstractRealLocalizable . AbstractRealLocalizableImpl x = new net . imglib2 . TestAbstractRealLocalizable . AbstractRealLocalizableImpl ( 2 ) ; final double [ ] p = new double [ ] { 1.1 , 2.2 } ; x . localize ( p ) ; for ( int i = 0 ; i < 2 ; i ++ ) { "<AssertPlaceH...
org . junit . Assert . assertEquals ( x . getDoublePosition ( i ) , p [ i ] , 0 )
testParser1 ( ) { java . util . Calendar ref = java . util . Calendar . getInstance ( java . util . TimeZone . getTimeZone ( "GMT+2:00" ) ) ; ref . set ( 1997 , 6 , 16 , 19 , 20 , 30 ) ; ref . set ( Calendar . MILLISECOND , 45 ) ; java . util . Calendar cal = org . nuxeo . ecm . automation . client . model . DateParser...
org . junit . Assert . assertEquals ( ref . getTime ( ) , cal . getTime ( ) )
CompareNumberOfDependenciesBetweenSoftwareUnits_domain_presentation ( ) { java . lang . String fromUnit = "domain" ; java . lang . String toUnit = "presentation" ; int numberOfDependencies = getNumberofDependenciesBetweenSoftwareUnits ( fromUnit , toUnit ) ; "<AssertPlaceHolder>" ; } getNumberofDependenciesBetweenSoftw...
org . junit . Assert . assertTrue ( ( numberOfDependencies == 16 ) )
testExonOverlapNoFrameshiftOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946843\t.\tN\t<CNV>\t.\t.\tSVTYPE=CNV;END=58946946" ) ; final java . lang . String expected = "1\t58946843\t.\tN\t<CNV>\t.\t.\tEND=58946946;" + ( "SVANN=copy_number_change&structural_variant&coding...
org . junit . Assert . assertEquals ( expected , actual )
getcwd ( ) { java . lang . String propCwd = java . lang . System . getProperty ( "user.dir" ) ; "<AssertPlaceHolder>" ; } getcwd ( ) { java . lang . String propCwd = java . lang . System . getProperty ( "user.dir" ) ; org . junit . Assert . assertEquals ( propCwd , jnr . posix . ProcessTest . posix . getcwd ( ) ) ; }
org . junit . Assert . assertEquals ( propCwd , jnr . posix . ProcessTest . posix . getcwd ( ) )
canUseINOperatorWithQueryParams ( ) { try ( org . nuxeo . ecm . automation . OperationContext ctx = new org . nuxeo . ecm . automation . OperationContext ( session ) ) { java . util . Map < java . lang . String , java . lang . Object > params = new java . util . HashMap < java . lang . String , java . lang . Object > (...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testSetterSuperInterface ( ) { net . enilink . composition . properties . test . SimplePropertiesCompositionTestCase . Chain chain = objectFactory . createObject ( net . enilink . composition . properties . test . SimplePropertiesCompositionTestCase . Chain . class ) ; chain . valueSetterSuperInterface ( 15 ) ; "<Asser...
org . junit . Assert . assertEquals ( chain . valueSetterSuperInterface ( ) , 15 )
basicTest ( ) { final org . opendaylight . mdsal . binding . generator . impl . GeneratedClassLoadingStrategy loading = getTCCLClassLoadingStrategy ( ) ; final org . opendaylight . mdsal . binding . dom . codec . impl . BindingNormalizedNodeCodecRegistry codecRegistry = mock ( org . opendaylight . mdsal . binding . dom...
org . junit . Assert . assertNull ( bindingMountPointAdapter . getIdentifier ( ) )
testSignalBusinessKeyPayload ( ) { java . lang . String businessKey = "aBusinessKey" ; runtimeService . startProcessInstanceByKey ( "throwBusinessKeyPayloadSignal" , businessKey ) ; org . camunda . bpm . engine . runtime . ProcessInstance catchingPI = runtimeService . createProcessInstanceQuery ( ) . singleResult ( ) ;...
org . junit . Assert . assertEquals ( businessKey , catchingPI . getBusinessKey ( ) )
testResponse200OnGetWithRetryable ( ) { com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl jsonWebServiceClientImpl = new com . liferay . petra . json . web . service . client . internal . JSONWebServiceClientImpl ( ) ; java . util . Map < java . lang . String , java . lang . Ob...
org . junit . Assert . assertTrue ( json , json . contains ( SimulatorConstants . HTTP_PARAMETER_RESPOND_WITH_STATUS ) )
testExists ( ) { java . lang . String dummyUser = "user" ; dataSource . insert ( dummyUser ) ; "<AssertPlaceHolder>" ; } exists ( java . lang . String ) { if ( ( dataSource ) == null ) { throw new java . lang . Exception ( "Should<sp>not<sp>call<sp>exists<sp>if<sp>the<sp>data<sp>source<sp>hasn't<sp>been<sp>created" ) ;...
org . junit . Assert . assertTrue ( dataSource . exists ( dummyUser ) )
testDeflatedBase64encoded ( ) { java . lang . String authNRequest = com . onelogin . saml2 . util . Util . getFileAsString ( "data/requests/authn_request.xml" ) ; java . lang . String deflatedEncodedAuthNRequest = com . onelogin . saml2 . util . Util . getFileAsString ( "data/requests/authn_request.xml.deflated.base64"...
org . junit . Assert . assertThat ( com . onelogin . saml2 . util . Util . deflatedBase64encoded ( authNRequest ) . toString ( ) , org . hamcrest . CoreMatchers . equalTo ( deflatedEncodedAuthNRequest . toString ( ) ) )
test_set_1 ( ) { org . trie4j . util . FastBitSet bs = new org . trie4j . util . FastBitSet ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { bs . set ( i ) ; "<AssertPlaceHolder>" ; } } get ( java . lang . String ) { int id = trie . getTermId ( text ) ; if ( id < 0 ) return null ; return ( ( T ) ( values [ id ] ) ) ; }
org . junit . Assert . assertTrue ( bs . get ( i ) )
testGetState ( ) { parameters . put ( PropertyHandler . FLOW_STATE , new org . oscm . app . v2_0 . data . Setting ( PropertyHandler . FLOW_STATE , FlowState . ACTIVATION_REQUESTED . name ( ) ) ) ; propertyHandler = new org . oscm . app . aws . controller . PropertyHandler ( settings ) ; org . oscm . app . aws . data . ...
org . junit . Assert . assertEquals ( FlowState . ACTIVATION_REQUESTED , state )
junit4_class_should_return_true ( ) { org . eclipse . jdt . core . IMethod method = new junit . extensions . eclipse . quick . IMethodMockBuilder ( ) . addTestAnnotation ( ) . build ( ) ; org . eclipse . jdt . core . IType result = new junit . extensions . eclipse . quick . ITypeMockBuilder ( ) . addMethod ( method ) ....
org . junit . Assert . assertThat ( junit . extensions . eclipse . quick . JavaTypes . isTest ( result ) , org . hamcrest . CoreMatchers . is ( true ) )
testNullConversion ( ) { "<AssertPlaceHolder>" ; } convertToModel ( java . lang . Enum , java . lang . Class , java . util . Locale ) { if ( value == null ) { return null ; } return value . toString ( ) ; }
org . junit . Assert . assertEquals ( null , converter . convertToModel ( null , java . util . Date . class , null ) )
testEqualsIgnoresOrder ( ) { ca . uhn . fhir . model . api . TagList tagList1 = new ca . uhn . fhir . model . api . TagList ( ) ; tagList1 . addTag ( null , "Dog" , "Puppies" ) ; tagList1 . addTag ( "http://foo" , "Cat" , "Kittens" ) ; ca . uhn . fhir . model . api . TagList tagList2 = new ca . uhn . fhir . model . api...
org . junit . Assert . assertEquals ( tagList1 , tagList2 )
testSetStrandName_String ( ) { org . openscience . cdk . interfaces . IStrand oStrand = ( ( org . openscience . cdk . interfaces . IStrand ) ( newChemObject ( ) ) ) ; oStrand . setStrandName ( "A" ) ; "<AssertPlaceHolder>" ; } getStrandName ( ) { return strandName ; }
org . junit . Assert . assertEquals ( "A" , oStrand . getStrandName ( ) )
testServerPushRequestResponse ( ) { servletEngine . start ( org . eclipse . rap . rwt . cluster . test . entrypoints . ServerPushEntryPoint . class ) ; client . sendStartupRequest ( ) ; client . sendInitializationRequest ( ) ; javax . servlet . http . HttpSession session = org . eclipse . rap . rwt . cluster . testfixt...
org . junit . Assert . assertEquals ( "" , contentText . trim ( ) )
shouldNotDoubleQuoteEmptyString ( ) { java . lang . String string = com . oracle . bedrock . lang . StringHelper . doubleQuoteIfNecessary ( "" ) ; "<AssertPlaceHolder>" ; } is ( T ) { return new com . oracle . bedrock . predicate . Is < T > ( new com . oracle . bedrock . predicate . EqualTo < T > ( value ) ) ; }
org . junit . Assert . assertThat ( string , org . hamcrest . core . Is . is ( "" ) )
testAddResourceCommandsWithBuildFileInJavaPackage ( ) { com . facebook . buck . core . model . BuildTarget buildTarget = com . facebook . buck . core . model . BuildTargetFactory . newInstance ( "//android/java/src/com/facebook:resources" ) ; com . facebook . buck . jvm . core . JavaPackageFinder javaPackageFinder = cr...
org . junit . Assert . assertEquals ( expected , step . buildSteps ( ) )
getPentahoMapReduceMapRunnerClass ( ) { "<AssertPlaceHolder>" ; } getPentahoMapReduceMapRunnerClass ( ) { org . junit . Assert . assertEquals ( org . pentaho . hadoop . mapreduce . PentahoMapRunnable . class , new org . pentaho . hadoop . shim . common . CommonHadoopShim ( ) . getPentahoMapReduceMapRunnerClass ( ) ) ; ...
org . junit . Assert . assertEquals ( org . pentaho . hadoop . mapreduce . PentahoMapRunnable . class , new org . pentaho . hadoop . shim . common . CommonHadoopShim ( ) . getPentahoMapReduceMapRunnerClass ( ) )
shouldReturnTrueIfClientHasMobile ( ) { expect ( com . practicalunittesting . chp05 . mockornot . easymock . MockingTest . MOBILE_PHONE . isMobile ( ) ) . andStubReturn ( true ) ; replay ( com . practicalunittesting . chp05 . mockornot . easymock . MockingTest . MOBILE_PHONE ) ; client . addPhone ( com . practicalunitt...
org . junit . Assert . assertTrue ( client . hasMobile ( ) )
login01 ( ) { org . bugkillers . core . model . User userDO = new org . bugkillers . core . model . User ( ) ; userDO . setUserName ( "AllenX" ) ; userDO . setPassword ( "pp" ) ; try { org . bugkillers . core . result . BaseResult < org . bugkillers . core . model . User > result = userService . login ( userDO ) ; "<As...
org . junit . Assert . assertNotNull ( result )
testdSquareList ( ) { IntList L = IntList . list ( 1 , 2 , 3 ) ; IntList . dSquareList ( L ) ; "<AssertPlaceHolder>" ; } dSquareList ( IntList ) { while ( L != null ) { L . head = ( L . head ) * ( L . head ) ; L = L . tail ; } }
org . junit . Assert . assertEquals ( IntList . list ( 1 , 4 , 9 ) , L )