input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testEchoBytes ( ) { java . util . Random random = new java . util . Random ( ) ; int length = random . nextInt ( ( 1024 * 16 ) ) ; byte [ ] data = new byte [ length ] ; random . nextBytes ( data ) ; byte [ ] echoed = org . apache . avro . TestProtocolReflect . proxy . echoBytes ( data ) ; "<AssertPlaceHolder>" ; } echo...
org . junit . Assert . assertArrayEquals ( data , echoed )
findReturnsNullWhenVersionTagValueDoesNotEndWithAnCloseChar ( ) { java . lang . String mavenVersionRange = "()1.0" ; findReturnsValueWhenVersionTagValueIsSet ( mavenVersionRange ) ; "<AssertPlaceHolder>" ; } find ( ) { org . apache . maven . artifact . versioning . ArtifactVersion childMavenVersion = getHighestArtifact...
org . junit . Assert . assertNull ( new org . codehaus . mojo . versions . RequiredMavenVersionFinder ( mavenProject ) . find ( ) )
isConsistent_duplicates ( ) { org . bitcoinj . core . Transaction tx = createFakeTx ( org . bitcoinj . wallet . PARAMS , org . bitcoinj . wallet . COIN , myAddress ) ; org . bitcoinj . core . TransactionOutput output = new org . bitcoinj . core . TransactionOutput ( PARAMS , tx , valueOf ( 0 , 5 ) , OTHER_ADDRESS ) ; t...
org . junit . Assert . assertTrue ( wallet . isConsistent ( ) )
testAlreadyHasAlias ( ) { java . lang . String [ ] aliases = initAliases ( ) ; com . ewcms . publication . freemarker . directive . ArticleDirective directive = new com . ewcms . publication . freemarker . directive . ArticleDirective ( ) ; for ( java . lang . String alias : aliases ) { java . lang . String name = dire...
org . junit . Assert . assertNotNull ( name )
testSerial ( ) { com . ctrip . xpipe . tuple . Pair < java . lang . Boolean , java . lang . String > pair = new com . ctrip . xpipe . tuple . Pair ( true , "hello" ) ; java . lang . String encode = JsonCodec . INSTANCE . encode ( pair ) ; logger . info ( "{}" , encode ) ; com . ctrip . xpipe . tuple . Pair < java . lan...
org . junit . Assert . assertEquals ( pair , decode )
testAddAutocompleteSectionAfterSettingWithSection ( ) { com . github . bordertech . wcomponents . WSingleSelect field = new com . github . bordertech . wcomponents . WSingleSelect ( ) ; java . lang . String sectionName = "foo" ; java . lang . String otherSectionName = "bar" ; field . setAutocomplete ( Person . FAMILY )...
org . junit . Assert . assertEquals ( expected , field . getAutocomplete ( ) )
test_isQualifierEqual_AnnotationLiteral_Different_array ( ) { org . apache . webbeans . test . util . TestQualifier q1 = new org . apache . webbeans . test . util . TestQualifierAnnotationLiteral ( ) ; org . apache . webbeans . test . util . TestQualifierAnnotationLiteral q2 = new org . apache . webbeans . test . util ...
org . junit . Assert . assertFalse ( org . apache . webbeans . util . AnnotationUtil . isCdiAnnotationEqual ( q1 , q2 ) )
testToFixedgrid50plus1 ( ) { java . util . SortedSet < org . onosproject . net . OchSignal > input = org . onosproject . net . DefaultOchSignalComparator . newOchSignalTreeSet ( ) ; input . addAll ( com . google . common . collect . ImmutableList . of ( org . onosproject . net . OchSignal . newFlexGridSlot ( ( 8 - 3 ) ...
org . junit . Assert . assertEquals ( expected , org . onosproject . net . OchSignal . toFixedGrid ( com . google . common . collect . Lists . newArrayList ( input ) , org . onosproject . net . ChannelSpacing . CHL_50GHZ ) )
testConvertValid ( ) { com . streamsets . pipeline . api . impl . FileRefTypeSupport frTs = new com . streamsets . pipeline . api . impl . FileRefTypeSupport ( ) ; byte [ ] data = "This<sp>is<sp>streamsets<sp>file<sp>ref<sp>support" . getBytes ( ) ; com . streamsets . pipeline . api . TestFileRef . ByteArrayRef byteArr...
org . junit . Assert . assertSame ( byteArrayRef , frTs . convert ( byteArrayRef ) )
testAddReplaceValue ( ) { v8 . add ( "foo" , true ) ; v8 . add ( "foo" , "test" ) ; java . lang . String result = v8 . executeStringScript ( "foo" ) ; "<AssertPlaceHolder>" ; } executeStringScript ( java . lang . String ) { return executeStringScript ( script , null , 0 ) ; }
org . junit . Assert . assertEquals ( "test" , result )
shouldAndWhereConditionsFromMultipeWhereClauseSqlGenerators ( ) { java . lang . String selectClause = uniqueString ( ) ; java . lang . String fromClause = uniqueString ( ) ; setupSelectAndFromClause ( selectClause , fromClause ) ; java . lang . String whereCondition1 = "a" + ( uniqueString ( ) ) ; java . lang . String ...
org . junit . Assert . assertThat ( sql , org . hamcrest . CoreMatchers . is ( expected ) )
restoreWithFilterRecordsWarningWhenFileIsNotNormalAndMatching ( ) { java . nio . file . Path symlink = ddfHome . resolve ( createSoftLink ( "symlink" , path ) ) ; when ( mockPathUtils . resolveAgainstDDFHome ( any ( java . nio . file . Path . class ) ) ) . thenReturn ( symlink ) ; entry = new org . codice . ddf . confi...
org . junit . Assert . assertThat ( entry . restore ( true , ( p ) -> true ) , org . hamcrest . CoreMatchers . equalTo ( true ) )
assertProperties ( ) { boolean showSQL = getShardingProperties ( "defaultMasterSlaveDataSourceOrchestration" ) . getValue ( ShardingPropertiesConstant . SQL_SHOW ) ; "<AssertPlaceHolder>" ; } getValue ( int ) { if ( metaData . isAggregationDistinctColumnIndex ( columnIndex ) ) { return ( org . apache . shardingsphere ....
org . junit . Assert . assertTrue ( showSQL )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . hitsp . operations . ResultOperations obj = new org . openhealthtools . mdht . uml . cda . hitsp . operations . ResultOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testCnnSamePaddingModeStrided ( ) { int nOut = 2 ; int [ ] minibatchSizes = new int [ ] { 1 , 3 } ; int width = 16 ; int height = 16 ; int [ ] kernelSizes = new int [ ] { 2 , 3 } ; int [ ] strides = new int [ ] { 1 , 2 , 3 } ; int [ ] inputDepths = new int [ ] { 1 , 3 } ; org . nd4j . linalg . factory . Nd4j . getRando...
org . junit . Assert . assertTrue ( msg , gradOK )
toRequestFailureTest ( ) { final java . lang . Throwable cause = new java . lang . Throwable ( ) ; final org . opendaylight . controller . cluster . access . concepts . RequestException exception = new org . opendaylight . controller . cluster . access . concepts . RuntimeRequestException ( "fail" , cause ) ; final org...
org . junit . Assert . assertNotNull ( failure )
deletedQueriesDisappear ( ) { final org . apache . rya . streams . api . queries . QueryRepository queries = new org . apache . rya . streams . api . queries . InMemoryQueryRepository ( new org . apache . rya . streams . api . queries . InMemoryQueryChangeLog ( ) , org . apache . rya . streams . api . queries . InMemor...
org . junit . Assert . assertEquals ( expected , stored )
testOnException ( ) { java . util . concurrent . atomic . AtomicReference < org . slieb . throwables . java . lang . Throwable > reference = new java . util . concurrent . atomic . AtomicReference ( ) ; org . slieb . throwables . java . lang . Exception expected = new org . slieb . throwables . java . lang . Exception ...
org . junit . Assert . assertEquals ( expected , reference . get ( ) )
testBasicSetupEncoder_UsingSubscribe ( ) { org . numenta . nupic . Parameters p = org . numenta . nupic . network . NetworkTestHarness . getParameters ( ) . copy ( ) ; p = p . union ( org . numenta . nupic . network . NetworkTestHarness . getDayDemoTestEncoderParams ( ) ) ; p . set ( KEY . RANDOM , new org . numenta . ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected [ ( ( seq ) ++ ) ] , output . getSDR ( ) ) )
testU_ALPHA ( ) { "<AssertPlaceHolder>" ; } u ( java . lang . String ) { if ( ( value == null ) || ( value . isEmpty ( ) ) ) { return "" ; } return org . terasoluna . gfw . web . el . Functions . extraEncodeQuery ( org . springframework . web . util . UriUtils . encodeQueryParam ( value , "UTF-8" ) ) ; }
org . junit . Assert . assertThat ( org . terasoluna . gfw . web . el . Functions . u ( "a" ) , org . hamcrest . CoreMatchers . is ( "a" ) )
whenUsingHelloMethod_thenCorrect ( ) { final java . lang . String endpointResponse = baeldungProxy . hello ( "Baeldung" ) ; final java . lang . String localResponse = baeldungImpl . hello ( "Baeldung" ) ; "<AssertPlaceHolder>" ; } hello ( java . lang . String ) { java . lang . String message = "Hello,<sp>" + name ; ret...
org . junit . Assert . assertEquals ( localResponse , endpointResponse )
orderMasterAfter ( ) { java . io . InputStream inputStream = null ; parameters . put ( "customer" , 103 ) ; parameters . put ( "order" , 10123 ) ; if ( ( inputStream = runAndRenderSampleReport ( "samplereports/Reporting<sp>Feature<sp>Examples/Drill<sp>to<sp>Details/OrderMasterAfter.rptdesign" , "xlsx" ) ) != null ) { t...
org . junit . Assert . assertNotNull ( inputStream )
hasSpeedOverGround ( ) { "<AssertPlaceHolder>" ; } hasSpeedOverGround ( ) { return net . sf . marineapi . ais . util . SpeedOverGround . isAvailable ( fSOG ) ; }
org . junit . Assert . assertEquals ( true , msg . hasSpeedOverGround ( ) )
testParseHtml ( ) { java . lang . String html = "<html><head><title>First<sp>parse</title></head>" + "<body><id>1</id><></></body></html>" ; org . jsoup . nodes . Document doc = org . jsoup . Jsoup . parse ( html ) ; "<AssertPlaceHolder>" ; System . out . println ( doc ) ; } parse ( java . lang . Object ) { if ( ( this...
org . junit . Assert . assertNotNull ( doc )
testNullInfo ( ) { com . ibm . ws . microprofile . openapi . impl . validation . InfoValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . InfoValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = new com . ibm . ws . microprofile ...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
testAppend ( ) { org . nd4j . linalg . api . ndarray . INDArray linspace = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 , DataType . DOUBLE ) . reshape ( 2 , 2 ) ; org . nd4j . linalg . api . ndarray . INDArray otherAppend = org . nd4j . linalg . factory . Nd4j . append ( linspace , 3 , 1.0 , ( - 1 ) ) ;...
org . junit . Assert . assertEquals ( assertion , otherAppend )
aliphatic_carbon ( ) { uk . ac . ebi . beam . Atom actual = uk . ac . ebi . beam . FromSubsetAtoms . fromSubset ( AtomImpl . AliphaticSubset . Carbon , 3 , 0 ) ; uk . ac . ebi . beam . Atom expect = new uk . ac . ebi . beam . AtomImpl . BracketAtom ( Element . Carbon , 1 , 0 ) ; "<AssertPlaceHolder>" ; } fromSubset ( u...
org . junit . Assert . assertThat ( expect , org . hamcrest . CoreMatchers . is ( actual ) )
testTraverseParent ( ) { a . traverseParent ( ( p , c ) -> { if ( p . equals ( root ) ) { grandparentSeen = true ; } return true ; } ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( o == null ) || ( ( o . getClass ( ) ) != ( getClass ( ) ) ) ) { return false ; } uk . gov . dstl . baleen . entity ....
org . junit . Assert . assertTrue ( grandparentSeen )
testHeadRuleMap ( ) { java . lang . String filename = "src/main/resources/headrules/headrule_en_stanford.txt" ; edu . emory . clir . clearnlp . conversion . headrule . HeadRuleMap map = new edu . emory . clir . clearnlp . conversion . headrule . HeadRuleMap ( edu . emory . clir . clearnlp . util . IOUtils . createFileI...
org . junit . Assert . assertEquals ( str , new edu . emory . clir . clearnlp . conversion . headrule . HeadRuleMap ( edu . emory . clir . clearnlp . util . IOUtils . createByteArrayInputStream ( str ) ) . toString ( ) )
managedPoolMustNotCountShutDownAsLeak ( ) { config . setSize ( 2 ) ; stormpot . ManagedPool managedPool = assumeManagedPool ( ) ; claimRelease ( 2 , pool , stormpot . PoolTest . longTimeout ) ; pool . shutdown ( ) . await ( stormpot . PoolTest . longTimeout ) ; allocator . clearLists ( ) ; java . lang . System . gc ( )...
org . junit . Assert . assertThat ( managedPool . getLeakedObjectsCount ( ) , is ( 0L ) )
startBillingRun ( ) { boolean result = startBillingRun ( 0 ) ; "<AssertPlaceHolder>" ; } startBillingRun ( java . lang . String ) { java . lang . String result ; try { boolean status = ejbClientFacade . startBillingRun ( getCurrentTime ( currentDate ) ) ; result = "BillingService.startBillingRun<sp>successful<sp>execut...
org . junit . Assert . assertTrue ( result )
getSource ( ) { java . lang . Object source = new java . lang . Object ( ) ; org . bff . javampd . server . ErrorEvent errorEvent = new org . bff . javampd . server . ErrorEvent ( source ) ; "<AssertPlaceHolder>" ; } getSource ( ) { java . lang . Object source = new java . lang . Object ( ) ; org . bff . javampd . serv...
org . junit . Assert . assertEquals ( errorEvent . getSource ( ) , source )
testDeepClone ( ) { int [ ] [ ] test = new int [ ] [ ] { new int [ ] { 0 , 1 } , new int [ ] { 2 , 3 } , new int [ ] { 4 , 5 } } ; int [ ] [ ] result = ( ( int [ ] [ ] ) ( nom . tam . util . nom . tam . util . ArrayFuncs . deepClone ( test ) ) ) ; for ( int i = 0 ; i < ( test . length ) ; i += 1 ) { for ( int j = 0 ; j...
org . junit . Assert . assertEquals ( test [ i ] [ j ] , result [ i ] [ j ] )
testNoConvertGt ( ) { java . lang . String testString = "&gt;" ; "<AssertPlaceHolder>" ; } unescapeToXML ( java . lang . String ) { if ( com . github . bordertech . wcomponents . util . Util . empty ( input ) ) { return input ; } java . lang . String encoded = com . github . bordertech . wcomponents . WebUtilities . do...
org . junit . Assert . assertEquals ( testString , com . github . bordertech . wcomponents . util . HtmlToXMLUtil . unescapeToXML ( testString ) )
shouldBeInvoked ( ) { "<AssertPlaceHolder>" ; } getName ( ) { return "A" ; }
org . junit . Assert . assertEquals ( "A" , bean . getName ( ) )
test_AT_025_6_Idle_to_WorkForBrokerWithJDL ( ) { org . ourgrid . deployer . xmpp . XMPPAccount user1 = req_101_Util . createLocalUser ( "workerA.ourgrid.org" 0 , "server011" , "011011" ) ; org . ourgrid . common . specification . worker . WorkerSpecification workerSpec = workerAcceptanceUtil . createClassAdWorkerSpec (...
org . junit . Assert . assertTrue ( peerAcceptanceUtil . isPeerInterestedOnBroker ( lwpcOID . getServiceID ( ) ) )
testMarshal_WrappedLongObjectId1 ( ) { com . jmethods . catatumbo . entities . WrappedLongObjectIdEntity entity = com . jmethods . catatumbo . entities . WrappedLongObjectIdEntity . getSample1 ( ) ; com . google . cloud . datastore . FullEntity < ? > nativeEntity = ( ( com . google . cloud . datastore . FullEntity < ? ...
org . junit . Assert . assertNotNull ( incompleteKey )
listShouldNotContainIncorrectObject ( ) { java . lang . Object incorrect = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( list . contains ( incorrect ) )
testStrip ( ) { com . aliyun . odps . graph . JobConf conf = new com . aliyun . odps . graph . JobConf ( ) ; com . aliyun . odps . data . TableInfo t = com . aliyun . odps . data . TableInfo . builder ( ) . tableName ( "bbb" ) . partSpec ( "ds='20140511'" ) . build ( ) ; conf . addInput ( t ) ; java . lang . String inp...
org . junit . Assert . assertEquals ( jsonStr , input )
testURLWithText2 ( ) { java . lang . String content = "text<sp>[[http://www.liferay.com<sp>link<sp>text]]<sp>text" ; java . lang . String expected = "text<sp>[[http://www.liferay.com|link<sp>text]]<sp>text" ; java . lang . String actual = _translate ( content ) ; "<AssertPlaceHolder>" ; } _translate ( com . liferay . p...
org . junit . Assert . assertEquals ( expected , actual )
testGetJobExecutionCount ( ) { when ( jobService . countJobExecutionsForJob ( "job" ) ) . thenReturn ( 10 ) ; "<AssertPlaceHolder>" ; } getExecutionCount ( ) { return executionCount ; }
org . junit . Assert . assertEquals ( 10 , metrics . getExecutionCount ( ) )
getValueStringByKey_value_null ( ) { java . util . HashMap < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "key2" , null ) ; java . lang . String keyName = "key2" ; java . lang . String expResult = "" ; java . lang . Strin...
org . junit . Assert . assertEquals ( expResult , result )
testResourceOutputStream ( ) { java . io . File file = java . io . File . createTempFile ( "fileresourcetest" , ".tmp" ) ; file . deleteOnExit ( ) ; org . jboss . forge . addon . resource . FileResource < ? > fileResource = resourceFactory . create ( org . jboss . forge . addon . resource . FileResource . class , file ...
org . junit . Assert . assertEquals ( "CONTENT" , fileContent . get ( 0 ) )
testListStoragesByGroup ( ) { com . github . tobato . fastdfs . service . TrackerClientTest . LOGGER . debug ( "testListStoragesByGroup.." ) ; java . util . List < com . github . tobato . fastdfs . domain . fdfs . StorageState > list = trackerClient . listStorages ( TestConstants . DEFAULT_GROUP ) ; "<AssertPlaceHolder...
org . junit . Assert . assertNotNull ( list )
thankWithTranslatedMessage ( ) { com . baeldung . lombok . Translator translator = mock ( com . baeldung . lombok . Translator . class ) ; when ( translator . translate ( "thank<sp>you" ) ) . thenReturn ( com . baeldung . lombok . ThankingServiceIntegrationTest . TRANSLATED ) ; com . baeldung . lombok . ThankingService...
org . junit . Assert . assertEquals ( com . baeldung . lombok . ThankingServiceIntegrationTest . TRANSLATED , thankingService . thank ( ) )
testScan ( ) { com . alicloud . openservices . tablestore . timeline . TestTimeline . FakeStore store = new com . alicloud . openservices . tablestore . timeline . TestTimeline . FakeStore ( ) ; try { com . alicloud . openservices . tablestore . timeline . Timeline timeline = new com . alicloud . openservices . tablest...
org . junit . Assert . assertEquals ( parameter , store . parameter )
systemPropsOverrideSystemconfig ( ) { com . openshift . client . configuration . SystemConfiguration systemConfiguration = new com . openshift . client . fakes . SystemConfigurationFake ( new com . openshift . client . configuration . DefaultConfiguration ( ) ) { @ com . openshift . internal . client . Override protect...
org . junit . Assert . assertEquals ( com . openshift . internal . client . ConfigurationTest . USERNAME3 , configuration . getRhlogin ( ) )
testExposesJID ( ) { final org . xmpp . packet . JID jid = new org . xmpp . packet . JID ( "test" ) ; final org . xmpp . component . DummyAbstractComponent component = new org . xmpp . component . DummyAbstractComponent ( ) ; component . initialize ( jid , null ) ; "<AssertPlaceHolder>" ; } initialize ( org . xmpp . pa...
org . junit . Assert . assertEquals ( jid , component . jid )
testDiscrete ( ) { int rows = 10 ; int cols = 5 ; java . util . List < edu . cmu . tetrad . graph . Node > variables = new java . util . LinkedList ( ) ; for ( int i = 0 ; i < cols ; i ++ ) { edu . cmu . tetrad . data . DiscreteVariable variable = new edu . cmu . tetrad . data . DiscreteVariable ( ( "X" + ( i + 1 ) ) ,...
org . junit . Assert . assertEquals ( dataSet , _dataSet )
testNoAuthNeededWithSSL ( ) { final net . trajano . auth . HttpHeaderAuthModule module = new net . trajano . auth . HttpHeaderAuthModule ( ) ; final javax . security . auth . message . MessagePolicy mockRequestPolicy = mock ( javax . security . auth . message . MessagePolicy . class ) ; when ( mockRequestPolicy . isMan...
org . junit . Assert . assertEquals ( AuthStatus . SUCCESS , module . validateRequest ( messageInfo , client , null ) )
setValue_JapaneseCharsPlusInvalid ( ) { svc . setDescription ( ( "" + "„" ) ) ; tppd . setValue ( svc ) ; org . oscm . internal . vo . VOService result = tppd . getValue ( org . oscm . internal . vo . VOService . class ) ; "<AssertPlaceHolder>" ; } getDescription ( ) { if ( ( description ) == null ) { description = new...
org . junit . Assert . assertEquals ( "" , result . getDescription ( ) )
testGetSize ( ) { java . util . Map < java . lang . Integer , java . lang . Integer > mapping1 = new java . util . TreeMap < java . lang . Integer , java . lang . Integer > ( ) ; mapping1 . put ( 1 , 1 ) ; mapping1 . put ( 2 , 2 ) ; mapping1 . put ( 3 , 3 ) ; java . util . Map < java . lang . Integer , java . lang . In...
org . junit . Assert . assertEquals ( 2 , instance . getSize ( ) )
returnValueIfPresent ( ) { java . util . Map < java . lang . String , java . lang . Object > map = org . neo4j . helpers . collection . MapUtil . map ( "partitionProperty" , "partition" ) ; org . neo4j . graphalgo . core . ProcedureConfiguration procedureConfiguration = org . neo4j . graphalgo . core . ProcedureConfigu...
org . junit . Assert . assertEquals ( "partition" , value )
testError ( ) { com . github . flowengine . engine . TaskExecResult result = runCmd ( "cmd.exe<sp>/c<sp>erroraasd.exe<sp>'hello<sp>world'<sp>" ) ; java . lang . Thread . sleep ( 500 ) ; "<AssertPlaceHolder>" ; } getExitValue ( ) { return exitValue ; }
org . junit . Assert . assertTrue ( ( ( result . getExitValue ( ) ) != 0 ) )
testRfcHashExample ( ) { java . lang . String clientKey = "dGhlIHNhbXBsZSBub25jZQ==" ; java . lang . String serverAccept = com . firefly . codec . websocket . model . AcceptHash . hashKey ( clientKey ) ; java . lang . String expectedHash = "s3pPLMBiTxaQ9kYGzzhZRbK+xOo=" ; "<AssertPlaceHolder>" ; } is ( java . lang . St...
org . junit . Assert . assertThat ( serverAccept , org . hamcrest . Matchers . is ( expectedHash ) )
testEmptyArray ( ) { long result = com . oberasoftware . jasdb . core . utils . conversion . LongUtils . bytesToLong ( new byte [ 0 ] ) ; "<AssertPlaceHolder>" ; } bytesToLong ( byte [ ] ) { long v = 0 ; if ( ( bytes != null ) && ( ( bytes . length ) == ( com . oberasoftware . jasdb . core . utils . conversion . LongUt...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( 0L ) )
testWrappingCorrectly ( ) { queue = new org . apache . flume . channel . file . FlumeEventQueue ( backingStore , backingStoreSupplier . getInflightTakes ( ) , backingStoreSupplier . getInflightPuts ( ) , backingStoreSupplier . getQueueSetDir ( ) ) ; int size = Integer . MAX_VALUE ; for ( int i = 1 ; i <= size ; i ++ ) ...
org . junit . Assert . assertNotNull ( queue . removeHead ( 0 ) )
testRemove ( ) { com . liferay . document . library . kernel . model . DLFileShortcut newDLFileShortcut = addDLFileShortcut ( ) ; _persistence . remove ( newDLFileShortcut ) ; com . liferay . document . library . kernel . model . DLFileShortcut existingDLFileShortcut = _persistence . fetchByPrimaryKey ( newDLFileShortc...
org . junit . Assert . assertNull ( existingDLFileShortcut )
shouldRunQueryTestMode ( ) { final com . spotify . flo . Task < java . lang . String > task = com . spotify . flo . Task . named ( "task" ) . ofType ( java . lang . String . class ) . operator ( com . spotify . flo . contrib . bigquery . BigQueryOperator . create ( ) ) . process ( ( bq ) -> bq . query ( "SELECT<sp>foo<...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( "success!" ) )
testProcessFilter2 ( ) { _pathContext = com . liferay . portal . servlet . filters . virtualhost . VirtualHostFilterTest . _PATH_PROXY ; _pathProxy = com . liferay . portal . servlet . filters . virtualhost . VirtualHostFilterTest . _PATH_PROXY ; _mockHttpServletRequest . setRequestURI ( com . liferay . portal . servle...
org . junit . Assert . assertEquals ( com . liferay . portal . servlet . filters . virtualhost . VirtualHostFilterTest . _LAST_PATH , lastPath )
testAll ( ) { com . alibaba . otter . canal . parse . index . MemoryLogPositionManager memoryLogPositionManager = new com . alibaba . otter . canal . parse . index . MemoryLogPositionManager ( ) ; com . alibaba . otter . canal . parse . index . FileMixedLogPositionManager logPositionManager = new com . alibaba . otter ...
org . junit . Assert . assertEquals ( position2 , getPosition2 )
testGetZone ( ) { org . easymock . EasyMock . expect ( computeRpcMock . getZone ( com . google . cloud . compute . deprecated . ComputeImplTest . ZONE_ID . getZone ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . EMPTY_RPC_OPTIONS ) ) . andReturn ( com . google . cloud . compute . deprecated . Comp...
org . junit . Assert . assertEquals ( com . google . cloud . compute . deprecated . ComputeImplTest . ZONE , zone )
test_return_long ( ) { int result = server . return_long ( ) ; "<AssertPlaceHolder>" ; } return_long ( ) { return - 17 ; }
org . junit . Assert . assertEquals ( ( - 17 ) , result )
gaussianZScoreTransformWithDetectionIntervalTest3 ( ) { metricData . put ( 0L , 0.64 ) ; metricData . put ( 151200L , ( - 1.13 ) ) ; metricData . put ( 302400L , 0.0 ) ; metricData . put ( 453600L , 0.9 ) ; metricData . put ( 604800L , ( - 0.96 ) ) ; metricData . put ( 756000L , ( - 0.52 ) ) ; metricData . put ( 907200...
org . junit . Assert . assertEquals ( expected . get ( timestamp ) , resultDatapoints . get ( timestamp ) , 0.01 )
testConvert ( ) { java . lang . Long enrolmentId = 1L ; org . lnu . is . domain . enrolment . Enrolment enrolment = new org . lnu . is . domain . enrolment . Enrolment ( ) ; enrolment . setId ( enrolmentId ) ; java . lang . Long enrolmentSubjectId = 2L ; org . lnu . is . domain . enrolment . subject . EnrolmentSubject ...
org . junit . Assert . assertEquals ( expected , actual )
registration_succeeds_for_navigation_target_with_inherited_title_annotation ( ) { routeRegistryInitializer . onStartup ( java . util . Collections . singleton ( com . vaadin . flow . server . startup . RouteRegistryInitializerTest . ChildWithDynamicTitle . class ) , servletContext ) ; "<AssertPlaceHolder>" ; } getTarge...
org . junit . Assert . assertEquals ( "bar" , registry . getTargetUrl ( com . vaadin . flow . server . startup . RouteRegistryInitializerTest . ChildWithDynamicTitle . class ) . get ( ) )
testDataSourceConfigurationNullPassword ( ) { java . lang . String username = "sa" ; java . lang . String password = null ; org . apache . beam . sdk . io . jdbc . JdbcIO . DataSourceConfiguration config = JdbcIO . DataSourceConfiguration . create ( "org.apache.derby.jdbc.ClientDriver" , ( ( "jdbc:derby://localhost:" +...
org . junit . Assert . assertTrue ( conn . isValid ( 0 ) )
getParentUUIDComponent_ShouldDeferToCougarUUID ( ) { java . lang . String parentUUIDComponent = "abcde-1234-fghij-5678-klmno" ; when ( cougarUuid . getParentUUIDComponent ( ) ) . thenReturn ( parentUUIDComponent ) ; victim = new com . betfair . cougar . modules . zipkin . impl . ZipkinRequestUUIDImpl ( cougarUuid , nul...
org . junit . Assert . assertEquals ( parentUUIDComponent , victim . getParentUUIDComponent ( ) )
testEndingWithUnderscoreOneGroup ( ) { nameForCrossEntityAggregate = "aggregate_" ; "<AssertPlaceHolder>" ; } isValid ( java . lang . String , javax . validation . ConstraintValidatorContext ) { if ( ( null == nameForCrossEntityAggregate ) || ( nameForCrossEntityAggregate . isEmpty ( ) ) ) { return true ; } return com ...
org . junit . Assert . assertFalse ( validator . isValid ( nameForCrossEntityAggregate , context ) )
testDisconnect ( ) { java . io . File zkDataDir = org . apache . twill . internal . zookeeper . LeaderElectionTest . tmpFolder . newFolder ( ) ; org . apache . twill . internal . zookeeper . InMemoryZKServer ownZKServer = org . apache . twill . internal . zookeeper . InMemoryZKServer . builder ( ) . setDataDir ( zkData...
org . junit . Assert . assertFalse ( leaderSem . tryAcquire ( 10 , TimeUnit . SECONDS ) )
testFailedPolicy ( ) { org . springframework . retry . support . RetryTemplate retryTemplate = new org . springframework . retry . support . RetryTemplate ( ) ; retryTemplate . setRetryPolicy ( new org . springframework . retry . policy . NeverRetryPolicy ( ) { @ org . springframework . retry . support . Override publi...
org . junit . Assert . assertEquals ( "Planned" , e . getCause ( ) . getMessage ( ) )
testHref ( ) { java . lang . String href = "http://www.eclipse.org" ; hyperlink . setHref ( href ) ; "<AssertPlaceHolder>" ; } getHref ( ) { return href ; }
org . junit . Assert . assertEquals ( href , hyperlink . getHref ( ) )
testGetLines ( ) { final java . lang . String timestamp1 = "2012-11-21_11-41-14" ; final java . lang . String timestamp2 = "2012-11-21_11-42-05" ; java . util . List < hudson . plugins . jobConfigHistory . SideBySideView . Line > result = prepareGetLines ( timestamp1 , timestamp2 ) ; "<AssertPlaceHolder>" ; } prepareGe...
org . junit . Assert . assertEquals ( 8 , result . size ( ) )
testSelectInside ( ) { try { cambridge . parser . TemplateTokenizer tokenizer = new cambridge . parser . TemplateTokenizer ( cambridge . ParserTest . class . getResourceAsStream ( "full.html" ) ) ; cambridge . parser . TemplateParser parser = new cambridge . parser . TemplateParser ( tokenizer , Expressions . cambridge...
org . junit . Assert . assertEquals ( inside , builder . toString ( ) )
TransitionIsInternal ( ) { com . github . oxo42 . stateless4j . triggers . InternalTriggerBehaviour < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > ignored = new com . github . oxo42 . stateless4j . triggers . InternalTriggerBehaviour ( Trigger . X , com . github . oxo42 . ...
org . junit . Assert . assertTrue ( ignored . isInternal ( ) )
testRotate_2x4 ( ) { org . la4j . matrix . Matrix a = m ( org . la4j . matrix . MatrixTest . a ( 1.0 , 2.0 , 3.0 , 4.0 ) , org . la4j . matrix . MatrixTest . a ( 5.0 , 6.0 , 7.0 , 8.0 ) ) ; org . la4j . matrix . Matrix b = m ( org . la4j . matrix . MatrixTest . a ( 5.0 , 1.0 ) , org . la4j . matrix . MatrixTest . a ( 6...
org . junit . Assert . assertEquals ( b , a . rotate ( ) )
testSetLocalValue ( ) { System . out . println ( "<sp>setLocalValue" ) ; final java . lang . String varName = "foo" ; final int [ ] values = new int [ ] { 1 , 2 } ; final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 2 ) ; class Task implements java . lang . Runnable ...
org . junit . Assert . assertEquals ( values [ threadIndex ] , value )
testGetBinaryDataAsStream ( ) { java . lang . String id = "testGetBinary.txt" ; java . io . File test = new java . io . File ( org . segrada . service . binarydata . BinaryDataServiceFileTest . repositoryPath , id ) ; byte [ ] data = "HELLO\nWORLD!" . getBytes ( ) ; com . google . common . io . Files . write ( data , t...
org . junit . Assert . assertArrayEquals ( data , check )
hitRatio ( ) { long hit = 10 ; long miss = 20 ; cache . hit = hit ; cache . miss = miss ; double actualHitRatio = 1 / 3.0 ; double expectedHitRatio = cache . hitRatio ( ) ; "<AssertPlaceHolder>" ; } hitRatio ( ) { return offHeapCache . hitRatio ( ) ; }
org . junit . Assert . assertEquals ( expectedHitRatio , actualHitRatio , 0 )
testExistsNoZipConfig ( ) { setFunctionFound ( true ) ; java . lang . Boolean result = lambdaDeployService . deployLambda ( getDeployConfig ( ) , null , UpdateModeValue . Config ) ; calledGetFunction ( ) ; calledCreateFunction ( false ) ; calledUpdateCode ( false ) ; calledUpdateConfiguration ( true ) ; "<AssertPlaceHo...
org . junit . Assert . assertTrue ( result )
deveObterVersaoAplicativoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . evento . NFEnviaEventoRetorno eventoRetorno = new com . fincatto . documentofiscal . nfe310 . classes . evento . NFEnviaEventoRetorno ( ) ; final java . lang . String versaoAplicativo = "v10.0" ; eventoRetorno . set...
org . junit . Assert . assertEquals ( versaoAplicativo , eventoRetorno . getVersaoAplicativo ( ) )
testGetScriptFileWithNoScript ( ) { edu . illinois . library . cantaloupe . config . Configuration config = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) ; config . setProperty ( Key . DELEGATE_SCRIPT_PATHNAME , "" ) ; "<AssertPlaceHolder>" ; } getScriptFile ( ) { final edu . illinois...
org . junit . Assert . assertNull ( edu . illinois . library . cantaloupe . script . DelegateProxyService . getScriptFile ( ) )
whenCollectBySet_thenGetSet ( ) { java . util . Set < java . lang . String > empNames = com . stackify . stream . EmployeeTest . empList . stream ( ) . map ( Employee :: getName ) . collect ( java . util . stream . Collectors . toSet ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
org . junit . Assert . assertEquals ( empNames . size ( ) , 3 )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . portal . kernel . model . UserTrackerPath missingUserTrackerPath = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . li...
org . junit . Assert . assertNull ( missingUserTrackerPath )
testClear ( ) { subject . add ( elements [ 0 ] ) ; subject . clear ( ) ; "<AssertPlaceHolder>" ; } size ( ) { final javax . swing . DefaultComboBoxModel < java . lang . String > model = ( ( javax . swing . DefaultComboBoxModel ) ( comboBox . getModel ( ) ) ) ; return model . getSize ( ) ; }
org . junit . Assert . assertEquals ( 0 , subject . size ( ) )
testEulerNumber_crossC8 ( ) { ij . process . ImageProcessor image = new ij . process . ByteProcessor ( 10 , 10 ) ; for ( int i = 2 ; i < 8 ; i ++ ) { image . set ( i , 4 , 255 ) ; image . set ( i , 5 , 255 ) ; image . set ( 4 , i , 255 ) ; image . set ( 5 , i , 255 ) ; } int euler = inra . ijpb . measure . IntrinsicVol...
org . junit . Assert . assertEquals ( 1 , euler )
newResponse ( ) { org . jboss . elasticsearch . river . remote . mgm . state . JRStateResponse rb = JRStateAction . INSTANCE . newResponse ( ) ; "<AssertPlaceHolder>" ; } newResponse ( ) { return new org . jboss . elasticsearch . river . remote . mgm . state . JRStateResponse ( ) ; }
org . junit . Assert . assertNotNull ( rb )
test_toString ( ) { org . joda . money . CurrencyUnit test = org . joda . money . CurrencyUnit . of ( "GBP" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "MoneyAmountStyle['" + ( getZeroCharacter ( ) ) ) + "','" ) + ( getPositiveSignCharacter ( ) ) ) + "','" ) + ( getNegativeSign...
org . junit . Assert . assertEquals ( "GBP" , test . toString ( ) )
testStopPointsByRoute ( ) { when ( transitDataService . getRouteForId ( "MTA<sp>NYCT_M102" ) ) . thenReturn ( routeBean ) ; when ( transitDataService . getStopsForRoute ( "MTA<sp>NYCT_M102" ) ) . thenReturn ( stopsForRouteBean ) ; when ( transitDataService . stopHasUpcomingScheduledService ( anyString ( ) , anyLong ( )...
org . junit . Assert . assertTrue ( isEqual ( mockStopPoint , actualStopPoint ) )
testGetGroupResultFunction ( ) { @ org . springframework . data . solr . core . query . result . SuppressWarnings ( "unchecked" ) org . springframework . data . solr . core . query . result . GroupResult < java . lang . Object > gr = new org . springframework . data . solr . core . query . result . SimpleGroupResult ( ...
org . junit . Assert . assertEquals ( gr , result . getGroupResult ( func ) )
shouldDeterminePropertiesAreNotEqualWhenValuesAreDifferent ( ) { final org . apache . tinkerpop . gremlin . structure . Property mockPropertyA = mock ( org . apache . tinkerpop . gremlin . structure . Property . class ) ; final org . apache . tinkerpop . gremlin . structure . Property mockPropertyB = mock ( org . apach...
org . junit . Assert . assertFalse ( org . apache . tinkerpop . gremlin . structure . util . ElementHelper . areEqual ( mockPropertyA , mockPropertyB ) )
testExclude ( ) { java . util . Properties config = new java . util . Properties ( ) ; config . put ( org . apache . metron . stellar . dsl . functions . resolver . STELLAR_SEARCH_EXCLUDES_KEY . param ( ) , "org.apache.metron.*" ) ; org . apache . metron . stellar . dsl . functions . resolver . ClasspathFunctionResolve...
org . junit . Assert . assertEquals ( 0 , actual . size ( ) )
addSetMember_shouldAppendConceptToExistingConceptSet ( ) { org . openmrs . Concept concept = new org . openmrs . Concept ( ) ; org . openmrs . Concept setMember1 = new org . openmrs . Concept ( 1 ) ; concept . addSetMember ( setMember1 ) ; org . openmrs . Concept setMember2 = new org . openmrs . Concept ( 2 ) ; concept...
org . junit . Assert . assertEquals ( setMember2 , concept . getSetMembers ( ) . get ( 1 ) )
refreshModelContent ( ) { when ( scenarioSimulationModelMock . getSimulation ( ) ) . thenReturn ( simulationMock ) ; java . util . Set < Map . Entry < java . lang . Integer , org . drools . workbench . screens . scenariosimulation . model . Scenario > > entries = new java . util . HashSet ( ) ; int scenarioNumber = 1 ;...
org . junit . Assert . assertEquals ( scenarioSimulationModelMock , presenter . getModel ( ) )
testInvariantNotCalledWhenPureInContract ( ) { de . vksi . c4j . systemtest . config . purebehaviorskiponly . PureBehaviorSkipOnlySystemTest . TargetClassWithPureInContract target = new de . vksi . c4j . systemtest . config . purebehaviorskiponly . PureBehaviorSkipOnlySystemTest . TargetClassWithPureInContract ( ) ; de...
org . junit . Assert . assertFalse ( de . vksi . c4j . systemtest . config . purebehaviorskiponly . PureBehaviorSkipOnlySystemTest . ContractClassWithPureInContract . invariantCalled )
shouldReturnAnInstanceOfCollectionMergingDefaultProcessorForForm ( ) { org . codegist . crest . param . CollectionMergingParamProcessor expected = mock ( org . codegist . crest . param . CollectionMergingParamProcessor . class ) ; whenNew ( org . codegist . crest . param . CollectionMergingParamProcessor . class ) . wi...
org . junit . Assert . assertSame ( expected , actual )
drupalEditionActionHelper_updatedNewsItem_isDrupalNodeOutdatedIsTrue ( ) { dk . i2m . converge . core . content . NewsItem newsItem = getUpdatedNewsItem ( ) ; dk . i2m . converge . core . content . NewsItemEditionState state = getNewsItemEditionState ( ) ; state . setNewsItem ( newsItem ) ; boolean isDrupalNodeOutdated...
org . junit . Assert . assertTrue ( isDrupalNodeOutdated )
testNthElementFull ( ) { int [ ] array = new int [ ] { 5 , 6 , 4 , 3 , 2 , 6 , 7 , 9 , 3 } ; int pivot = 4 ; com . jujutsu . tsne . barneshut . VpTree . nth_element ( array , 0 , pivot , 9 ) ; "<AssertPlaceHolder>" ; } nth_element ( int [ ] , int , int , int ) { int [ ] tmp = new int [ high - low ] ; for ( int i = 0 ; ...
org . junit . Assert . assertEquals ( 5 , array [ pivot ] )
passwordMustBeGreaterThan6Chars ( ) { com . javafortesters . chap015stringsrevisited . exercises . User aUser = new com . javafortesters . chap015stringsrevisited . exercises . User ( "username" , "I23456" ) ; "<AssertPlaceHolder>" ; } getPassword ( ) { return password ; }
org . junit . Assert . assertEquals ( "I23456" , aUser . getPassword ( ) )
testSendNotificationWithAppKeyWithSpecialCharacter ( ) { int erroCode = ErrorCodeEnum . NOERROR . value ( ) ; java . lang . String msgTitle = "jpush" ; java . lang . String msgContent = "jpush+" ; cn . jpush . api . MessageResult result = jpush . sendNotificationWithAppKey ( sendNo , msgTitle , msgContent ) ; "<AssertP...
org . junit . Assert . assertEquals ( erroCode , result . getErrcode ( ) )