input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetParameters ( ) { org . lnu . is . domain . specialty . Specialty entity = new org . lnu . is . domain . specialty . Specialty ( ) ; java . lang . Long specialtyTypeId = 1L ; org . lnu . is . domain . specialty . SpecialtyType specialtyType = new org . lnu . is . domain . specialty . SpecialtyType ( ) ; specialty...
org . junit . Assert . assertEquals ( expected , actual )
testEvaluateIEvent2 ( ) { com . huawei . streaming . expression . MethodExpression methodExpression = new com . huawei . streaming . expression . MethodExpression ( com . huawei . streaming . expression . Math . class , "abs" , new com . huawei . streaming . expression . IExpression [ ] { new com . huawei . streaming ....
org . junit . Assert . assertEquals ( expected , actual )
shouldUseDirectPortIfNotSSL ( ) { com . couchbase . client . core . ClusterFacade cluster = mock ( com . couchbase . client . core . ClusterFacade . class ) ; com . couchbase . client . core . config . loader . HttpLoader loader = new com . couchbase . client . core . config . loader . HttpLoader ( cluster , com . couc...
org . junit . Assert . assertEquals ( com . couchbase . client . core . config . loader . HttpLoaderTest . environment . bootstrapHttpDirectPort ( ) , loader . port ( ) )
listRequestNext ( ) { org . searchisko . api . service . ProjectService tested = getTested ( null ) ; org . searchisko . persistence . service . ListRequest expected = org . mockito . Mockito . mock ( org . searchisko . persistence . service . ListRequest . class ) ; org . searchisko . persistence . service . ListReque...
org . junit . Assert . assertEquals ( expected , tested . listRequestNext ( prev ) )
testParseNull ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testFunction ( ) { java . lang . String ddl = "\nCREATE<sp>FOREIGN<sp>FUNCTION<sp>\"Function\"<sp>(IN<sp>newParameter_1<sp>string(4000)<sp>OPTIONS(NAMEINSOURCE<sp>\'nis_f_param1\'))" + "<sp>OPTIONS(NAMEINSOURCE<sp>'FunctionSource');" ; java . lang . String expectedDdl = "CREATE<sp>FOREIGN<sp>FUNCTION<sp>\"Function\"<sp...
org . junit . Assert . assertEquals ( expectedDdl , generatedDdl )
verifyGetSecretStageRetrievesBinary ( ) { final com . amazonaws . services . secretsmanager . model . GetSecretValueRequest request = new com . amazonaws . services . secretsmanager . model . GetSecretValueRequest ( ) ; request . setSecretId ( "secret" ) ; request . setVersionStage ( "AWSPENDING" ) ; final com . amazon...
org . junit . Assert . assertEquals ( "expected" , new java . lang . String ( buffer , "UTF-8" ) )
testEmppty ( ) { com . exigeninsurance . x4j . analytic . xlsx . utils . CSVParseContext context = new com . exigeninsurance . x4j . analytic . xlsx . utils . CSVParseContext ( ',' ) ; java . util . List < java . lang . String > list = context . parse ( "" ) ; "<AssertPlaceHolder>" ; } parse ( org . apache . poi . xssf...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "" ) , list )
testGetTargtRoot ( ) { java . lang . String hostname = "127.0.0.1" ; java . lang . String username = "wangwei" ; java . lang . String password = "hhywangwei" ; java . lang . String path = "/tmp" ; com . ewcms . publication . deploy . provider . SftpDeployOperator operator = ( ( com . ewcms . publication . deploy . prov...
org . junit . Assert . assertNotNull ( target )
denormalizeEmptyMultiPoint ( ) { java . lang . String emptyMultipoint = "MULTIPOINT<sp>(EMPTY)" ; "<AssertPlaceHolder>" ; } denormalize ( java . lang . String ) { if ( wkt == null ) { return wkt ; } java . util . regex . Matcher matcher = ddf . util . WktStandard . WKT_MULTIPOINT_PATTERN . matcher ( wkt ) ; if ( matche...
org . junit . Assert . assertThat ( ddf . util . WktStandard . denormalize ( emptyMultipoint ) , org . hamcrest . CoreMatchers . is ( emptyMultipoint ) )
correctPrincipal ( ) { org . candlepin . model . Owner owner = new org . candlepin . model . Owner ( "user" , "user" ) ; setUserAndPassword ( "user" , "redhat" ) ; when ( userService . validateUser ( "user" , "redhat" ) ) . thenReturn ( true ) ; java . util . Set < org . candlepin . auth . permissions . OwnerPermission...
org . junit . Assert . assertEquals ( expected , this . auth . getPrincipal ( request ) )
testSendCommandsToRouterWithTrueResult ( ) { final com . cloud . network . router . NetworkHelperImpl nwHelperUT = spy ( this . nwHelper ) ; final com . cloud . legacymodel . network . VirtualRouter vr = mock ( com . cloud . legacymodel . network . VirtualRouter . class ) ; when ( vr . getHostId ( ) ) . thenReturn ( co...
org . junit . Assert . assertTrue ( result )
test20090720 ( ) { org . apache . commons . math . stat . descriptive . DescriptiveStatistics descriptiveStatistics = new org . apache . commons . math . stat . descriptive . DescriptiveStatistics ( 100 ) ; for ( int i = 0 ; i < 161 ; i ++ ) { descriptiveStatistics . addValue ( 1.2 ) ; } descriptiveStatistics . clear (...
org . junit . Assert . assertEquals ( 1 , descriptiveStatistics . getN ( ) )
testMergeJournalsBadFirstRecord ( ) { org . junit . Assume . assumeFalse ( isWindowsEnvironment ( ) ) ; final org . apache . nifi . provenance . RepositoryConfiguration config = org . apache . nifi . provenance . ITestPersistentProvenanceRepository . createConfiguration ( ) ; config . setMaxEventFileLife ( 3 , TimeUnit...
org . junit . Assert . assertTrue ( ( ( checkJournalRecords ( storageDir , false ) ) < 10000 ) )
testHandlingFinishedRuleCountUpdates ( ) { com . facebook . buck . distributed . thrift . BuildSlaveStatus expectedStatus = createBuildSlaveStatusWithZeros ( ) ; expectedStatus . setRulesFinishedCount ( 50 ) ; distBuildServiceMock . uploadBuildSlaveEvents ( eq ( stampedeId ) , eq ( buildSlaveRunId ) , anyObject ( ) ) ;...
org . junit . Assert . assertEquals ( capturedStatus . getValue ( ) , expectedStatus )
testResolveThumbnail ( ) { ddf . catalog . data . impl . MetacardImpl mc = new ddf . catalog . data . impl . MetacardImpl ( ) ; byte [ ] bytes = new byte [ ] { 97 , 98 , 99 } ; java . lang . String expected = javax . xml . bind . DatatypeConverter . printBase64Binary ( bytes ) ; mc . setThumbnail ( bytes ) ; org . codi...
org . junit . Assert . assertEquals ( expected , actual )
createFtpClient_UsesProxyIfSet ( ) { entry . setProxyHost ( "localhost" ) ; entry . setProxyPort ( "123" ) ; entry . createAndSetUpFtpClient ( ) ; "<AssertPlaceHolder>" ; verify ( ftpClient , times ( 2 ) ) . setRemoteAddr ( java . net . InetAddress . getByName ( "localhost" ) ) ; verify ( ftpClient ) . setRemotePort ( ...
org . junit . Assert . assertEquals ( "localhost" , getHostFromClient ( ) )
shouldRespectBatchSize ( ) { int batchSize = 5 ; org . apache . camel . component . mybatis . MyBatisConsumer consumer = new org . apache . camel . component . mybatis . MyBatisConsumer ( mock ( org . apache . camel . component . mybatis . MyBatisEndpoint . class ) , mock ( org . apache . camel . Processor . class ) ) ...
org . junit . Assert . assertEquals ( batchSize , processedMessages )
testChangePasswordReset ( ) { org . apache . jackrabbit . api . security . user . User user = getTestUser ( ) ; user . changePassword ( userId ) ; root . commit ( ) ; org . apache . jackrabbit . oak . api . PropertyState p = root . getTree ( user . getPath ( ) ) . getChild ( UserConstants . REP_PWD ) . getProperty ( Us...
org . junit . Assert . assertTrue ( ( newModTime > 0 ) )
testNoArgumentConstructorInJavaSerialization ( ) { java . util . AbstractMap . SimpleEntry a = new java . util . AbstractMap . SimpleEntry ( 1 , "11" ) ; org . mapdb . elsa . ByteArrayOutputStream out = new org . mapdb . elsa . ByteArrayOutputStream ( ) ; new org . mapdb . elsa . ObjectOutputStream ( out ) . writeObjec...
org . junit . Assert . assertEquals ( a , a2 )
testGenericTypeWithSubclassInput ( ) { java . util . Map < java . lang . String , java . lang . Object > inputMap = new java . util . HashMap ( ) ; inputMap . put ( "a" , "b" ) ; org . apache . flink . api . common . typeinfo . TypeInformation < ? > inputType = org . apache . flink . api . java . typeutils . TypeExtrac...
org . junit . Assert . assertEquals ( expected , ti )
testDebugChemObject ( ) { org . openscience . cdk . interfaces . IChemObject chemObject = new org . openscience . cdk . debug . DebugChemObject ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( chemObject )
shouldReturnAllEnquiries ( ) { java . lang . String enquiryJSON1 = "{\"enquirer_name\":\"sam<sp>fisher\",\"name\":\"foo<sp>bar\",\"nationality\":\"ugandan\"," + "\"created_by\":\"Tom<sp>Reed\",\"synced\":\"false\",<sp>\"created_organisation\":\"TW\"}" ; java . lang . String enquiryJSON2 = "{\"enquirer_name\":\"fisher<s...
org . junit . Assert . assertEquals ( 2 , enquiryRepository . size ( ) )
returnsNullV2Tag ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; com . mpatric . mp3agic . ID3Wrapper wrapper = new com . mpatric . mp3agic . ID3Wrapper ( id3v1Tag , null ) ; "<AssertPlaceHolder>" ; } getId3v2Tag ( ) { return id3v2Tag ; }
org . junit . Assert . assertEquals ( null , wrapper . getId3v2Tag ( ) )
testRequestWithEmptyFinishTimeEndQuery ( ) { org . apache . hadoop . yarn . api . protocolrecords . GetApplicationsRequest request = org . apache . hadoop . yarn . server . resourcemanager . webapp . ApplicationsRequestBuilder . create ( ) . withFinishTimeEnd ( "" ) . build ( ) ; org . apache . hadoop . yarn . api . pr...
org . junit . Assert . assertEquals ( expectedRequest , request )
getTrackReturnsV1TagsTrackIfV2TagsTrackIsEmpty ( ) { com . mpatric . mp3agic . ID3v1 id3v1Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v1TagForTesting ( ) ; id3v1Tag . setTrack ( "V1<sp>Track" ) ; com . mpatric . mp3agic . ID3v2 id3v2Tag = new com . mpatric . mp3agic . ID3WrapperTest . ID3v2TagForTesting ( )...
org . junit . Assert . assertEquals ( "V1<sp>Track" , wrapper . getTrack ( ) )
testAttribute ( ) { java . lang . Object src = new java . lang . Object ( ) ; org . apache . cayenne . map . Attribute a = new org . apache . cayenne . map . DbAttribute ( ) ; a . setName ( "xyz" ) ; org . apache . cayenne . map . event . AttributeEvent e = new org . apache . cayenne . map . event . AttributeEvent ( sr...
org . junit . Assert . assertSame ( a , e . getAttribute ( ) )
multiThreadedSingleKernelObserverJTPTest ( ) { com . aparapi . internal . kernel . KernelManager . setKernelManager ( new com . aparapi . runtime . ProfileReportNewAPITest . JTPKernelManager ( ) ) ; com . aparapi . device . Device device = com . aparapi . internal . kernel . KernelManager . instance ( ) . bestDevice ( ...
org . junit . Assert . assertTrue ( multiThreadedSingleKernelReportObserverTestHelper ( device , 16 ) )
testResourcesCleanup6 ( ) { final java . lang . String baseDir = getTestPath ( ) ; final net . openhft . chronicle . VanillaChronicle chronicle = new net . openhft . chronicle . VanillaChronicle ( baseDir ) ; chronicle . clear ( ) ; try { net . openhft . chronicle . ExcerptAppender appender = chronicle . createAppender...
org . junit . Assert . assertFalse ( new java . io . File ( baseDir ) . exists ( ) )
testSendMail_setSenderError_assertException ( ) { javax . mail . internet . MimeMessage msg = org . nhindirect . monitor . util . TestUtils . readMimeMessageFromFile ( "MessageWithAttachment.txt" ) ; final org . apache . commons . net . smtp . SMTPClient client = mock ( org . apache . commons . net . smtp . SMTPClient ...
org . junit . Assert . assertTrue ( exceptionOccurred )
test_zero_unsigned_long_long ( ) { long result = server . bounce_unsigned_long_long ( 0L ) ; "<AssertPlaceHolder>" ; } bounce_unsigned_long_long ( long ) { return x ; }
org . junit . Assert . assertEquals ( 0L , result )
givenUserService_whenSearchForUserByEmailCharCount_thenFound ( ) { expect ( userService . findByEmail ( com . baeldung . easymock . ArgumentMatchersUnitTest . minCharCount ( 5 ) ) ) . andReturn ( java . util . Collections . emptyList ( ) ) ; replay ( userService ) ; java . util . List < com . baeldung . easymock . User...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
checkPrefix ( ) { "<AssertPlaceHolder>" ; } getPrefix ( ) { return "" ; }
org . junit . Assert . assertEquals ( "" , type . getPrefix ( ) )
whenStreamBadIndex_thenException ( ) { "<AssertPlaceHolder>" ; exception . expect ( com . baeldung . arrays . ArrayIndexOutOfBoundsException . class ) ; java . util . Arrays . stream ( intro , 2 , 1 ) . count ( ) ; } count ( ) { return employeeList . size ( ) ; }
org . junit . Assert . assertEquals ( java . util . Arrays . stream ( intro ) . count ( ) , 4 )
testUpdateTrustBundleAttributes_bundleDoesntExist_assertException ( ) { boolean exceptionOccured = false ; try { org . nhindirect . config . store . TrustBundleAnchor anchor = new org . nhindirect . config . store . TrustBundleAnchor ( ) ; anchor . setData ( loadCertificateData ( "secureHealthEmailCACert.der" ) ) ; tbD...
org . junit . Assert . assertTrue ( exceptionOccured )
testGetRoutingTypeFromMessageWithAnyCastType ( ) { org . apache . qpid . proton . message . impl . MessageImpl protonMessage = ( ( org . apache . qpid . proton . message . impl . MessageImpl ) ( Message . Factory . create ( ) ) ) ; org . apache . qpid . proton . amqp . messaging . MessageAnnotations annotations = new o...
org . junit . Assert . assertEquals ( RoutingType . ANYCAST , decoded . getRoutingType ( ) )
shouldJSONSerialiseAndDeserialise ( ) { final uk . gov . gchq . gaffer . operation . impl . ScoreOperationChain op = new uk . gov . gchq . gaffer . operation . impl . ScoreOperationChain ( ) ; byte [ ] json = uk . gov . gchq . gaffer . jsonserialisation . JSONSerialiser . serialise ( op , true ) ; final uk . gov . gchq...
org . junit . Assert . assertNotNull ( deserialisedOp )
testDifferentHtmlDifferentSourceId ( ) { au . gov . ga . worldwind . common . layers . screenoverlay . MutableScreenOverlayAttributesImpl c1 = new au . gov . ga . worldwind . common . layers . screenoverlay . MutableScreenOverlayAttributesImpl ( "<html><body>Some<sp>content</body></html>" ) ; au . gov . ga . worldwind ...
org . junit . Assert . assertFalse ( c1 . getSourceId ( ) . equalsIgnoreCase ( c2 . getSourceId ( ) ) )
testHashSharded ( ) { for ( int i = 0 ; i < 10000 ; i ++ ) { java . lang . String key = "test-" + i ; java . lang . String value = "value-" + i ; shardedRedis . set ( key , key , value ) ; redis . clients . jedis . ShardedJedis sj = shardedPool . getResource ( ) ; try { java . lang . String v = sj . get ( key ) ; "<Ass...
org . junit . Assert . assertEquals ( value , v )
testAggregateEmitted ( ) { com . hortonworks . streamline . streams . metrics . topology . TopologyTimeSeriesMetrics . TimeSeriesComponentMetric metric = getTestMetric ( ) ; long actual = com . hortonworks . streamline . streams . service . ComponentMetricSummary . aggregateEmitted ( metric ) ; long expected = 60 ; "<A...
org . junit . Assert . assertEquals ( expected , actual )
test_getType_primitive ( ) { "<AssertPlaceHolder>" ; } getInstance ( java . lang . reflect . Type ) { return com . psddev . dari . util . TypeDefinition . INSTANCES . getUnchecked ( type ) ; }
org . junit . Assert . assertEquals ( int . class , com . psddev . dari . util . TypeDefinition . getInstance ( int . class ) . getType ( ) )
getUserSecurityNameWithValidUser ( ) { java . lang . String uniqueUserId = "vmmtestuser" ; java . lang . String userSecurityName = "cn=vmmtestuser,o=ibm,c=us" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDSNoFilters . c , "getUserSecurityName...
org . junit . Assert . assertEquals ( userSecurityName , com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDSNoFilters . servlet . getUserSecurityName ( uniqueUserId ) )
testGetTitleText ( ) { final java . lang . String expectedTitle = "file.drl<sp>-<sp>DRL" ; final org . uberfire . backend . vfs . ObservablePath path = mock ( org . uberfire . backend . vfs . ObservablePath . class ) ; final org . uberfire . client . workbench . type . ClientResourceType type = mock ( org . uberfire . ...
org . junit . Assert . assertEquals ( expectedTitle , actualTitle )
runTest ( ) { boolean result = checkNoError ( "Social_Forums_Update_Topic" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
dummyRestUrlTest ( ) { java . lang . String host = "https://github.com" ; java . lang . String name = "pddstudio" ; java . lang . String action = "isAwesome" ; boolean actionValue = true ; java . lang . String expected = "https://github.com/pddstudio/?isAwesome=true" ; java . lang . String phrase = phraseFrom ( "{host}...
org . junit . Assert . assertEquals ( phrase , expected )
testParseHL7ParameterListFrom201309MessageWhenParameterListNull ( ) { org . hl7 . v3 . PRPAIN201309UV02 message = new org . hl7 . v3 . PRPAIN201309UV02 ( ) ; org . hl7 . v3 . PRPAIN201309UV02QUQIMT021001UV01ControlActProcess controlActProcess = new org . hl7 . v3 . PRPAIN201309UV02QUQIMT021001UV01ControlActProcess ( ) ...
org . junit . Assert . assertNull ( parser . parseHL7ParameterListFrom201309Message ( message ) )
testGetInstance ( ) { try { br . gov . frameworkdemoiselle . behave . internal . util . PropertiesLoaderUtil properties = br . gov . frameworkdemoiselle . behave . internal . util . PropertiesLoaderUtil . getInstance ( ) ; "<AssertPlaceHolder>" ; } catch ( br . gov . frameworkdemoiselle . behave . exception . BehaveExc...
org . junit . Assert . assertNotNull ( properties )
simpleWriteReadThreaded ( ) { final byte primaryRingSizeInBits = 7 ; final byte byteRingSizeInBits = 16 ; final com . ociweb . pronghorn . pipe . Pipe ring = new com . ociweb . pronghorn . pipe . Pipe ( new com . ociweb . pronghorn . pipe . PipeConfig ( new com . ociweb . pronghorn . pipe . MessageSchemaDynamic ( FROM ...
org . junit . Assert . assertTrue ( com . ociweb . pronghorn . pipe . PipeReader . isNewMessage ( ring ) )
testUpdateBlobAcl ( ) { com . google . cloud . storage . BlobId blobId = com . google . cloud . storage . BlobId . of ( com . google . cloud . storage . StorageImplTest . BUCKET_NAME1 , com . google . cloud . storage . StorageImplTest . BLOB_NAME1 , 42L ) ; com . google . cloud . storage . Acl returnedAcl = com . googl...
org . junit . Assert . assertEquals ( returnedAcl , acl )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . site . navigation . model . SiteNavigationMenuItem missingSiteNavigationMenuItem = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) {...
org . junit . Assert . assertNull ( missingSiteNavigationMenuItem )
shouldGenerateCorrectSqlForMathOperationsForExistingDataFix4 ( ) { org . alfasoftware . morf . sql . element . AliasedField dsl = org . alfasoftware . morf . sql . SqlUtils . field ( "invoiceLineReceived" ) . multiplyBy ( org . alfasoftware . morf . sql . SqlUtils . field ( "vatRate<sp>/<sp>(vatRate<sp>+<sp>100)" ) ) ;...
org . junit . Assert . assertEquals ( expectedSqlForMathOperationsForExistingDataFix4 ( ) , sql )
shouldFindPersonellByUsername ( ) { org . mifos . customers . personnel . business . PersonnelBO user = personnelDao . findPersonnelByUsername ( "mifos" ) ; "<AssertPlaceHolder>" ; } findPersonnelByUsername ( java . lang . String ) { java . util . HashMap < java . lang . String , java . lang . Object > queryParameters ...
org . junit . Assert . assertNotNull ( user )
testGetEventMask_ignoresCustomEvents ( ) { long eventMask = org . eclipse . swt . internal . events . EventLCAUtil . getEventMask ( 100 ) ; "<AssertPlaceHolder>" ; } containsEvent ( long , int ) { return ( events & ( org . eclipse . swt . internal . events . EventLCAUtil . getEventMask ( event ) ) ) != 0 ; }
org . junit . Assert . assertFalse ( org . eclipse . swt . internal . events . EventLCAUtil . containsEvent ( eventMask , 100 ) )
testReleasedContainerNotRecovered ( ) { rm1 = new org . apache . hadoop . yarn . server . resourcemanager . MockRM ( conf ) ; rm1 . start ( ) ; org . junit . Assume . assumeFalse ( ( ( rm1 . getResourceScheduler ( ) ) instanceof org . apache . hadoop . yarn . server . resourcemanager . scheduler . fair . FairScheduler ...
org . junit . Assert . assertTrue ( receivedCompletedContainer )
executeWithError ( ) { java . util . List < java . lang . String > command = java . util . Arrays . asList ( "ls" , "-al" ) ; doReturn ( 1 ) . when ( retryCommandSpy ) . executeCommand ( command ) ; retryCommandSpy . originalArgs = java . util . Arrays . asList ( "retry" , "-c" , "ls" , "-al" ) ; try { retryCommandSpy ...
org . junit . Assert . assertEquals ( 1 , cwese . getExitCode ( ) )
testEquals2 ( ) { org . talend . designer . mapper . external . data . ExternalMapperData mapper1 = new org . talend . designer . mapper . external . data . ExternalMapperData ( ) ; java . util . List < org . talend . designer . mapper . external . data . ExternalMapperTable > externalTables = new java . util . ArrayLi...
org . junit . Assert . assertTrue ( mapper1 . equals ( mapper2 ) )
getByClassNameShouldReturnNullWhenNullClassName ( ) { "<AssertPlaceHolder>" ; } getByClassName ( java . lang . String ) { if ( className == null ) { return null ; } me . prettyprint . hector . api . ddl . ComparatorType type = me . prettyprint . hector . api . ddl . ComparatorType . valuesMap . get ( className ) ; if (...
org . junit . Assert . assertEquals ( null , me . prettyprint . hector . api . ddl . ComparatorType . getByClassName ( null ) )
testRemove ( ) { com . liferay . portal . kernel . model . WorkflowInstanceLink newWorkflowInstanceLink = addWorkflowInstanceLink ( ) ; _persistence . remove ( newWorkflowInstanceLink ) ; com . liferay . portal . kernel . model . WorkflowInstanceLink existingWorkflowInstanceLink = _persistence . fetchByPrimaryKey ( new...
org . junit . Assert . assertNull ( existingWorkflowInstanceLink )
testGetSetException ( ) { classUnderTest = new net . sourceforge . squirrel_sql . client . update . downloader . event . DownloadStatusEvent ( DownloadEventType . DOWNLOAD_COMPLETED ) ; java . lang . Exception expected = new java . lang . Exception ( "something<sp>exceptional" ) ; classUnderTest . setException ( expect...
org . junit . Assert . assertEquals ( expected , classUnderTest . getException ( ) )
postProcessBeforeInitializationReturnsBean ( ) { java . lang . Object bean = new java . lang . Object ( ) ; java . lang . Object result = postProcessor . postProcessBeforeInitialization ( bean , "bean" ) ; "<AssertPlaceHolder>" ; } postProcessBeforeInitialization ( java . lang . Object , java . lang . String ) { return...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( bean ) )
testDerivativeZero ( ) { final org . hipparchus . analysis . differentiation . DerivativeStructure s0 = new org . hipparchus . analysis . function . Sinc ( true ) . value ( new org . hipparchus . analysis . differentiation . DSFactory ( 1 , 1 ) . variable ( 0 , 0.0 ) ) ; "<AssertPlaceHolder>" ; } getPartialDerivative (...
org . junit . Assert . assertEquals ( 0 , s0 . getPartialDerivative ( 1 ) , 0 )
testLong_01 ( ) { long count = 8 ; long left = 0 ; long right = count - 1 ; int expectSliceNumber = 3 ; long [ ] result = com . alibaba . datax . common . util . RangeSplitUtil . doLongSplit ( left , right , expectSliceNumber ) ; ( result [ ( ( result . length ) - 1 ) ] ) ++ ; for ( int i = 0 ; i < ( ( result . length ...
org . junit . Assert . assertTrue ( ( ( ( result . length ) - 1 ) == expectSliceNumber ) )
whenZeroIsDepositedThenNoPaymentsAreMade ( ) { savingsAccount = savingsAccountBuilder . buildForUnitTests ( ) ; final org . mifos . framework . util . helpers . Money zero = new org . mifos . framework . util . helpers . Money ( org . mifos . accounts . savings . SavingsBOTest . defaultCurrency ) ; when ( accountPaymen...
org . junit . Assert . assertThat ( savingsAccount . getAccountPayments ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . message . boards . model . MBBan newMBBan = addMBBan ( ) ; com . liferay . message . boards . model . MBBan existingMBBan = _persistence . findByPrimaryKey ( newMBBan . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntryId ; }
org . junit . Assert . assertEquals ( existingMBBan , newMBBan )
shouldReturnTrueWhenLongContentLengthIsDifferent ( ) { byte [ ] localContent = new byte [ 8192 ] ; java . util . Arrays . fill ( localContent , ( ( byte ) ( 'a' ) ) ) ; byte [ ] remoteContent = new byte [ 8192 ] ; java . util . Arrays . fill ( remoteContent , ( ( byte ) ( 'a' ) ) ) ; org . eclipse . egit . core . synch...
org . junit . Assert . assertTrue ( grvc . compare ( local , remote ) )
testRegisterNodeManagerRequestWithNullLabels ( ) { org . apache . hadoop . yarn . server . api . protocolrecords . RegisterNodeManagerRequest request = org . apache . hadoop . yarn . server . api . protocolrecords . RegisterNodeManagerRequest . newInstance ( org . apache . hadoop . yarn . api . records . NodeId . newIn...
org . junit . Assert . assertNull ( request1 . getNodeLabels ( ) )
testPropertyMapGetKeys ( ) { com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > map = new com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > ( ) ; map . put ( "foo" , map ) ; map . put ( "bar" , null ) ; map . put ( "baz" , null ) ; java . util . Set < java . lang . String ...
org . junit . Assert . assertEquals ( 3 , keys . size ( ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoTimerInstanceToken . class , _dynamicQueryClassLoader ) ; dynami...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testErrorListeners ( ) { org . jboss . resteasy . plugins . providers . sse . SseBroadcasterImpl sseBroadcasterImpl = new org . jboss . resteasy . plugins . providers . sse . SseBroadcasterImpl ( ) ; javax . ws . rs . sse . SseEventSink sseEventSink = newSseEventSink ( new java . lang . RuntimeException ( ) ) ; sseBroa...
org . junit . Assert . assertFalse ( sseEventSink . isClosed ( ) )
testGetAvailableOutputFormats ( ) { for ( edu . illinois . library . cantaloupe . image . Format format : edu . illinois . library . cantaloupe . image . Format . values ( ) ) { try { edu . illinois . library . cantaloupe . processor . StreamProcessor instance = ( ( edu . illinois . library . cantaloupe . processor . S...
org . junit . Assert . assertEquals ( expectedFormats , instance . getAvailableOutputFormats ( ) )
createCache_NameOK ( ) { java . lang . String name = "c1" ; getCacheManager ( ) . createCache ( name , new javax . cache . configuration . MutableConfiguration ( ) ) ; javax . cache . Cache cache = getCacheManager ( ) . getCache ( name ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( name , cache . getName ( ) )
testCalculatesPercentage ( ) { int pixel = com . eclipsesource . tabris . passepartout . internal . UnitUtil . percentageToPixel ( new com . eclipsesource . tabris . passepartout . internal . unit . Percentage ( java . math . BigDecimal . TEN ) , 100 ) ; "<AssertPlaceHolder>" ; } percentageToPixel ( com . eclipsesource...
org . junit . Assert . assertEquals ( 10 , pixel )
testLengthNullable ( ) { com . streamsets . pipeline . stage . processor . expression . ExpressionProcessorConfig expressionProcessorConfig ; com . streamsets . pipeline . sdk . ProcessorRunner runner ; java . util . Map < java . lang . String , com . streamsets . pipeline . api . Field > map = new java . util . Linked...
org . junit . Assert . assertEquals ( 0 , runner . getErrorRecords ( ) . size ( ) )
marshalingAndUnmarshalingYieldsEqualObject ( ) { action = new de . rub . nds . tlsattacker . core . workflow . action . ForwardMessagesAction ( ctx1Alias , ctx2Alias , new de . rub . nds . tlsattacker . core . protocol . message . ClientHelloMessage ( ) ) ; java . io . StringWriter writer = new java . io . StringWriter...
org . junit . Assert . assertEquals ( action , actual )
vm ( ) { java . lang . String password = "e$_w=x268WEI3vfr7" ; java . lang . String vmEncrypted = org . oscm . app . vmware . encryption . AESEncrypter . encrypt ( password ) ; java . lang . String vmDecrypted = org . oscm . app . vmware . encryption . AESEncrypter . decrypt ( vmEncrypted ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( password , vmDecrypted )
testGetServiceWithServiceTrackerCustomizerReturningNull ( ) { try ( com . liferay . osgi . service . tracker . collections . map . ServiceTrackerMap < java . lang . String , com . liferay . osgi . service . tracker . collections . internal . map . TrackedTwo > serviceTrackerMap = com . liferay . osgi . service . tracke...
org . junit . Assert . assertFalse ( serviceTrackerMap . containsKey ( "one" ) )
resizeTempBlockMetaNoAvailableBytes ( ) { mDir . addTempBlockMeta ( mTempBlockMeta ) ; mDir . resizeTempBlockMeta ( mTempBlockMeta , alluxio . worker . block . meta . StorageDirTest . TEST_DIR_CAPACITY ) ; "<AssertPlaceHolder>" ; mThrown . expect ( alluxio . worker . block . meta . IllegalStateException . class ) ; mTh...
org . junit . Assert . assertEquals ( alluxio . worker . block . meta . StorageDirTest . TEST_DIR_CAPACITY , mTempBlockMeta . getBlockSize ( ) )
testIntMax2 ( ) { "<AssertPlaceHolder>" ; } getCapacity ( int ) { int c = 1 ; if ( capacity >= ( com . conversantmedia . util . concurrent . Capacity . MAX_POWER2 ) ) { c = com . conversantmedia . util . concurrent . Capacity . MAX_POWER2 ; } else { while ( c < capacity ) c <<= 1 ; } if ( com . conversantmedia . util ....
org . junit . Assert . assertEquals ( Capacity . MAX_POWER2 , com . conversantmedia . util . concurrent . Capacity . getCapacity ( ( ( Integer . MAX_VALUE ) / 2 ) ) )
testCreateContextFromArchive ( ) { java . io . File file = file ( "shape/archsites_epsg_prj.zip" ) ; org . geoserver . importer . Archive arch = new org . geoserver . importer . Archive ( file ) ; org . geoserver . importer . ImportContext context = importer . createContext ( arch ) ; "<AssertPlaceHolder>" ; } getTasks...
org . junit . Assert . assertEquals ( 1 , context . getTasks ( ) . size ( ) )
testWriteWithBackoff ( ) { java . lang . String tableName = org . apache . beam . sdk . io . common . DatabaseTestHelper . getTestTableName ( "org.apache.derby.jdbc.ClientDriver" 0 ) ; org . apache . beam . sdk . io . common . DatabaseTestHelper . createTable ( org . apache . beam . sdk . io . jdbc . JdbcIOTest . dataS...
org . junit . Assert . assertEquals ( 2 , count )
testNederlandseNationaliteitWelNamenreeksNamenreeksJaInBericht ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0151 . voerRegelUit ( bouwHuidigeSituatie ( true ) , bouwNieuweSituatie ( NationaliteitcodeAttribuut . NL_NATIONALITEIT_CODE , true ) , null , null ) ; "<A...
org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) )
getReturnsGMetricUsingUnicast ( ) { final org . graylog . plugins . metrics . ganglia . MetricsGangliaReporterConfiguration configuration = new org . graylog . plugins . metrics . ganglia . MetricsGangliaReporterConfiguration ( ) { @ org . graylog . plugins . metrics . ganglia . providers . Override public GMetric . UD...
org . junit . Assert . assertNotNull ( metric )
testSetServiceResponseType ( ) { empty . setServiceResponseType ( "test" ) ; "<AssertPlaceHolder>" ; } getServiceResponseType ( ) { return this . serviceResponseType ; }
org . junit . Assert . assertEquals ( "test" , empty . getServiceResponseType ( ) )
deveObterTelefoneComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . NFEndereco endereco = new com . fincatto . documentofiscal . nfe310 . classes . NFEndereco ( ) ; endereco . setTelefone ( "12345678901324" ) ; "<AssertPlaceHolder>" ; } getTelefone ( ) { return this . telefone ; }
org . junit . Assert . assertEquals ( "12345678901324" , endereco . getTelefone ( ) )
testRenderCellToolTipText_resetsText ( ) { org . eclipse . swt . internal . widgets . ICellToolTipAdapter adapter = org . eclipse . swt . internal . widgets . CellToolTipUtil . getAdapter ( grid ) ; adapter . setCellToolTipText ( "foo" ) ; lca . renderChanges ( grid ) ; "<AssertPlaceHolder>" ; } getCellToolTipText ( ) ...
org . junit . Assert . assertNull ( adapter . getCellToolTipText ( ) )
testIsModifiedOnChangedFile_shouldReturnTrue ( ) { initGitFileSystem ( ) ; writeToGfs ( "/test_file.txt" ) ; write ( gfs . getPath ( "/test_file.txt" ) , someBytes ( ) ) ; com . beijunyi . parallelgit . filesystem . io . GitFileAttributes attributes = readGitAttributes ( "/test_file.txt" ) ; "<AssertPlaceHolder>" ; } i...
org . junit . Assert . assertTrue ( attributes . isModified ( ) )
shouldEchoClientSendTextFrameWithPayloadNotFragmented ( ) { org . kaazing . netx . URLConnectionHelper helper = org . kaazing . netx . URLConnectionHelper . newInstance ( ) ; java . net . URI location = java . net . URI . create ( "ws://localhost:8080/path" ) ; org . kaazing . netx . ws . WsURLConnection connection = (...
org . junit . Assert . assertEquals ( writeString , readString )
testIsMetadataRowId ( ) { org . sagebionetworks . table . cluster . DatabaseColumnInfo info = new org . sagebionetworks . table . cluster . DatabaseColumnInfo ( ) ; info . setColumnName ( TableConstants . ROW_ID ) ; "<AssertPlaceHolder>" ; } isMetadata ( ) { return ( ( ( org . sagebionetworks . table . cluster . ROW_ID...
org . junit . Assert . assertTrue ( info . isMetadata ( ) )
testStartJobCacheHit ( ) { org . sagebionetworks . repo . model . table . DownloadFromTableRequest body = new org . sagebionetworks . repo . model . table . DownloadFromTableRequest ( ) ; body . setEntityId ( "syn123" ) ; body . setSql ( "select<sp>*<sp>from<sp>syn123" ) ; java . lang . String bodyHash = "aBodyHash" ; ...
org . junit . Assert . assertEquals ( existingJob , status )
testRondConversieVanuitLO3 ( ) { final nl . bzk . migratiebrp . conversie . model . lo3 . element . Lo3Datumtijdstempel lo3bron = new nl . bzk . migratiebrp . conversie . model . lo3 . element . Lo3Datumtijdstempel ( 20121204072930000L ) ; final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpDatumTij...
org . junit . Assert . assertTrue ( lo3bron . equals ( lo3resultaat ) )
testReadCDL ( ) { org . geotools . imageio . netcdf . NetCDFImageReaderSpi readerSpi = new org . geotools . imageio . netcdf . NetCDFImageReaderSpi ( ) ; java . io . File file = null ; java . lang . String name = "2DLatLonCoverage.cdl" ; try { file = org . geotools . test . TestData . file ( this , name ) ; } catch ( j...
org . junit . Assert . assertFalse ( readerSpi . canDecodeInput ( file ) )
testSmall ( ) { final it . unimi . dsi . webgraph . ImmutableGraph g = it . unimi . dsi . webgraph . ArrayListMutableGraph . newBidirectionalCycle ( 40 ) . immutableView ( ) ; "<AssertPlaceHolder>" ; } run ( it . unimi . dsi . webgraph . ImmutableGraph , int , it . unimi . dsi . logging . ProgressLogger , long ) { it ....
org . junit . Assert . assertEquals ( 20 , it . unimi . dsi . webgraph . algo . FourSweepIterativeFringeDiameter . run ( g , 0 , new it . unimi . dsi . logging . ProgressLogger ( ) , 0 ) )
correlateMessageToIntermediateCatchEventNoTenantIdSetForNonTenant ( ) { testRule . deploy ( org . camunda . bpm . engine . test . api . multitenancy . MultiTenancyMessageCorrelationTest . MESSAGE_CATCH_PROCESS ) ; engineRule . getRuntimeService ( ) . startProcessInstanceByKey ( "messageCatch" ) ; engineRule . getRuntim...
org . junit . Assert . assertThat ( query . count ( ) , org . hamcrest . CoreMatchers . is ( 1L ) )
testSetStringArrayProperty ( ) { getRestGraphDb ( ) . getReferenceNode ( ) . setProperty ( "name" , new java . lang . String [ ] { "test" } ) ; org . neo4j . graphdb . Node node = getRestGraphDb ( ) . getReferenceNode ( ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . String ) { java . lang . Object value = ge...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "test" } , ( ( java . lang . String [ ] ) ( node . getProperty ( "name" ) ) ) )
resolve_DEL_REF ( ) { org . opencb . biodata . models . variant . Variant a = org . opencb . opencga . storage . hadoop . variant . archive . mr . VariantLocalConflictResolverTest . getVariant ( "1:997:AT:-" , "PASS" , "390" , "0/1" ) ; org . opencb . biodata . models . variant . Variant b = org . opencb . opencga . st...
org . junit . Assert . assertEquals ( 2 , resolved . size ( ) )
testCreateInstance ( ) { com . huawei . streaming . cql . executor . windowcreater . WindowCreator creater = new com . huawei . streaming . cql . executor . windowcreater . GroupNaturalDaySlideWindowCreator ( ) ; creater . createInstance ( createWindow ( ) , initSchema ( ) , null ) ; "<AssertPlaceHolder>" ; } initSchem...
org . junit . Assert . assertTrue ( true )
writeBean_hasSeveralBindings_singleEvent ( ) { binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . forField ( ageField ) . withConverter ( new com . vaadin . flow . data . converter . StringToIntegerConverter ( "" ) ) . bind ( Person :: getAge , Person :: setAge ) ; bin...
org . junit . Assert . assertNull ( event . get ( ) )
executeTwoModel ( ) { org . graphwalker . multipleModels . ModelHandler modelhandler = new org . graphwalker . multipleModels . ModelHandler ( ) ; modelhandler . add ( "A" , new org . graphwalker . multiple . Model_A_API ( "graphml/multiple/switch/A.graphml" , true , new org . graphwalker . generators . RandomPathGener...
org . junit . Assert . assertTrue ( modelhandler . isAllModelsDone ( ) )
testParseString ( ) { java . lang . String test = "2005-01-02<sp>21:23:34" ; java . sql . Timestamp testTimestamp = ( ( java . sql . Timestamp ) ( handler . parse ( test ) ) ) ; "<AssertPlaceHolder>" ; } parseString ( java . math . BigInteger ) { return value . toString ( ) ; }
org . junit . Assert . assertEquals ( handler . parseString ( testTimestamp ) , test )
getGemeenteTestOK ( ) { final java . lang . String gemCode = "0008" ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . Partij expectedPartij = new nl . bzk . algemeenbrp . dal . domein . brp . entity . Partij ( "Bierum" , ( gemCode + "01" ) ) ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . Ge...
org . junit . Assert . assertEquals ( expected , resultGem )