input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
shouldReturnEqualForSameObjectIdsAndLocation ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelCacheFile left = createCacheFile ( zeroId ( ) , fromString ( "390b6b146aa218a9c985e6ce9df2845eb575be48" ) , getFile1Location ( ) ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelCacheFile right = createCacheFile ( zeroId ( ) , fromString ( "390b6b146aa218a9c985e6ce9df2845eb575be48" ) , getFile1Location ( ) ) ; boolean actual = left . equals ( right ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } org . eclipse . egit . ui . CommitMessageWithCaretPosition other = ( ( org . eclipse . egit . ui . CommitMessageWithCaretPosition ) ( obj ) ) ; return ( ( caretPosition ) == ( other . caretPosition ) ) && ( java . util . Objects . equals ( message , other . message ) ) ; } | org . junit . Assert . assertTrue ( actual ) |
testSplitDomain2 ( ) { logger . info ( "splitDomain2" ) ; java . lang . String domain = "example.com" ; java . util . Map < com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts , java . lang . String > expResult = new java . util . HashMap ( ) ; expResult . put ( URLParser . DomainParts . TLD , "com" ) ; expResult . put ( URLParser . DomainParts . DOMAINNAME , "example" ) ; expResult . put ( URLParser . DomainParts . SUBDOMAIN , null ) ; java . util . Map < com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts , java . lang . String > result = com . datumbox . framework . core . common . text . parsers . URLParser . splitDomain ( domain ) ; "<AssertPlaceHolder>" ; } splitDomain ( java . lang . String ) { com . datumbox . framework . core . common . text . parsers . Map < com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts , java . lang . String > domainParts = null ; java . lang . String [ ] dottedParts = domain . trim ( ) . toLowerCase ( Locale . ENGLISH ) . split ( "\\." ) ; if ( ( dottedParts . length ) == 2 ) { domainParts = new com . datumbox . framework . core . common . text . parsers . HashMap ( ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . SUBDOMAIN , null ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . DOMAINNAME , dottedParts [ 0 ] ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . TLD , dottedParts [ 1 ] ) ; } else if ( ( dottedParts . length ) > 2 ) { int n = dottedParts . length ; if ( ( ( com . datumbox . framework . core . common . text . parsers . URLParser . COMMON_TLD . contains ( ( ( ( dottedParts [ ( n - 2 ) ] ) + "." ) + ( dottedParts [ ( n - 1 ) ] ) ) ) ) || ( ( com . datumbox . framework . core . common . text . parsers . URLParser . COMMON_TLD . contains ( dottedParts [ ( n - 1 ) ] ) ) && ( com . datumbox . framework . core . common . text . parsers . URLParser . COMMON_SLD . contains ( dottedParts [ ( n - 2 ) ] ) ) ) ) || ( ( com . datumbox . framework . core . common . text . parsers . URLParser . COMMON_TLD . contains ( dottedParts [ ( n - 2 ) ] ) ) && ( com . datumbox . framework . core . common . text . parsers . URLParser . COMMON_SLD . contains ( dottedParts [ ( n - 1 ) ] ) ) ) ) { domainParts = new com . datumbox . framework . core . common . text . parsers . HashMap ( ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . TLD , ( ( ( dottedParts [ ( n - 2 ) ] ) + "." ) + ( dottedParts [ ( n - 1 ) ] ) ) ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . DOMAINNAME , dottedParts [ ( n - 3 ) ] ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( dottedParts [ 0 ] ) ; for ( int i = 1 ; i < ( n - 3 ) ; ++ i ) { sb . append ( "." ) . append ( dottedParts [ i ] ) ; } domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . SUBDOMAIN , sb . toString ( ) ) ; } else if ( com . datumbox . framework . core . common . text . parsers . URLParser . COMMON_TLD . contains ( dottedParts [ ( n - 1 ) ] ) ) { domainParts = new com . datumbox . framework . core . common . text . parsers . HashMap ( ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . TLD , dottedParts [ ( n - 1 ) ] ) ; domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . DOMAINNAME , dottedParts [ ( n - 2 ) ] ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( dottedParts [ 0 ] ) ; for ( int i = 1 ; i < ( n - 2 ) ; ++ i ) { sb . append ( "." ) . append ( dottedParts [ i ] ) ; } domainParts . put ( com . datumbox . framework . core . common . text . parsers . URLParser . DomainParts . SUBDOMAIN , sb . toString ( ) ) ; } } return domainParts ; } | org . junit . Assert . assertEquals ( expResult , result ) |
should_return_this ( ) { org . fest . assertions . api . CharacterAssert returned = assertions . isNotLessThan ( expected ) ; "<AssertPlaceHolder>" ; } isNotLessThan ( byte ) { bytes . assertNotLessThan ( description , actual , expected ) ; return this ; } | org . junit . Assert . assertSame ( assertions , returned ) |
shouldReturnNotEqualWhenCacheTreeAndCommit ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelObject left = new org . eclipse . egit . ui . internal . synchronize . model . GitModelCache ( createModelRepository ( ) , lookupRepository ( leftRepoFile ) , null ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelObject right = mock ( org . eclipse . egit . ui . internal . synchronize . model . GitModelCommit . class ) ; boolean actual = left . equals ( right ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } org . eclipse . egit . ui . CommitMessageWithCaretPosition other = ( ( org . eclipse . egit . ui . CommitMessageWithCaretPosition ) ( obj ) ) ; return ( ( caretPosition ) == ( other . caretPosition ) ) && ( java . util . Objects . equals ( message , other . message ) ) ; } | org . junit . Assert . assertFalse ( actual ) |
shouldExportDocIdQueryWithAllOptions ( ) { com . couchbase . client . java . search . queries . DocIdQuery fts = com . couchbase . client . java . search . SearchQuery . docId ( "id1" , "id2" ) . boost ( 1.5 ) . docIds ( "id3" ) ; com . couchbase . client . java . search . SearchQuery query = new com . couchbase . client . java . search . SearchQuery ( "foo" , fts ) . limit ( 10 ) ; com . couchbase . client . java . document . json . JsonObject expected = com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "query" , com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "ids" , com . couchbase . client . java . document . json . JsonArray . from ( "id1" , "id2" , "id3" ) ) . put ( "boost" , 1.5 ) ) . put ( "size" , 10 ) ; "<AssertPlaceHolder>" ; } export ( ) { return "INSERT<sp>INTO<sp>" + ( bucket . toString ( ) ) ; } | org . junit . Assert . assertEquals ( expected , query . export ( ) ) |
auditLoggingOffForInboundDR ( ) { ihe . iti . xds_b . _2007 . RetrieveDocumentSetRequestType request = new ihe . iti . xds_b . _2007 . RetrieveDocumentSetRequestType ( ) ; gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = new gov . hhs . fha . nhinc . common . nhinccommon . AssertionType ( ) ; ihe . iti . xds_b . _2007 . RetrieveDocumentSetResponseType expectedResponse = new ihe . iti . xds_b . _2007 . RetrieveDocumentSetResponseType ( ) ; java . util . Properties webContextProperties = new java . util . Properties ( ) ; gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrievePolicyTransformer_g0 pt = new gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrievePolicyTransformer_g0 ( ) ; gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveDelegate ad = new gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveDelegate ( ) ; gov . hhs . fha . nhinc . orchestration . CONNECTInboundOrchestrator orch = mock ( gov . hhs . fha . nhinc . orchestration . CONNECTInboundOrchestrator . class ) ; gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable orchestratable = mock ( gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable . class ) ; when ( orch . process ( any ( gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable . class ) ) ) . thenReturn ( orchestratable ) ; when ( orchestratable . getResponse ( ) ) . thenReturn ( expectedResponse ) ; gov . hhs . fha . nhinc . docretrieve . inbound . StandardInboundDocRetrieve inboundDocRetrieve = new gov . hhs . fha . nhinc . docretrieve . inbound . StandardInboundDocRetrieve ( pt , ad , orch , getAuditLogger ( false ) ) ; ihe . iti . xds_b . _2007 . RetrieveDocumentSetResponseType actualResponse = inboundDocRetrieve . respondingGatewayCrossGatewayRetrieve ( request , assertion , webContextProperties ) ; "<AssertPlaceHolder>" ; verify ( mockEJBLogger , never ( ) ) . auditResponseMessage ( eq ( request ) , eq ( actualResponse ) , eq ( assertion ) , isNull ( gov . hhs . fha . nhinc . common . nhinccommon . NhinTargetSystemType . class ) , eq ( NhincConstants . AUDIT_LOG_INBOUND_DIRECTION ) , eq ( NhincConstants . AUDIT_LOG_NHIN_INTERFACE ) , eq ( Boolean . FALSE ) , eq ( webContextProperties ) , eq ( NhincConstants . DOC_RETRIEVE_SERVICE_NAME ) , any ( gov . hhs . fha . nhinc . docretrieve . audit . transform . DocRetrieveAuditTransforms . class ) ) ; } respondingGatewayCrossGatewayRetrieve ( ihe . iti . xds_b . _2007 . RetrieveDocumentSetRequestType , gov . hhs . fha . nhinc . common . nhinccommon . AssertionType , java . util . Properties ) { logInfoServiceProcess ( this . getClass ( ) ) ; gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable inboundOrchestrable = createInboundOrchestrable ( body , assertion , webContextProperties ) ; gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable orchResponse = ( ( gov . hhs . fha . nhinc . docretrieve . nhin . InboundDocRetrieveOrchestratable ) ( getOrchestrator ( ) . process ( inboundOrchestrable ) ) ) ; auditResponse ( body , orchResponse . getResponse ( ) , assertion , webContextProperties ) ; return orchResponse . getResponse ( ) ; } | org . junit . Assert . assertSame ( expectedResponse , actualResponse ) |
getSystemVariableScope ( ) { "<AssertPlaceHolder>" ; } getVariableScope ( java . lang . String ) { switch ( codeOfScope ) { case "s" : return org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . VariableScope . SYSTEM ; case "r" : return org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . VariableScope . ROOT ; case "p" : return org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . VariableScope . PARENT ; case "g" : return org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . VariableScope . GRAND_PARENT ; default : throw org . mozilla . javascript . Context . reportRuntimeError ( ( "The<sp>argument<sp>type<sp>of<sp>function<sp>call<sp>" + "setVariable<sp>should<sp>either<sp>be<sp>\"s\",<sp>\"r\",<sp>\"p\",<sp>or<sp>\"g\"." ) ) ; } } | org . junit . Assert . assertEquals ( org . pentaho . di . trans . steps . scriptvalues_mod . ScriptValuesAddedFunctions . getVariableScope ( "s" ) , ScriptValuesAddedFunctions . VariableScope . SYSTEM ) |
stressTestSlotLocks ( ) { com . hortonworks . registries . common . SlotSynchronizer < java . lang . Integer > slotSynchronizer = new com . hortonworks . registries . common . SlotSynchronizer ( ) ; int key = new java . util . Random ( ) . nextInt ( ) ; int size = 64 ; long limit = 1000000 ; java . util . concurrent . atomic . AtomicLong aggregatedCount = new java . util . concurrent . atomic . AtomicLong ( ) ; java . util . List < java . lang . Thread > threads = new java . util . ArrayList ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { threads . add ( new java . lang . Thread ( new com . hortonworks . registries . common . SlotSynchronizerTest . Work ( key , slotSynchronizer , limit , aggregatedCount ) ) ) ; } for ( java . lang . Thread thread : threads ) { thread . start ( ) ; } for ( java . lang . Thread thread : threads ) { thread . join ( ) ; } "<AssertPlaceHolder>" ; } get ( ) { return com . hortonworks . registries . common . SchemaRegistryServiceInfo . INSTANCE ; } | org . junit . Assert . assertEquals ( ( limit * size ) , aggregatedCount . get ( ) ) |
getMessageCallbackContextWithSavedInput ( tests . unit . com . microsoft . azure . sdk . iot . device . MessageCallback ) { java . lang . String inputName = "someValidInputName" ; final java . lang . String iotHubHostname = "test.iothubhostname" ; final java . lang . String deviceId = "test-deviceid" ; final java . lang . String deviceKey = "test-devicekey" ; final java . lang . String sharedAccessToken = null ; final tests . unit . com . microsoft . azure . sdk . iot . device . IotHubConnectionString iotHubConnectionString = tests . unit . com . microsoft . azure . sdk . iot . device . Deencapsulation . newInstance ( tests . unit . com . microsoft . azure . sdk . iot . device . IotHubConnectionString . class , new java . lang . Class [ ] { java . lang . String . class , java . lang . String . class , java . lang . String . class , java . lang . String . class } , iotHubHostname , deviceId , deviceKey , sharedAccessToken ) ; tests . unit . com . microsoft . azure . sdk . iot . device . DeviceClientConfig config = tests . unit . com . microsoft . azure . sdk . iot . device . Deencapsulation . newInstance ( tests . unit . com . microsoft . azure . sdk . iot . device . DeviceClientConfig . class , iotHubConnectionString ) ; java . lang . Object context = new java . lang . Object ( ) ; config . setMessageCallback ( inputName , mockCallback , context ) ; java . lang . Object testContext = config . getDeviceTelemetryMessageContext ( inputName ) ; final java . lang . Object expectedContext = context ; "<AssertPlaceHolder>" ; } getDeviceTelemetryMessageContext ( java . lang . String ) { if ( ( inputName == null ) || ( ! ( this . inputChannelMessageCallbacks . containsKey ( inputName ) ) ) ) { return this . defaultDeviceTelemetryMessageContext ; } else { return this . inputChannelMessageCallbacks . get ( inputName ) . getValue ( ) ; } } | org . junit . Assert . assertThat ( testContext , org . hamcrest . CoreMatchers . is ( expectedContext ) ) |
testMethodPostThing ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . client . target ( org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . generateURL ( "/post/thing" ) ) . request ( ) ; org . jboss . resteasy . test . rx . resource . Thing t = request . method ( "POST" , org . jboss . resteasy . test . rx . RxCompletionStageServerAsyncTest . aEntity , org . jboss . resteasy . test . rx . resource . Thing . class ) ; "<AssertPlaceHolder>" ; } method ( java . lang . String , javax . ws . rs . client . Entity , javax . ws . rs . core . GenericType ) { return eventSourceToObservable ( getEventSource ( ) , responseType , name , entity , getAccept ( ) ) ; } | org . junit . Assert . assertEquals ( new org . jboss . resteasy . test . rx . resource . Thing ( "a" ) , t ) |
testIsValidBackupFilename_withValidZipBackupFilename_succeeds ( ) { java . lang . String givenFilename = "/example/filename.zip" ; boolean result = this . target . isValidBackupFilename ( givenFilename ) ; "<AssertPlaceHolder>" ; } isValidBackupFilename ( java . lang . String ) { return ( isValidZipBackupFilename ( filename ) ) || ( isValidEncryptedBackupFilename ( filename ) ) ; } | org . junit . Assert . assertTrue ( result ) |
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . mark . scale . MarkScale context = new org . lnu . is . domain . mark . scale . MarkScale ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>MarkScale<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . lnu . is . pagination . MultiplePagedSearch < org . lnu . is . domain . mark . scale . MarkScale > pagedSearch = new org . lnu . is . pagination . MultiplePagedSearch ( ) ; pagedSearch . setEntity ( context ) ; java . lang . String actualQuery = unit . build ( pagedSearch ) ; "<AssertPlaceHolder>" ; } setEntity ( T ) { this . entity = entity ; } | org . junit . Assert . assertEquals ( expected , actualQuery ) |
testCompatibleCategoriesUnknownType ( ) { com . twelvemonkeys . util . service . Iterator < java . lang . Class < ? > > categories = registry . compatibleCategories ( new java . lang . Object ( ) ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return indexIter . hasNext ( ) ; } | org . junit . Assert . assertFalse ( categories . hasNext ( ) ) |
eb10_lengthRequired ( ) { try { org . apache . juneau . rest . client . remote . EndToEndInterfaceTest . ieb . lengthRequired ( ) ; org . junit . Assert . fail ( ) ; } catch ( org . apache . juneau . rest . client . remote . LengthRequired e ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return msg ; } | org . junit . Assert . assertEquals ( "foo" , e . getMessage ( ) ) |
testToArrayWithClass ( ) { com . carrotsearch . hppc . KTypeArrayList < java . lang . Integer > l1 = com . carrotsearch . hppc . KTypeArrayList . from ( 1 , 2 , 3 ) ; java . lang . Integer [ ] result = l1 . toArray ( com . carrotsearch . hppc . Integer . class ) ; "<AssertPlaceHolder>" ; } toArray ( KType [ ] ) { assert ( target . length ) >= ( size ( ) ) : "Target<sp>array<sp>must<sp>be<sp>>=<sp>" + ( size ( ) ) ; if ( ( head ) < ( tail ) ) { java . lang . System . arraycopy ( buffer , head , target , 0 , size ( ) ) ; } else if ( ( head ) > ( tail ) ) { final int rightCount = ( buffer . length ) - ( head ) ; java . lang . System . arraycopy ( buffer , head , target , 0 , rightCount ) ; java . lang . System . arraycopy ( buffer , 0 , target , rightCount , tail ) ; } return target ; } | org . junit . Assert . assertArrayEquals ( new java . lang . Integer [ ] { 1 , 2 , 3 } , result ) |
testSearch ( ) { java . util . List < com . artivisi . belajar . restful . domain . ApplicationConfig > result = service . findApplicationConfigs ( "name" , new org . springframework . data . domain . PageRequest ( 0 , 5 ) ) . getContent ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertTrue ( ( ( result . size ( ) ) == 1 ) ) |
testCreateRawKeyedStateOutput ( ) { org . apache . flink . runtime . state . KeyedStateCheckpointOutputStream stream = snapshotContext . getRawKeyedOperatorStateOutput ( ) ; "<AssertPlaceHolder>" ; } getRawKeyedOperatorStateOutput ( ) { if ( null == ( keyedStateCheckpointOutputStream ) ) { org . apache . flink . util . Preconditions . checkState ( ( ( keyGroupRange ) != ( KeyGroupRange . EMPTY_KEY_GROUP_RANGE ) ) , "Not<sp>a<sp>keyed<sp>operator" ) ; keyedStateCheckpointOutputStream = new org . apache . flink . runtime . state . KeyedStateCheckpointOutputStream ( openAndRegisterNewStream ( ) , keyGroupRange ) ; } return keyedStateCheckpointOutputStream ; } | org . junit . Assert . assertNotNull ( stream ) |
getAllPrivileges_shouldReturnAllPrivilegesInTheSystem ( ) { executeDataSet ( org . openmrs . api . UserServiceTest . XML_FILENAME ) ; java . util . List < org . openmrs . Privilege > privileges = userService . getAllPrivileges ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return getMemberships ( ) . stream ( ) . filter ( ( m ) -> ! ( m . getVoided ( ) ) ) . collect ( java . util . stream . Collectors . toList ( ) ) . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , privileges . size ( ) ) |
objectShouldBeEquals ( ) { org . eclipse . che . ide . ext . java . jdi . shared . VariablePath path = mock ( org . eclipse . che . ide . ext . java . jdi . shared . VariablePath . class ) ; org . eclipse . che . ide . ext . java . jdi . client . debug . DebuggerVariable testVariable = new org . eclipse . che . ide . ext . java . jdi . client . debug . DebuggerVariable ( variable ) ; when ( variable . getName ( ) ) . thenReturn ( org . eclipse . che . ide . ext . java . jdi . client . debug . DebuggerVariableTest . SOME_TEXT ) ; when ( variable . getValue ( ) ) . thenReturn ( org . eclipse . che . ide . ext . java . jdi . client . debug . DebuggerVariableTest . SOME_TEXT ) ; when ( variable . getVariablePath ( ) ) . thenReturn ( path ) ; boolean isEquals = debuggerVariable . equals ( testVariable ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof org . eclipse . che . ide . ext . java . client . project . node . jar . AbstractJarEntryNode ) ) return false ; if ( ! ( super . equals ( o ) ) ) return false ; org . eclipse . che . ide . ext . java . client . project . node . jar . AbstractJarEntryNode that = ( ( org . eclipse . che . ide . ext . java . client . project . node . jar . AbstractJarEntryNode ) ( o ) ) ; if ( ( libId ) != ( that . libId ) ) return false ; return true ; } | org . junit . Assert . assertThat ( isEquals , org . hamcrest . CoreMatchers . is ( true ) ) |
testOrderingOfPriorityLevel ( ) { jannovar . common . VariantType [ ] n = jannovar . common . VariantType . getPrioritySortedList ( ) ; for ( int i = 1 ; i < ( n . length ) ; ++ i ) { "<AssertPlaceHolder>" ; } } priorityLevel ( jannovar . common . VariantType ) { switch ( vt ) { case FS_DELETION : case FS_INSERTION : case NON_FS_SUBSTITUTION : case FS_SUBSTITUTION : case MISSENSE : case NON_FS_DELETION : case NON_FS_INSERTION : case SPLICING : case STOPGAIN : case STOPLOSS : case FS_DUPLICATION : case NON_FS_DUPLICATION : case START_LOSS : return 1 ; case ncRNA_EXONIC : case ncRNA_SPLICING : return 2 ; case UTR3 : return 3 ; case UTR5 : return 4 ; case SYNONYMOUS : return 5 ; case INTRONIC : return 6 ; case ncRNA_INTRONIC : return 7 ; case UPSTREAM : case DOWNSTREAM : return 8 ; case INTERGENIC : return 9 ; case ERROR : return 10 ; default : return 10 ; } } | org . junit . Assert . assertTrue ( ( ( jannovar . common . VariantType . priorityLevel ( n [ ( i - 1 ) ] ) ) <= ( jannovar . common . VariantType . priorityLevel ( n [ i ] ) ) ) ) |
testVersioning ( ) { org . apache . chemistry . opencmis . client . api . CmisObject ob = session . getObjectByPath ( "/testfolder1/testfile1" ) ; java . lang . String id = ob . getId ( ) ; checkValue ( PropertyIds . IS_LATEST_VERSION , Boolean . FALSE , ob ) ; checkValue ( PropertyIds . IS_MAJOR_VERSION , Boolean . FALSE , ob ) ; checkValue ( PropertyIds . IS_LATEST_MAJOR_VERSION , Boolean . FALSE , ob ) ; checkValue ( PropertyIds . VERSION_LABEL , null , ob ) ; checkValue ( PropertyIds . VERSION_SERIES_ID , org . nuxeo . ecm . core . opencmis . impl . CmisSuiteSession . NOT_NULL , ob ) ; checkValue ( PropertyIds . IS_VERSION_SERIES_CHECKED_OUT , Boolean . TRUE , ob ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_ID , id , ob ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_BY , org . nuxeo . ecm . core . opencmis . impl . CmisSuiteSession . USERNAME , ob ) ; checkValue ( PropertyIds . CHECKIN_COMMENT , null , ob ) ; java . lang . String series = ob . getPropertyValue ( PropertyIds . VERSION_SERIES_ID ) ; org . apache . chemistry . opencmis . client . api . ObjectId vid = ( ( org . apache . chemistry . opencmis . client . api . Document ) ( ob ) ) . checkIn ( true , null , null , "comment" ) ; org . apache . chemistry . opencmis . client . api . CmisObject ver = session . getObject ( vid ) ; checkValue ( PropertyIds . IS_LATEST_VERSION , Boolean . TRUE , ver ) ; checkValue ( PropertyIds . IS_MAJOR_VERSION , Boolean . TRUE , ver ) ; checkValue ( PropertyIds . IS_LATEST_MAJOR_VERSION , Boolean . TRUE , ver ) ; checkValue ( PropertyIds . VERSION_LABEL , "1.0" , ver ) ; checkValue ( PropertyIds . VERSION_SERIES_ID , series , ver ) ; checkValue ( PropertyIds . IS_VERSION_SERIES_CHECKED_OUT , Boolean . FALSE , ver ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_ID , null , ver ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_BY , null , ver ) ; checkValue ( PropertyIds . CHECKIN_COMMENT , "comment" , ver ) ; session . clear ( ) ; org . apache . chemistry . opencmis . client . api . CmisObject ci = session . getObject ( ob ) ; checkValue ( PropertyIds . IS_LATEST_VERSION , Boolean . TRUE , ci ) ; checkValue ( PropertyIds . IS_MAJOR_VERSION , Boolean . TRUE , ci ) ; checkValue ( PropertyIds . IS_LATEST_MAJOR_VERSION , Boolean . TRUE , ci ) ; checkValue ( PropertyIds . VERSION_LABEL , "1.0" , ci ) ; checkValue ( PropertyIds . VERSION_SERIES_ID , series , ci ) ; checkValue ( PropertyIds . IS_VERSION_SERIES_CHECKED_OUT , Boolean . FALSE , ci ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_ID , null , ci ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_BY , null , ci ) ; checkValue ( PropertyIds . CHECKIN_COMMENT , "comment" , ci ) ; org . apache . chemistry . opencmis . client . api . ObjectId coid = ( ( org . apache . chemistry . opencmis . client . api . Document ) ( ci ) ) . checkOut ( ) ; session . clear ( ) ; org . apache . chemistry . opencmis . client . api . CmisObject co = session . getObject ( coid ) ; "<AssertPlaceHolder>" ; checkValue ( PropertyIds . IS_LATEST_VERSION , Boolean . FALSE , co ) ; checkValue ( PropertyIds . IS_MAJOR_VERSION , Boolean . FALSE , co ) ; checkValue ( PropertyIds . IS_LATEST_MAJOR_VERSION , Boolean . FALSE , co ) ; checkValue ( PropertyIds . VERSION_LABEL , null , co ) ; checkValue ( PropertyIds . VERSION_SERIES_ID , series , co ) ; checkValue ( PropertyIds . IS_VERSION_SERIES_CHECKED_OUT , Boolean . TRUE , co ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_ID , coid . getId ( ) , co ) ; checkValue ( PropertyIds . VERSION_SERIES_CHECKED_OUT_BY , org . nuxeo . ecm . core . opencmis . impl . CmisSuiteSession . USERNAME , co ) ; checkValue ( PropertyIds . CHECKIN_COMMENT , null , co ) ; } getId ( ) { return id ; } | org . junit . Assert . assertEquals ( id , coid . getId ( ) ) |
testEntryDate ( ) { com . sap . core . odata . ref . model . Employee employee1 = new com . sap . core . odata . ref . model . Employee ( 1 , null ) ; final java . util . Calendar date1 = java . util . Calendar . getInstance ( ) ; employee1 . setEntryDate ( date1 ) ; "<AssertPlaceHolder>" ; } getEntryDate ( ) { return entryDate ; } | org . junit . Assert . assertEquals ( date1 , employee1 . getEntryDate ( ) ) |
listAllVisibilityOptionsForwardsCalls ( ) { org . phenotips . data . permissions . EntityPermissionsManager internal = this . mocker . getInstance ( org . phenotips . data . permissions . EntityPermissionsManager . class , "secure" ) ; java . util . List < org . phenotips . data . permissions . Visibility > visibilities = new java . util . ArrayList ( ) ; when ( internal . listAllVisibilityOptions ( ) ) . thenReturn ( visibilities ) ; java . util . Collection < org . phenotips . data . permissions . Visibility > returnedVisibilities = this . mocker . getComponentUnderTest ( ) . listAllVisibilityOptions ( ) ; "<AssertPlaceHolder>" ; } listAllVisibilityOptions ( ) { return this . visibilityManager . listAllVisibilityOptions ( ) ; } | org . junit . Assert . assertSame ( visibilities , returnedVisibilities ) |
testConvertToAvroLong ( ) { long expected = 123456789L ; org . talend . daikon . avro . converter . AvroConverter < java . lang . Object , java . lang . Object > converter = org . talend . codegen . converter . IdentityConverter . getInstance ( ) ; long actual = ( ( java . lang . Long ) ( converter . convertToAvro ( expected ) ) ) ; "<AssertPlaceHolder>" ; } convertToAvro ( java . math . BigDecimal ) { return value . toString ( ) ; } | org . junit . Assert . assertEquals ( expected , actual ) |
testReferenceGetInvalidValue ( ) { com . mongodb . BasicDBObject given = new com . mongodb . BasicDBObject ( ) ; com . ebay . cloud . cms . dal . entity . flatten . impl . NewBsonEntity appEntity = new com . ebay . cloud . cms . dal . entity . flatten . impl . NewBsonEntity ( com . ebay . cloud . cms . dal . entity . flatten . EntityTest . appServiceMetadata , given ) ; com . ebay . cloud . cms . metadata . model . MetaField refField = com . ebay . cloud . cms . dal . entity . flatten . EntityTest . appServiceMetadata . getFieldByName ( com . ebay . cloud . cms . dal . entity . flatten . EntityTest . SERVICES ) ; com . mongodb . BasicDBObject dbo = new com . mongodb . BasicDBObject ( ) ; dbo . put ( MetaField . VALUE_KEY , null ) ; given . put ( refField . getName ( ) , dbo ) ; java . util . List < ? > services = appEntity . getFieldValues ( com . ebay . cloud . cms . dal . entity . flatten . EntityTest . SERVICES ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; } | org . junit . Assert . assertEquals ( 0 , services . size ( ) ) |
testToString ( ) { "<AssertPlaceHolder>" ; } create ( java . lang . Object [ ] ) { return new org . dayatang . domain . PositionalParameters ( params ) ; } | org . junit . Assert . assertEquals ( java . util . Arrays . toString ( params ) , org . dayatang . domain . PositionalParameters . create ( params ) . toString ( ) ) |
testSerialization ( ) { org . jfree . chart . axis . PeriodAxis a1 = new org . jfree . chart . axis . PeriodAxis ( "Test<sp>Axis" ) ; org . jfree . chart . axis . PeriodAxis a2 = ( ( org . jfree . chart . axis . PeriodAxis ) ( org . jfree . chart . TestUtilities . serialised ( a1 ) ) ) ; boolean b = a1 . equals ( a2 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return false ; if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) return false ; mdz . hc . ProcessValue other = ( ( mdz . hc . ProcessValue ) ( obj ) ) ; if ( ( state ) != ( other . state ) ) return false ; if ( ( timestamp ) == null ) { if ( ( other . timestamp ) != null ) return false ; } else if ( ! ( timestamp . equals ( other . timestamp ) ) ) return false ; if ( ( value ) == null ) { if ( ( other . value ) != null ) return false ; } else if ( ! ( value . equals ( other . value ) ) ) return false ; return true ; } | org . junit . Assert . assertTrue ( b ) |
testGetAnalysisPhase ( ) { org . owasp . dependencycheck . analyzer . AnalysisPhase expResult = AnalysisPhase . FINDING_ANALYSIS ; org . owasp . dependencycheck . analyzer . AnalysisPhase result = analyzer . getAnalysisPhase ( ) ; "<AssertPlaceHolder>" ; } getAnalysisPhase ( ) { throw new java . lang . UnsupportedOperationException ( "Not<sp>supported<sp>yet." ) ; } | org . junit . Assert . assertEquals ( expResult , result ) |
testRemoveProperty ( ) { "<AssertPlaceHolder>" ; verify ( dlg , times ( 1 ) ) . removeProperty ( "propName" ) ; verify ( autosaveMgr , times ( 1 ) ) . autosave ( ) ; } removeProperty ( java . lang . String ) { getWrappedNodeBuilder ( ) . removeProperty ( name ) ; return this ; } | org . junit . Assert . assertFalse ( a . removeProperty ( "propName" ) ) |
testParseZeroImaginary ( ) { java . lang . String source = ( "-1" + ( getDecimalCharacter ( ) ) ) + "2323" ; org . apache . commons . math3 . complex . Complex expected = new org . apache . commons . math3 . complex . Complex ( ( - 1.2323 ) , 0 ) ; org . apache . commons . math3 . complex . Complex actual = complexFormat . parse ( source ) ; "<AssertPlaceHolder>" ; } parse ( com . google . javascript . jscomp . AbstractCompiler ) { try { com . google . javascript . jscomp . JsAst . logger_ . fine ( ( "Parsing:<sp>" + ( sourceFile . getName ( ) ) ) ) ; com . google . javascript . jscomp . parsing . ParserRunner . ParseResult result = com . google . javascript . jscomp . parsing . ParserRunner . parse ( sourceFile , sourceFile . getCode ( ) , compiler . getParserConfig ( ) , compiler . getDefaultErrorReporter ( ) , com . google . javascript . jscomp . JsAst . logger_ ) ; root = result . ast ; compiler . setOldParseTree ( sourceFile . getName ( ) , result . oldAst ) ; } catch ( java . io . IOException e ) { compiler . report ( com . google . javascript . jscomp . JSError . make ( AbstractCompiler . READ_ERROR , sourceFile . getName ( ) ) ) ; } if ( ( ( root ) == null ) || ( compiler . hasHaltingErrors ( ) ) ) { root = com . google . javascript . rhino . IR . script ( ) ; } else { compiler . prepareAst ( root ) ; } root . setStaticSourceFile ( sourceFile ) ; } | org . junit . Assert . assertEquals ( expected , actual ) |
testAsyncDetached ( ) { org . robolectric . Robolectric . getFakeHttpLayer ( ) . interceptHttpRequests ( false ) ; java . lang . String subpath = "/asyncdetached" ; java . lang . String body = "hello" ; stubFor ( get ( urlEqualTo ( subpath ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) . withBody ( body ) ) ) ; java . lang . String response = asyncEndpoint . asyncDetached ( ) ; verify ( getRequestedFor ( urlEqualTo ( subpath ) ) ) ; "<AssertPlaceHolder>" ; } get ( org . apache . http . HttpEntity ) { if ( entity == null ) { return null ; } org . apache . http . Header header = entity . getContentType ( ) ; if ( header != null ) { org . apache . http . HeaderElement [ ] elements = header . getElements ( ) ; if ( ( elements . length ) > 0 ) { return org . apache . http42 . entity . ContentType . create ( elements [ 0 ] ) ; } } return null ; } | org . junit . Assert . assertTrue ( response . equals ( body ) ) |
testUsesAndroidTheme ( ) { registerTheme ( Constants . THEME_ID_ANDROID ) ; com . eclipsesource . tabris . test . util . TabrisRequest request = environment . getRequest ( ) ; request . setHeader ( Constants . USER_AGENT , Constants . ID_ANDROID ) ; provider . accept ( request ) ; java . lang . String currentTheme = ( ( java . lang . String ) ( org . eclipse . rap . rwt . RWT . getUISession ( ) . getAttribute ( com . eclipsesource . tabris . internal . TabrisClientProviderTest . CURRENT_THEME_ID ) ) ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { return delegate . getAttribute ( arg0 ) ; } | org . junit . Assert . assertEquals ( Constants . THEME_ID_ANDROID , currentTheme ) |
testRemove ( ) { p1 . remove ( ) ; "<AssertPlaceHolder>" ; } v ( ) { return getGraph ( ) . v ( ) ; } | org . junit . Assert . assertEquals ( 1 , p1 . v ( ) . count ( ) ) |
testRemoveInstanceData ( ) { org . apache . ambari . server . view . ViewRegistry registry = org . apache . ambari . server . view . ViewRegistry . getInstance ( ) ; org . apache . ambari . server . orm . entities . ViewInstanceEntity viewInstanceEntity = org . apache . ambari . server . orm . entities . ViewInstanceEntityTest . getViewInstanceEntity ( ) ; viewInstanceEntity . putInstanceData ( "foo" , "value" ) ; org . apache . ambari . server . orm . entities . ViewInstanceDataEntity dataEntity = viewInstanceEntity . getInstanceData ( "foo" ) ; org . apache . ambari . server . view . ViewRegistryTest . viewInstanceDAO . removeData ( dataEntity ) ; expect ( org . apache . ambari . server . view . ViewRegistryTest . viewInstanceDAO . merge ( viewInstanceEntity ) ) . andReturn ( viewInstanceEntity ) ; replay ( org . apache . ambari . server . view . ViewRegistryTest . viewDAO , org . apache . ambari . server . view . ViewRegistryTest . viewInstanceDAO , org . apache . ambari . server . view . ViewRegistryTest . securityHelper ) ; registry . removeInstanceData ( viewInstanceEntity , "foo" ) ; "<AssertPlaceHolder>" ; verify ( org . apache . ambari . server . view . ViewRegistryTest . viewDAO , org . apache . ambari . server . view . ViewRegistryTest . viewInstanceDAO , org . apache . ambari . server . view . ViewRegistryTest . securityHelper ) ; } getInstanceData ( java . lang . String ) { java . lang . String user = getCurrentUserName ( ) ; for ( org . apache . ambari . server . orm . entities . ViewInstanceDataEntity viewInstanceDataEntity : data ) { if ( ( viewInstanceDataEntity . getName ( ) . equals ( key ) ) && ( viewInstanceDataEntity . getUser ( ) . equals ( user ) ) ) { return viewInstanceDataEntity ; } } return null ; } | org . junit . Assert . assertNull ( viewInstanceEntity . getInstanceData ( "foo" ) ) |
shouldReturnValidEmptyDetector ( ) { org . modeshape . jcr . mimetype . MimeTypeDetector detector = org . modeshape . jcr . mimetype . MimeTypeDetectors . createDetectorFor ( RepositoryConfiguration . FieldValue . MIMETYPE_DETECTION_NONE , environment ) ; "<AssertPlaceHolder>" ; } createDetectorFor ( java . lang . String , org . modeshape . jcr . Environment ) { switch ( mimeTypeDetectionConfig . toLowerCase ( ) ) { case RepositoryConfiguration . FieldValue . MIMETYPE_DETECTION_CONTENT : { return org . modeshape . jcr . mimetype . MimeTypeDetectors . TIKA_AVAILABLE ? new org . modeshape . jcr . mimetype . tika . TikaContentDetector ( environment ) : new org . modeshape . jcr . mimetype . DefaultMimeTypeDetector ( ) ; } case RepositoryConfiguration . FieldValue . MIMETYPE_DETECTION_NAME : { return org . modeshape . jcr . mimetype . MimeTypeDetectors . TIKA_AVAILABLE ? new org . modeshape . jcr . mimetype . tika . TikaNameOnlyDetector ( environment ) : new org . modeshape . jcr . mimetype . DefaultMimeTypeDetector ( ) ; } case RepositoryConfiguration . FieldValue . MIMETYPE_DETECTION_NONE : { return NullMimeTypeDetector . INSTANCE ; } default : { throw new java . lang . IllegalArgumentException ( ( "Unknown<sp>mime-type<sp>detector<sp>setting:<sp>" + mimeTypeDetectionConfig ) ) ; } } } | org . junit . Assert . assertEquals ( NullMimeTypeDetector . INSTANCE , detector ) |
allocate ( ) { char [ ] letters = arrayOfChar ( 500 ) ; "<AssertPlaceHolder>" ; } len ( java . lang . Object ) { return org . boon . core . Conversions . len ( obj ) ; } | org . junit . Assert . assertEquals ( 500 , len ( letters ) ) |
givenUsingGuava__whenByteArrayInputStreamToAByteBuffer_thenLengthMustMatch ( ) { java . io . InputStream initialStream = com . google . common . io . ByteSource . wrap ( new byte [ ] { 0 , 1 , 2 } ) . openStream ( ) ; byte [ ] targetArray = com . google . common . io . ByteStreams . toByteArray ( initialStream ) ; java . nio . ByteBuffer bufferByte = java . nio . ByteBuffer . wrap ( targetArray ) ; while ( bufferByte . hasRemaining ( ) ) { bufferByte . get ( ) ; } "<AssertPlaceHolder>" ; } get ( ) { java . lang . StringBuilder stringBuilder = new java . lang . StringBuilder ( ) ; stringBuilder . append ( "Host:<sp>" ) . append ( java . net . InetAddress . getLocalHost ( ) . getHostName ( ) ) . append ( "<br/>" ) ; stringBuilder . append ( "IP:<sp>" ) . append ( java . net . InetAddress . getLocalHost ( ) . getHostAddress ( ) ) . append ( "<br/>" ) ; stringBuilder . append ( "Type:<sp>" ) . append ( "Travel<sp>Agency" ) . append ( "<br/>" ) ; return stringBuilder . toString ( ) ; } | org . junit . Assert . assertEquals ( bufferByte . position ( ) , targetArray . length ) |
testProcess_broken ( ) { System . out . println ( "broken" ) ; kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor instance = new kg . apc . jmeter . modifiers . RawRequestSourcePreProcessor ( ) ; instance . testStarted ( ) ; instance . setFileName ( ( ( basedir ) + "/rawdata_broken.txt" ) ) ; int n = 1 ; try { for ( ; n < 20 ; n ++ ) { instance . process ( ) ; org . apache . jmeter . threads . JMeterContextService . getContext ( ) . getVariables ( ) . get ( instance . getVarName ( ) ) ; } } catch ( java . lang . RuntimeException ex ) { "<AssertPlaceHolder>" ; } } getVarName ( ) { return getPropertyAsString ( kg . apc . jmeter . modifiers . FifoPopPreProcessor . variableName ) ; } | org . junit . Assert . assertEquals ( 3 , n ) |
testApplyStaticNatVspCommand ( ) { _resource . configure ( "NuageVspResource" , _hostDetails ) ; net . nuage . vsp . acs . client . api . model . VspNetwork vspNetwork = buildVspNetwork ( ) ; java . util . List < net . nuage . vsp . acs . client . api . model . VspStaticNat > vspStaticNatDetails = com . google . common . collect . Lists . newArrayList ( buildVspStaticNat ( ) ) ; com . cloud . agent . api . element . ApplyStaticNatVspCommand cmd = new com . cloud . agent . api . element . ApplyStaticNatVspCommand ( vspNetwork , vspStaticNatDetails ) ; com . cloud . agent . api . Answer applyNatAns = _resource . executeRequest ( cmd ) ; "<AssertPlaceHolder>" ; } getResult ( ) { return this . result ; } | org . junit . Assert . assertTrue ( applyNatAns . getResult ( ) ) |
shouldRaiseConstraintViolationWithNoGroupsCauseNullTitleAndPrice ( ) { org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 cd = new org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 ( ) ; cd . setDescription ( "Best<sp>Jazz<sp>CD<sp>ever" ) ; java . util . Set < org . agoncal . book . javaee7 . chapter03 . ex21 . ConstraintViolation < org . agoncal . book . javaee7 . chapter03 . ex21 . CD21 > > violations = org . agoncal . book . javaee7 . chapter03 . ex21 . CD21Test . validator . validate ( cd ) ; "<AssertPlaceHolder>" ; } validate ( org . agoncal . book . javaee7 . chapter14 . ex21 . CreditCard21 ) { java . lang . Character lastDigit = creditCard . getNumber ( ) . charAt ( ( ( creditCard . getNumber ( ) . length ( ) ) - 1 ) ) ; if ( ( ( java . lang . Integer . parseInt ( lastDigit . toString ( ) ) ) % 2 ) == 0 ) { return true ; } else { return false ; } } | org . junit . Assert . assertEquals ( 2 , violations . size ( ) ) |
testSzenario_003_withValidData_1 ( ) { com . vividsolutions . jts . geom . MultiPolygon splitee = ( ( com . vividsolutions . jts . geom . MultiPolygon ) ( org . locationtech . tools . geometry . split . SplitTestUtil . read ( "MULTIPOLYGON(((1<sp>1,<sp>1<sp>8,<sp>10<sp>8,<sp>10<sp>1,<sp>1<sp>1),(2<sp>3,<sp>8<sp>3,<sp>8<sp>6,<sp>2<sp>6,<sp>2<sp>3)))" ) ) ) ; com . vividsolutions . jts . geom . LineString splitter = ( ( com . vividsolutions . jts . geom . LineString ) ( org . locationtech . tools . geometry . split . SplitTestUtil . read ( "LINESTRING(2<sp>3,<sp>2<sp>2,<sp>5<sp>2,<sp>5<sp>5)" ) ) ) ; "<AssertPlaceHolder>" ; com . vividsolutions . jts . geom . Geometry partA = org . locationtech . tools . geometry . split . SplitTestUtil . read ( "POLYGON<sp>((1<sp>1,<sp>1<sp>8,<sp>10<sp>8,<sp>10<sp>1,<sp>1<sp>1),<sp>(5<sp>3,<sp>8<sp>3,<sp>8<sp>6,<sp>2<sp>6,<sp>2<sp>3,<sp>2<sp>2,<sp>5<sp>2,<sp>5<sp>3))" ) ; com . vividsolutions . jts . geom . Geometry partB = org . locationtech . tools . geometry . split . SplitTestUtil . read ( "POLYGON<sp>((2<sp>3,<sp>2<sp>2,<sp>5<sp>2,<sp>5<sp>3,<sp>2<sp>3))" ) ; java . util . List < com . vividsolutions . jts . geom . Geometry > expectedParts = new java . util . ArrayList < com . vividsolutions . jts . geom . Geometry > ( ) ; expectedParts . add ( partA ) ; expectedParts . add ( partB ) ; org . locationtech . tools . geometry . split . SplitTestUtil . testSplitStrategy ( splitee , splitter , expectedParts ) ; } isValid ( ) { return true ; } | org . junit . Assert . assertTrue ( splitee . isValid ( ) ) |
testAttachDisk ( ) { initializeExpectedInstance ( 2 ) ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; com . google . cloud . compute . deprecated . AttachedDisk . PersistentDiskConfiguration configuration = AttachedDisk . PersistentDiskConfiguration . of ( com . google . cloud . compute . deprecated . InstanceTest . DISK_ID ) ; com . google . cloud . compute . deprecated . Operation operation = new com . google . cloud . compute . deprecated . Operation . Builder ( serviceMockReturnsOptions ) . setOperationId ( com . google . cloud . compute . deprecated . ZoneOperationId . of ( "project" , "op" ) ) . build ( ) ; expect ( compute . attachDisk ( com . google . cloud . compute . deprecated . InstanceTest . INSTANCE_ID , configuration ) ) . andReturn ( operation ) ; replay ( compute ) ; initializeInstance ( ) ; "<AssertPlaceHolder>" ; } initializeInstance ( ) { instance = new com . google . cloud . compute . deprecated . Instance . Builder ( compute , com . google . cloud . compute . deprecated . InstanceTest . INSTANCE_ID , com . google . cloud . compute . deprecated . InstanceTest . MACHINE_TYPE , com . google . cloud . compute . deprecated . InstanceTest . ATTACHED_DISK , com . google . cloud . compute . deprecated . InstanceTest . NETWORK_INTERFACE ) . setGeneratedId ( com . google . cloud . compute . deprecated . InstanceTest . GENERATED_ID ) . setCreationTimestamp ( com . google . cloud . compute . deprecated . InstanceTest . CREATION_TIMESTAMP ) . setDescription ( com . google . cloud . compute . deprecated . InstanceTest . DESCRIPTION ) . setStatus ( com . google . cloud . compute . deprecated . InstanceTest . STATUS ) . setStatusMessage ( com . google . cloud . compute . deprecated . InstanceTest . STATUS_MESSAGE ) . setTags ( com . google . cloud . compute . deprecated . InstanceTest . TAGS ) . setCanIpForward ( com . google . cloud . compute . deprecated . InstanceTest . CAN_IP_FORWARD ) . setMetadata ( com . google . cloud . compute . deprecated . InstanceTest . METADATA ) . setServiceAccounts ( com . google . cloud . compute . deprecated . InstanceTest . SERVICE_ACCOUNTS ) . setSchedulingOptions ( com . google . cloud . compute . deprecated . InstanceTest . SCHEDULING_OPTIONS ) . setCpuPlatform ( com . google . cloud . compute . deprecated . InstanceTest . CPU_PLATFORM ) . build ( ) ; } | org . junit . Assert . assertSame ( operation , instance . attachDisk ( configuration ) ) |
testRequestParameterExists ( ) { org . ocpsoft . rewrite . servlet . config . RequestParameter parameter = org . ocpsoft . rewrite . servlet . config . RequestParameter . exists ( "foo" ) ; org . ocpsoft . rewrite . mock . MockEvaluationContext context = new org . ocpsoft . rewrite . mock . MockEvaluationContext ( ) ; org . ocpsoft . rewrite . util . ParameterUtils . initialize ( context , parameter ) ; "<AssertPlaceHolder>" ; } evaluate ( org . ocpsoft . rewrite . event . Rewrite , org . ocpsoft . rewrite . context . EvaluationContext ) { if ( ( zone ) != null ) return condition . matches ( new org . joda . time . DateTime ( zone ) ) ; else return condition . matches ( new org . joda . time . DateTime ( ) ) ; } | org . junit . Assert . assertTrue ( parameter . evaluate ( rewrite , context ) ) |
emptyEmptyList ( ) { java . util . List < oasis . names . tc . ebxml_regrep . xsd . rim . _3 . SlotType1 > list = createList ( ) ; com . google . common . base . Optional < java . lang . String > result = gov . hhs . fha . nhinc . util . JaxbDocumentUtils . findSlotType ( list , "expected" ) ; "<AssertPlaceHolder>" ; } absent ( ) { oasis . names . tc . ebxml_regrep . xsd . rim . _3 . ExtrinsicObjectType extrinsicObject = createExtrinsicObject ( "test" , "value" ) ; javax . xml . bind . JAXBElement < oasis . names . tc . ebxml_regrep . xsd . rim . _3 . ExtrinsicObjectType > jaxbWrapper = wrapExtrinsicObject ( extrinsicObject ) ; gov . hhs . fha . nhinc . event . builder . PayloadSizeExtractor extractor = new gov . hhs . fha . nhinc . event . builder . PayloadSizeExtractor ( ) ; com . google . common . base . Optional < java . lang . String > payloadSize = extractor . apply ( jaxbWrapper ) ; org . junit . Assert . assertFalse ( payloadSize . isPresent ( ) ) ; } | org . junit . Assert . assertEquals ( com . google . common . base . Optional . absent ( ) , result ) |
test_dag_descendant_2 ( ) { slib . graph . model . graph . utils . WalkConstraint wc = new slib . graph . utils . WalkConstraintGeneric ( org . openrdf . model . vocabulary . RDFS . SUBCLASSOF , slib . graph . model . graph . utils . Direction . IN ) ; rvf = new slib . graph . algo . extraction . rvf . RVF_DAG ( g , wc ) ; java . util . Set < org . openrdf . model . URI > desc = rvf . getRV ( testValues . G_BASIC_SPIDER ) ; System . out . println ( desc ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; } | org . junit . Assert . assertTrue ( ( ( desc . size ( ) ) == 4 ) ) |
testGetValidWithSomeValid ( ) { org . slc . sli . api . security . context . validator . StaffToStudentValidator mock = org . mockito . Mockito . spy ( validator ) ; org . mockito . Mockito . doReturn ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" ) ) ) . when ( mock ) . validate ( org . mockito . Mockito . eq ( EntityNames . STUDENT ) , org . mockito . Mockito . eq ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" ) ) ) ) ; org . mockito . Mockito . doReturn ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "2" ) ) ) . when ( mock ) . validate ( org . mockito . Mockito . eq ( EntityNames . STUDENT ) , org . mockito . Mockito . eq ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "2" ) ) ) ) ; org . mockito . Mockito . doReturn ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "3" ) ) ) . when ( mock ) . validate ( org . mockito . Mockito . eq ( EntityNames . STUDENT ) , org . mockito . Mockito . eq ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "3" ) ) ) ) ; org . mockito . Mockito . doReturn ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" , "2" , "3" ) ) ) . when ( mock ) . validate ( org . mockito . Mockito . eq ( EntityNames . STUDENT ) , org . mockito . Mockito . eq ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" , "2" , "3" , "4" ) ) ) ) ; java . util . Set < java . lang . String > validated = mock . getValid ( EntityNames . STUDENT , new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" , "2" , "3" , "4" ) ) ) ; validated . removeAll ( new java . util . HashSet < java . lang . String > ( java . util . Arrays . asList ( "1" , "2" , "3" ) ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( ( config ) == null ) || ( config . isEmpty ( ) ) ; } | org . junit . Assert . assertTrue ( validated . isEmpty ( ) ) |
retrieveSubscriptionReportDataUnit1Unit2Unit3 ( ) { java . util . List < org . oscm . reportingservice . dao . ReportResultData > result = retrieveSubscriptionReportData ( supplierCustomer . getOrganizationId ( ) , java . util . Arrays . asList ( java . lang . Long . valueOf ( unit1 . getKey ( ) ) , java . lang . Long . valueOf ( unit2 . getKey ( ) ) , java . lang . Long . valueOf ( unit3 . getKey ( ) ) ) ) ; "<AssertPlaceHolder>" ; verifySubscriptions ( result , subscription1Unit1 , subscription1Unit2 , subscription2Unit2 , subscription1Unit3 ) ; } size ( ) { return categoriesForMarketplace . size ( ) ; } | org . junit . Assert . assertEquals ( 4 , result . size ( ) ) |
testGetSnakGroup ( ) { org . wikidata . wdtk . datamodel . helpers . Snak s = factory . getNoValueSnak ( factory . getPropertyIdValue ( "P42" , "foo" ) ) ; org . wikidata . wdtk . datamodel . helpers . SnakGroup o1 = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeSnakGroup ( java . util . Collections . singletonList ( s ) ) ; org . wikidata . wdtk . datamodel . helpers . SnakGroup o2 = factory . getSnakGroup ( java . util . Collections . singletonList ( s ) ) ; "<AssertPlaceHolder>" ; } getSnakGroup ( java . util . List ) { return new org . wikidata . wdtk . datamodel . implementation . SnakGroupImpl ( new java . util . ArrayList ( snaks ) ) ; } | org . junit . Assert . assertEquals ( o1 , o2 ) |
CreateRatePlans ( ) { net . billforward . model . Product product = net . billforward . model . Product . getByID ( "D3E0F064-9E67-492E-8CFC-73E97B0B006A" ) ; net . billforward . model . UnitOfMeasure unitOfMeasure = net . billforward . model . UnitOfMeasure . getByID ( "12024AB2-1CB4-447A-968E-C1AE9DAE1CBF" ) ; net . billforward . model . PricingComponentTier tier = new net . billforward . model . PricingComponentTier ( ) ; tier . setLowerThreshold ( 2 ) ; tier . setUpperThreshold ( 4 ) ; tier . setPrice ( new java . math . BigDecimal ( ".10" ) ) ; tier . setPricingType ( PricingComponentTierType . unit ) ; net . billforward . model . PricingComponent pricingComponent = new net . billforward . model . PricingComponent ( ) ; pricingComponent . setChargeModel ( PricingComponentChargeModel . tiered ) ; pricingComponent . setChargeType ( PricingComponentChargeType . subscription ) ; pricingComponent . setName ( "Bars<sp>Of<sp>Chocolate!" ) ; pricingComponent . setUnitOfMeasureID ( unitOfMeasure . getID ( ) ) ; pricingComponent . setUpgradeMode ( ValueChangeMode . immediate ) ; pricingComponent . setDowngradeMode ( ValueChangeMode . delayed ) ; pricingComponent . setType ( PricingComponentType . tieredPricingComponent ) ; pricingComponent . getTiers ( ) . add ( tier ) ; net . billforward . model . RatePlan ratePlan = new net . billforward . model . RatePlan ( ) ; ratePlan . setCurrency ( java . util . Currency . getInstance ( "USD" ) ) ; ratePlan . setProductID ( product . getID ( ) ) ; ratePlan . getPricingComponents ( ) . add ( pricingComponent ) ; ratePlan . setName ( "Pricing<sp>Plan<sp>Name" ) ; ratePlan . setTaxStatus ( TaxStatus . exclusive ) ; ratePlan = net . billforward . model . RatePlan . create ( ratePlan ) ; System . out . println ( ratePlan . toString ( ) ) ; "<AssertPlaceHolder>" ; } toString ( ) { return java . lang . String . format ( "#%s@%s<sp>id=%s#<sp>JSON:<sp>%s" , this . getClass ( ) . getName ( ) , java . lang . System . identityHashCode ( this ) , this . getIDString ( ) , net . billforward . model . BillingEntity . PRETTY_PRINT_GSON . toJson ( this ) ) ; } | org . junit . Assert . assertNotNull ( ratePlan ) |
shouldCreateClientWhenJndiAddrProvider ( ) { com . google . code . ssm . providers . CacheConfiguration conf = new com . google . code . ssm . providers . CacheConfiguration ( ) ; conf . setConsistentHashing ( true ) ; com . google . code . ssm . config . AddressProvider addrsProvider = new com . google . code . ssm . config . JndiAddressProvider ( "memcached/ips" , "127.0.0.1:11211" ) ; factory . setConfiguration ( conf ) ; factory . setAddressProvider ( addrsProvider ) ; factory . afterPropertiesSet ( ) ; com . google . code . ssm . Cache cache = factory . createCache ( ) ; "<AssertPlaceHolder>" ; verify ( cacheClientFactory ) . create ( addrsProvider . getAddresses ( ) , conf ) ; } createCache ( ) { if ( ( cache ) != null ) { throw new java . lang . IllegalStateException ( java . lang . String . format ( "This<sp>factory<sp>has<sp>already<sp>created<sp>memcached<sp>client<sp>for<sp>cache<sp>%s" , cacheName ) ) ; } if ( isCacheDisabled ( ) ) { com . google . code . ssm . CacheFactory . LOGGER . warn ( "Cache<sp>{}<sp>is<sp>disabled" , cacheName ) ; cache = ( ( com . google . code . ssm . Cache ) ( java . lang . reflect . Proxy . newProxyInstance ( com . google . code . ssm . Cache . class . getClassLoader ( ) , new java . lang . Class [ ] { com . google . code . ssm . Cache . class } , new com . google . code . ssm . DisabledCacheInvocationHandler ( cacheName , cacheAliases ) ) ) ) ; return cache ; } if ( ( configuration ) == null ) { throw new java . lang . RuntimeException ( java . lang . String . format ( "The<sp>MemcachedConnectionBean<sp>for<sp>cache<sp>%s<sp>must<sp>be<sp>defined!" , cacheName ) ) ; } java . util . List < java . net . InetSocketAddress > addrs = addressProvider . getAddresses ( ) ; cache = new com . google . code . ssm . CacheImpl ( cacheName , cacheAliases , createClient ( addrs ) , defaultSerializationType , jsonTranscoder , javaTranscoder , customTranscoder , new com . google . code . ssm . CacheProperties ( configuration . isUseNameAsKeyPrefix ( ) , configuration . getKeyPrefixSeparator ( ) ) ) ; return cache ; } | org . junit . Assert . assertNotNull ( cache ) |
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . Website > websites = _persistence . fetchByPrimaryKeys ( primaryKeys ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return _portalCacheListeners . isEmpty ( ) ; } | org . junit . Assert . assertTrue ( websites . isEmpty ( ) ) |
test14 ( ) { org . demoiselle . jee . core . api . security . TokenType expResult = org . demoiselle . jee . core . api . security . TokenType . JWT ; org . demoiselle . jee . core . api . security . TokenType result = instance . getType ( ) ; "<AssertPlaceHolder>" ; } getType ( ) { return type ; } | org . junit . Assert . assertEquals ( expResult , result ) |
testDoImportWhenNoMigratableInstalled ( ) { context = new org . codice . ddf . configuration . migration . ImportMigrationContextImpl ( report , mockMigrationZipFile , MIGRATABLE_ID ) ; context . doImport ( ) ; "<AssertPlaceHolder>" ; thrown . expect ( org . codice . ddf . migration . MigrationException . class ) ; thrown . expectMessage ( org . hamcrest . Matchers . equalTo ( "Import<sp>error:<sp>unknown<sp>data<sp>found<sp>in<sp>exported<sp>file." ) ) ; report . verifyCompletion ( ) ; } hasErrors ( ) { runCodes ( ) ; return ( numErrors ) > 0 ; } | org . junit . Assert . assertThat ( report . hasErrors ( ) , org . hamcrest . Matchers . equalTo ( true ) ) |
validateSpecialCharactersGreaterThanEnd ( ) { java . lang . String fileName = "test>.txt" ; "<AssertPlaceHolder>" ; } hasSpecialCharacters ( java . lang . String ) { java . util . regex . Pattern special = java . util . regex . Pattern . compile ( org . digidoc4j . utils . Helper . SPECIAL_CHARACTERS ) ; java . util . regex . Matcher hasSpecial = special . matcher ( fileName ) ; return hasSpecial . find ( ) ; } | org . junit . Assert . assertTrue ( org . digidoc4j . utils . Helper . hasSpecialCharacters ( fileName ) ) |
testSearchUsers ( ) { java . lang . String someUserId = "someUserId" ; java . lang . String someName = "someName" ; java . lang . String someEmail = "someEmail" ; java . lang . String anotherUserId = "anotherUserId" ; java . lang . String anotherName = "anotherName" ; java . lang . String anotherEmail = "anotherEmail" ; java . lang . String someKeyword = "someKeyword" ; int someOffset = 0 ; int someLimit = 10 ; com . ctrip . framework . apollo . portal . spi . ctrip . CtripUserService . UserServiceResponse someUserResponse = assembleUserServiceResponse ( someUserId , someName , someEmail ) ; com . ctrip . framework . apollo . portal . spi . ctrip . CtripUserService . UserServiceResponse anotherUserResponse = assembleUserServiceResponse ( anotherUserId , anotherName , anotherEmail ) ; java . util . Map < java . lang . String , java . util . List < com . ctrip . framework . apollo . portal . spi . ctrip . CtripUserService . UserServiceResponse > > resultMap = com . google . common . collect . ImmutableMap . of ( "result" , com . google . common . collect . Lists . newArrayList ( someUserResponse , anotherUserResponse ) ) ; org . springframework . http . ResponseEntity < java . util . Map < java . lang . String , java . util . List < com . ctrip . framework . apollo . portal . spi . ctrip . CtripUserService . UserServiceResponse > > > someResponse = new org . springframework . http . ResponseEntity ( resultMap , org . springframework . http . HttpStatus . OK ) ; when ( restTemplate . exchange ( eq ( someUserServiceUrl ) , eq ( HttpMethod . POST ) , any ( org . springframework . http . HttpEntity . class ) , eq ( someResponseType ) ) ) . thenReturn ( someResponse ) ; java . util . List < com . ctrip . framework . apollo . portal . entity . bo . UserInfo > users = ctripUserService . searchUsers ( someKeyword , someOffset , someLimit ) ; "<AssertPlaceHolder>" ; compareUserInfoAndUserServiceResponse ( someUserResponse , users . get ( 0 ) ) ; compareUserInfoAndUserServiceResponse ( anotherUserResponse , users . get ( 1 ) ) ; } searchUsers ( java . lang . String , int , int ) { return java . util . Arrays . asList ( assembleDefaultUser ( ) ) ; } | org . junit . Assert . assertEquals ( 2 , users . size ( ) ) |
testInsert ( ) { com . excilys . ebi . spring . dbunit . test . MyEntity myEntity = new com . excilys . ebi . spring . dbunit . test . MyEntity ( ) ; myEntity . setId ( "id2000" ) ; myEntity . setName ( "name2000" ) ; myEntityDao . saveOrUpdate ( myEntity ) ; java . util . List < com . excilys . ebi . spring . dbunit . test . MyEntity > entities = myEntityDao . loadAll ( ) ; "<AssertPlaceHolder>" ; } loadAll ( ) { return getHibernateTemplate ( ) . loadAll ( com . excilys . ebi . spring . dbunit . test . MyEntity . class ) ; } | org . junit . Assert . assertEquals ( 5 , entities . size ( ) ) |
singleFieldTest ( ) { if ( org . apache . hyracks . storage . am . bloomfilter . LOGGER . isLoggable ( Level . INFO ) ) { org . apache . hyracks . storage . am . bloomfilter . LOGGER . info ( "TESTING<sp>BLOOM<sp>FILTER" ) ; } org . apache . hyracks . storage . common . buffercache . IBufferCache bufferCache = harness . getBufferCache ( ) ; int numElements = 100 ; int [ ] keyFields = new int [ ] { 0 } ; org . apache . hyracks . storage . am . bloomfilter . impls . BloomFilter bf = new org . apache . hyracks . storage . am . bloomfilter . impls . BloomFilter ( bufferCache , harness . getFileMapProvider ( ) , harness . getFileReference ( ) , keyFields ) ; double acceptanleFalsePositiveRate = 0.1 ; int maxBucketsPerElement = org . apache . hyracks . storage . am . bloomfilter . impls . BloomCalculations . maxBucketsPerElement ( numElements ) ; org . apache . hyracks . storage . am . bloomfilter . impls . BloomFilterSpecification bloomFilterSpec = org . apache . hyracks . storage . am . bloomfilter . impls . BloomCalculations . computeBloomSpec ( maxBucketsPerElement , acceptanleFalsePositiveRate ) ; bf . create ( ) ; bf . activate ( ) ; org . apache . hyracks . storage . am . common . api . IIndexBulkLoader builder = bf . createBuilder ( numElements , bloomFilterSpec . getNumHashes ( ) , bloomFilterSpec . getNumBucketsPerElements ( ) ) ; int fieldCount = 2 ; org . apache . hyracks . dataflow . common . comm . io . ArrayTupleBuilder tupleBuilder = new org . apache . hyracks . dataflow . common . comm . io . ArrayTupleBuilder ( fieldCount ) ; org . apache . hyracks . dataflow . common . comm . io . ArrayTupleReference tuple = new org . apache . hyracks . dataflow . common . comm . io . ArrayTupleReference ( ) ; int maxKey = 1000 ; java . util . TreeSet < java . lang . Integer > uniqueKeys = new java . util . TreeSet < java . lang . Integer > ( ) ; java . util . ArrayList < java . lang . Integer > keys = new java . util . ArrayList < java . lang . Integer > ( ) ; while ( ( uniqueKeys . size ( ) ) < numElements ) { int key = ( rnd . nextInt ( ) ) % maxKey ; uniqueKeys . add ( key ) ; } for ( java . lang . Integer i : uniqueKeys ) { keys . add ( i ) ; } for ( int i = 0 ; i < ( keys . size ( ) ) ; ++ i ) { org . apache . hyracks . dataflow . common . util . TupleUtils . createIntegerTuple ( tupleBuilder , tuple , keys . get ( i ) , i ) ; builder . add ( tuple ) ; } builder . end ( ) ; long [ ] hashes = new long [ 2 ] ; for ( int i = 0 ; i < ( keys . size ( ) ) ; ++ i ) { org . apache . hyracks . dataflow . common . util . TupleUtils . createIntegerTuple ( tupleBuilder , tuple , keys . get ( i ) , i ) ; "<AssertPlaceHolder>" ; } bf . deactivate ( ) ; bf . destroy ( ) ; } contains ( org . apache . hyracks . dataflow . common . data . accessors . ITupleReference , long [ ] ) { if ( ( numPages ) == 0 ) { return false ; } org . apache . hyracks . storage . am . bloomfilter . impls . MurmurHash128Bit . hash3_x64_128 ( tuple , keyFields , org . apache . hyracks . storage . am . bloomfilter . impls . BloomFilter . SEED , hashes ) ; for ( int i = 0 ; i < ( numHashes ) ; ++ i ) { long hash = java . lang . Math . abs ( ( ( ( hashes [ 0 ] ) + ( i * ( hashes [ 1 ] ) ) ) % ( numBits ) ) ) ; org . apache . hyracks . storage . common . buffercache . ICachedPage page = bufferCache . pin ( org . apache . hyracks . storage . common . file . BufferedFileHandle . getDiskPageId ( fileId , ( ( ( int ) ( hash / ( numBitsPerPage ) ) ) + 1 ) ) , false ) ; page . acquireReadLatch ( ) ; try { java . nio . ByteBuffer buffer = page . getBuffer ( ) ; int byteIndex = ( ( int ) ( hash % ( numBitsPerPage ) ) ) > > 3 ; byte b = buffer . get ( byteIndex ) ; int bitIndex = ( ( int ) ( hash % ( numBitsPerPage ) ) ) & 7 ; if ( ! ( ( b & ( 1L << bitIndex ) ) != 0 ) ) { return false ; } } finally { page . releaseReadLatch ( ) ; bufferCache . unpin ( page ) ; } } return true ; } | org . junit . Assert . assertTrue ( bf . contains ( tuple , hashes ) ) |
testCreateContextWithTransactedSessionMode ( ) { org . apache . qpid . proton . amqp . Binary txnId = new org . apache . qpid . proton . amqp . Binary ( new byte [ ] { ( ( byte ) ( 5 ) ) , ( ( byte ) ( 6 ) ) , ( ( byte ) ( 7 ) ) , ( ( byte ) ( 8 ) ) } ) ; try ( org . apache . qpid . jms . test . testpeer . TestAmqpPeer testPeer = new org . apache . qpid . jms . test . testpeer . TestAmqpPeer ( ) ) { javax . jms . JMSContext context = testFixture . createJMSContext ( testPeer , JMSContext . SESSION_TRANSACTED ) ; "<AssertPlaceHolder>" ; testPeer . expectBegin ( ) ; testPeer . expectCoordinatorAttach ( ) ; testPeer . expectDeclare ( txnId ) ; testPeer . expectDischarge ( txnId , true ) ; testPeer . expectEnd ( ) ; testPeer . expectClose ( ) ; context . createTopic ( "TopicName" ) ; context . close ( ) ; testPeer . waitForAllHandlersToComplete ( 1000 ) ; } } getSessionMode ( ) { return sessionMode ; } | org . junit . Assert . assertEquals ( JMSContext . SESSION_TRANSACTED , context . getSessionMode ( ) ) |
testMinute ( ) { org . apache . cayenne . exp . Expression exp = org . apache . cayenne . exp . ExpressionFactory . exp ( "minute(timestampColumn)<sp>=<sp>59" ) ; try { long res = org . apache . cayenne . query . ObjectSelect . query ( org . apache . cayenne . testdo . date_time . DateTestEntity . class , exp ) . selectCount ( context ) ; "<AssertPlaceHolder>" ; } catch ( org . apache . cayenne . CayenneRuntimeException e ) { if ( unitDbAdapter . supportsExtractPart ( ASTExtract . DateTimePart . MINUTE ) ) { throw e ; } } } selectCount ( org . apache . cayenne . ObjectContext ) { return count ( ) . selectOne ( context ) ; } | org . junit . Assert . assertEquals ( 1 , res ) |
getDescriptorFromServer_goodTag ( ) { io . dockstore . client . cli . nested . ToolClient toolClient = new io . dockstore . client . cli . nested . ToolClient ( containersApi , containertagsApi , usersApi , client , false ) ; io . swagger . client . model . SourceFile cwl = toolClient . getDescriptorFromServer ( ( ( ( io . dockstore . client . cli . nested . ToolClientTest . REPOSITORY ) + ":" ) + ( io . dockstore . client . cli . nested . ToolClientTest . GOOD_TAG ) ) , "cwl" ) ; "<AssertPlaceHolder>" ; } getDescriptorFromServer ( java . lang . String , java . lang . String ) { java . lang . String [ ] parts = entry . split ( ":" ) ; java . lang . String path = parts [ 0 ] ; java . lang . String tag = ( ( parts . length ) > 1 ) ? parts [ 1 ] : null ; io . swagger . client . model . SourceFile file = new io . swagger . client . model . SourceFile ( ) ; io . swagger . client . model . DockstoreTool container = getDockstoreTool ( path ) ; if ( ( tag == null ) && ( ( container . getDefaultVersion ( ) ) != null ) ) { tag = container . getDefaultVersion ( ) ; } if ( container != null ) { if ( descriptorType . equals ( io . dockstore . client . cli . nested . CWL_STRING ) ) { file = containersApi . cwl ( container . getId ( ) , tag ) ; } else if ( descriptorType . equals ( io . dockstore . client . cli . nested . WDL_STRING ) ) { file = containersApi . wdl ( container . getId ( ) , tag ) ; } else { throw new java . lang . UnsupportedOperationException ( "other<sp>languages<sp>not<sp>supported<sp>yet" ) ; } } else { io . dockstore . client . cli . ArgumentUtility . errorMessage ( ( "No<sp>tool<sp>found<sp>with<sp>path<sp>" + entry ) , Client . API_ERROR ) ; } return file ; } | org . junit . Assert . assertNotNull ( cwl ) |
testReadFields ( ) { org . apache . accumulo . core . data . Range r = newRange ( "nuts" , "soup" ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . DataOutputStream dos = new java . io . DataOutputStream ( baos ) ; r . write ( dos ) ; dos . close ( ) ; java . io . ByteArrayInputStream bais = new java . io . ByteArrayInputStream ( baos . toByteArray ( ) ) ; java . io . DataInputStream dis = new java . io . DataInputStream ( bais ) ; org . apache . accumulo . core . data . Range r2 = new org . apache . accumulo . core . data . Range ( ) ; r2 . readFields ( dis ) ; dis . close ( ) ; "<AssertPlaceHolder>" ; } close ( ) { if ( ( scannerBase ) != null ) { scannerBase . close ( ) ; } if ( ( client ) != null ) { client . close ( ) ; } } | org . junit . Assert . assertEquals ( r , r2 ) |
testNewSystemTagCreator_0 ( ) { java . lang . String resUuid = java . util . UUID . randomUUID ( ) . toString ( ) ; org . zstack . tag . SystemTagCreator systemTagCreator = systemTag . newSystemTagCreator ( resUuid ) ; systemTagCreator . recreate = false ; systemTagCreator . unique = true ; systemTagCreator . ignoreIfExisting = true ; mockCreate ( resUuid ) ; org . zstack . header . tag . SystemTagInventory result = systemTagCreator . create ( ) ; "<AssertPlaceHolder>" ; } create ( ) { try { return doCreate ( ) ; } catch ( org . springframework . transaction . TransactionSystemException e ) { if ( exceptionCanBeIgnored ) { return null ; } else { throw e ; } } } | org . junit . Assert . assertNull ( result ) |
upgradeWorksToV21Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_v2 . Works . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_v2 . Works . class ) ; javax . xml . bind . Unmarshaller jaxbUnmarshaller = jaxbContext1 . createUnmarshaller ( ) ; java . io . InputStream v20Stream = org . orcid . record_2_0 . ConvertV2ToV2_1Test . class . getClassLoader ( ) . getResourceAsStream ( "test-works-2.0.xml" ) ; java . io . InputStream v21Stream = org . orcid . record_2_0 . ConvertV2ToV2_1Test . class . getClassLoader ( ) . getResourceAsStream ( "test-works-2.1.xml" ) ; org . orcid . jaxb . model . record . summary_v2 . Works v20Works = ( ( org . orcid . jaxb . model . record . summary_v2 . Works ) ( jaxbUnmarshaller . unmarshal ( v20Stream ) ) ) ; jaxbUnmarshaller = jaxbContext2 . createUnmarshaller ( ) ; org . orcid . jaxb . model . record . summary_v2 . Works v21Works1 = ( ( org . orcid . jaxb . model . record . summary_v2 . Works ) ( jaxbUnmarshaller . unmarshal ( v21Stream ) ) ) ; org . orcid . core . version . V2Convertible result = versionConverterV2_0ToV2_1 . upgrade ( new org . orcid . core . version . V2Convertible ( v20Works , "v2.1" ) ) ; org . orcid . jaxb . model . record . summary_v2 . Works v21Works2 = ( ( org . orcid . jaxb . model . record . summary_v2 . Works ) ( result . getObjectToConvert ( ) ) ) ; "<AssertPlaceHolder>" ; } getObjectToConvert ( ) { return objectToConvert ; } | org . junit . Assert . assertEquals ( v21Works1 , v21Works2 ) |
testOpenKeepClean ( ) { com . orientechnologies . orient . core . db . OrientDB orientDb = new com . orientechnologies . orient . core . db . OrientDB ( "embedded:./" , com . orientechnologies . orient . core . db . OrientDBConfig . defaultConfig ( ) ) ; try { orientDb . open ( "test" , "admin" , "admin" ) ; } catch ( java . lang . Exception e ) { } "<AssertPlaceHolder>" ; orientDb . close ( ) ; } exists ( java . lang . String ) { return orientDB . exists ( name ) ; } | org . junit . Assert . assertFalse ( orientDb . exists ( "test" ) ) |
testRuleLabelOfPositiveClosure ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "grammar<sp>P;\n" + ( "a<sp>:<sp>x=b+;\n" + "b<sp>:<sp>ID;\n" ) ) ) ; java . lang . String expecting = "(rule<sp>a<sp>ARG<sp>RET<sp>scope<sp>(BLOCK<sp>(ALT<sp>(+<sp>(BLOCK<sp>(ALT<sp>(=<sp>x<sp>b)<sp><end-of-alt>)<sp><end-of-block>))<sp><end-of-alt>)<sp><end-of-block>)<sp><end-of-rule>)" ; java . lang . String found = g . getRule ( "a" ) . tree . toStringTree ( ) ; "<AssertPlaceHolder>" ; } toStringTree ( ) { if ( ( ( children ) == null ) || ( children . isEmpty ( ) ) ) { return this . toString ( ) ; } java . lang . StringBuilder buf = new java . lang . StringBuilder ( ) ; if ( ! ( isNil ( ) ) ) { buf . append ( "(" ) ; buf . append ( this . toString ( ) ) ; buf . append ( '<sp>' ) ; } for ( int i = 0 ; ( ( children ) != null ) && ( i < ( children . size ( ) ) ) ; i ++ ) { org . antlr . runtime . tree . Tree t = ( ( org . antlr . runtime . tree . Tree ) ( children . get ( i ) ) ) ; if ( i > 0 ) { buf . append ( '<sp>' ) ; } buf . append ( t . toStringTree ( ) ) ; } if ( ! ( isNil ( ) ) ) { buf . append ( ")" ) ; } return buf . toString ( ) ; } | org . junit . Assert . assertEquals ( expecting , found ) |
testEvalWithFunction ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( org . drools . modelcompiler . domain . ChildFactWithObject . class . getCanonicalName ( ) ) ) + ";\n" ) + "import<sp>" ) + ( org . drools . modelcompiler . ComplexRulesTest . BusinessFunctions . class . getCanonicalName ( ) ) ) + ";\n" ) + "<sp>then\n" 1 ) + "<sp>then\n" 2 ) + "\n" ) + "<sp>$childFactWithObject<sp>:<sp>ChildFactWithObject<sp>(<sp>id<sp>==<sp>5\n" ) + "<sp>,<sp>eval(false<sp>==<sp>functions.arrayContainsInstanceWithParameters((Object[])$childFactWithObject.getObjectValue(),\n" ) + "<sp>new<sp>Object[]{\"getMessageId\",<sp>\"42103\"}))\n" ) + "<sp>then\n" 0 ) + "<sp>then\n" ) + "<sp>then\n" 3 ; org . kie . api . runtime . KieSession ksession = getKieSession ( str ) ; ksession . setGlobal ( "functions" , new org . drools . modelcompiler . ComplexRulesTest . BusinessFunctions ( ) ) ; ksession . insert ( new org . drools . modelcompiler . domain . ChildFactWithObject ( 5 , 1 , new java . lang . Object [ 0 ] ) ) ; "<AssertPlaceHolder>" ; } fireAllRules ( ) { return 0 ; } | org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) ) |
whenNextThenResultFirstElement ( ) { linkedSet . add ( 2 ) ; linkedSet . add ( 1 ) ; linkedSet . add ( 2 ) ; java . util . Iterator itr = linkedSet . iterator ( ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java . util . NoSuchElementException ( ) ; } E item = currentNode . element ; currentNode = currentNode . next ; ( cursor ) ++ ; return item ; } | org . junit . Assert . assertThat ( itr . next ( ) , org . hamcrest . core . Is . is ( 1 ) ) |
testAttribuutIsStamgegevenReferentieGeldigVoorLeveren ( ) { final nl . bzk . brp . domain . element . AttribuutElement attribuutElement = getAttribuutElement ( Element . PERSOON_NAAMGEBRUIK_ADELLIJKETITELCODE . getId ( ) ) ; final nl . bzk . brp . service . bevraging . zoekpersoongeneriek . AbstractZoekPersoonVerzoek bevragingVerzoek = maakBevragingVerzoek ( attribuutElement , "4" , Zoekoptie . EXACT ) ; final nl . bzk . brp . domain . algemeen . Autorisatiebundel autorisatieBundel = maakAutorisatiebundel ( false , attribuutElement ) ; final java . util . Set < nl . bzk . brp . domain . algemeen . Melding > meldingen = valideerZoekCriteriaService . valideerZoekCriteria ( bevragingVerzoek , autorisatieBundel ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testParseArgsWithMutexGroup ( ) { net . sourceforge . argparse4j . inf . MutuallyExclusiveGroup group = ap . addMutuallyExclusiveGroup ( "mutex" ) ; group . addArgument ( "--foo" ) ; group . addArgument ( "--bar" ) ; net . sourceforge . argparse4j . inf . Namespace res = ap . parseArgs ( "--foo<sp>bar" . split ( "<sp>" ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return ( ( T ) ( attrs_ . get ( dest ) ) ) ; } | org . junit . Assert . assertEquals ( "bar" , res . get ( "foo" ) ) |
givenMultiThread_whenSafeCounterWithoutLockIncrement ( ) { java . util . concurrent . ExecutorService service = java . util . concurrent . Executors . newFixedThreadPool ( 3 ) ; com . baeldung . concurrent . atomic . SafeCounterWithoutLock safeCounter = new com . baeldung . concurrent . atomic . SafeCounterWithoutLock ( ) ; java . util . stream . IntStream . range ( 0 , 1000 ) . forEach ( ( count ) -> service . submit ( safeCounter :: increment ) ) ; service . awaitTermination ( 100 , TimeUnit . MILLISECONDS ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return counter ; } | org . junit . Assert . assertEquals ( 1000 , safeCounter . getValue ( ) ) |
testRemovePropertyNonAccessible ( ) { secureNodeBuilder . removeProperty ( org . apache . jackrabbit . oak . core . TestPermissionProvider . NAME_NON_ACCESSIBLE ) ; try { permissionProvider . canReadProperties = true ; "<AssertPlaceHolder>" ; } finally { permissionProvider . canReadProperties = false ; } } hasProperty ( java . lang . String ) { return delegate . hasProperty ( name ) ; } | org . junit . Assert . assertTrue ( secureNodeBuilder . hasProperty ( org . apache . jackrabbit . oak . core . TestPermissionProvider . NAME_NON_ACCESSIBLE ) ) |
buildRunners_noValues ( ) { com . careerbuilder . search . relevancy . model . RequestNode [ ] requests = new com . careerbuilder . search . relevancy . model . RequestNode [ 1 ] ; com . careerbuilder . search . relevancy . generation . FacetFieldAdapter [ ] adapters = new com . careerbuilder . search . relevancy . generation . FacetFieldAdapter [ 1 ] ; adapters [ 0 ] = new com . careerbuilder . search . relevancy . generation . FacetFieldAdapter ( "testField" ) ; com . careerbuilder . search . relevancy . normalization . Deencapsulation . setField ( adapters [ 0 ] , "facetFieldExtension" , ".cs" ) ; requests [ 0 ] = new com . careerbuilder . search . relevancy . model . RequestNode ( null , "testField" ) ; com . careerbuilder . search . relevancy . normalization . NodeNormalizer target = new com . careerbuilder . search . relevancy . normalization . NodeNormalizer ( ) ; java . util . Map < java . lang . String , java . util . List < com . careerbuilder . search . relevancy . waitable . AggregationWaitable > > runners = com . careerbuilder . search . relevancy . normalization . Deencapsulation . invoke ( target , "buildRunners" , context , requests ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 0 , runners . get ( "testField" ) . size ( ) ) |
findString ( ) { java . lang . String xml = "<toplevel><foo>bar</foo></toplevel>" ; com . braintreegateway . util . NodeWrapper node = com . braintreegateway . util . SimpleNodeWrapper . parse ( xml ) ; "<AssertPlaceHolder>" ; } findString ( java . lang . String ) { com . braintreegateway . util . SimpleNodeWrapper node = find ( expression ) ; if ( node == null ) return null ; else return node . stringValue ( ) ; } | org . junit . Assert . assertEquals ( "bar" , node . findString ( "foo" ) ) |
getValue ( ) { mandatorySubject . setValue ( nl . bzk . migratiebrp . voisc . spd . EXPIRED ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertEquals ( nl . bzk . migratiebrp . voisc . spd . EXPIRED , mandatorySubject . getValue ( ) ) |
testTwoNestedDirectoriesTrue ( ) { try { java . lang . String firstLevelDir = org . apache . flink . testutils . TestFileUtils . randomFileName ( ) ; java . lang . String secondLevelDir = org . apache . flink . testutils . TestFileUtils . randomFileName ( ) ; java . lang . String thirdLevelDir = org . apache . flink . testutils . TestFileUtils . randomFileName ( ) ; java . io . File nestedNestedDir = tempFolder . newFolder ( firstLevelDir , secondLevelDir , thirdLevelDir ) ; java . io . File insideNestedDir = nestedNestedDir . getParentFile ( ) ; java . io . File nestedDir = insideNestedDir . getParentFile ( ) ; org . apache . flink . testutils . TestFileUtils . createTempFileInDirectory ( nestedDir . getAbsolutePath ( ) , "paella" ) ; org . apache . flink . testutils . TestFileUtils . createTempFileInDirectory ( insideNestedDir . getAbsolutePath ( ) , "kalamari" ) ; org . apache . flink . testutils . TestFileUtils . createTempFileInDirectory ( insideNestedDir . getAbsolutePath ( ) , "fideua" ) ; org . apache . flink . testutils . TestFileUtils . createTempFileInDirectory ( nestedNestedDir . getAbsolutePath ( ) , "bravas" ) ; this . format . setFilePath ( new org . apache . flink . core . fs . Path ( nestedDir . toURI ( ) . toString ( ) ) ) ; this . config . setBoolean ( "recursive.file.enumeration" , true ) ; format . configure ( this . config ) ; org . apache . flink . core . fs . FileInputSplit [ ] splits = format . createInputSplits ( 1 ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception ex ) { ex . printStackTrace ( ) ; org . junit . Assert . fail ( ex . getMessage ( ) ) ; } } createInputSplits ( int ) { return new org . apache . flink . core . io . GenericInputSplit [ ] { new org . apache . flink . runtime . jobgraph . JobTaskVertexTest . TestSplit ( 0 , 1 ) } ; } | org . junit . Assert . assertEquals ( 4 , splits . length ) |
testOrFunction ( ) { items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem1" , OpenClosedType . CLOSED ) ) ; items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem2" , org . eclipse . smarthome . core . types . UnDefType . UNDEF ) ) ; items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem3" , OpenClosedType . OPEN ) ) ; items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem4" , OpenClosedType . CLOSED ) ) ; items . add ( new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunctionTest . TestItem ( "TestItem5" , org . eclipse . smarthome . core . types . UnDefType . UNDEF ) ) ; function = new org . eclipse . smarthome . core . library . types . ArithmeticGroupFunction . Or ( OpenClosedType . OPEN , OpenClosedType . CLOSED ) ; org . eclipse . smarthome . core . types . State state = function . calculate ( items ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( OpenClosedType . OPEN , state ) |
testAgencAndId_ExistingAgencyId ( ) { org . onebusaway . gtfs . model . Stop stop = new org . onebusaway . gtfs . model . Stop ( ) ; stop . setId ( new org . onebusaway . gtfs . model . AgencyAndId ( "2" , "456" ) ) ; java . lang . Object value = convert ( stop , "id" , "123" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . String , java . lang . Object ) { return _converter . convertValue ( org . onebusaway . csv_entities . schema . BeanWrapperFactory . wrap ( bean ) , property , value ) ; } | org . junit . Assert . assertEquals ( new org . onebusaway . gtfs . model . AgencyAndId ( "2" , "123" ) , value ) |
shouldParseValue ( ) { de . slackspace . openkeepass . domain . CrsAlgorithm crsAlgorithm = de . slackspace . openkeepass . domain . CrsAlgorithm . parseValue ( 1 ) ; "<AssertPlaceHolder>" ; } parseValue ( int ) { switch ( value ) { case 0 : return de . slackspace . openkeepass . domain . CrsAlgorithm . Null ; case 1 : return de . slackspace . openkeepass . domain . CrsAlgorithm . ArcFourVariant ; case 2 : return de . slackspace . openkeepass . domain . CrsAlgorithm . Salsa20 ; default : throw new java . lang . IllegalArgumentException ( java . lang . String . format ( "Value<sp>%d<sp>is<sp>not<sp>a<sp>valid<sp>CrsAlgorithm" , value ) ) ; } } | org . junit . Assert . assertEquals ( CrsAlgorithm . ArcFourVariant , crsAlgorithm ) |
testEdgelessGraphSame ( ) { edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism . Edge > g1 = new edu . ucla . sspace . graph . isomorphism . SparseUndirectedGraph ( ) ; for ( int i = 0 ; i < 3 ; ++ i ) g1 . add ( i ) ; edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism . Edge > g2 = new edu . ucla . sspace . graph . isomorphism . SparseUndirectedGraph ( ) ; for ( int i = 3 ; i < 6 ; ++ i ) g2 . add ( i ) ; edu . ucla . sspace . graph . isomorphism . IsomorphismTester isoTest = new edu . ucla . sspace . graph . isomorphism . TypedVF2IsomorphismTester ( ) ; "<AssertPlaceHolder>" ; } areIsomorphic ( edu . ucla . sspace . graph . isomorphism . Graph , edu . ucla . sspace . graph . isomorphism . Graph ) { edu . ucla . sspace . graph . isomorphism . Graph < ? extends edu . ucla . sspace . graph . isomorphism . Edge > g1mapped = remap ( g1 , null ) ; edu . ucla . sspace . graph . isomorphism . Graph < ? extends edu . ucla . sspace . graph . isomorphism . Edge > g2mapped = remap ( g2 , null ) ; edu . ucla . sspace . graph . isomorphism . State state = makeInitialState ( g1mapped , g2mapped ) ; return match ( state ) ; } | org . junit . Assert . assertTrue ( isoTest . areIsomorphic ( g1 , g2 ) ) |
testAllTechniquesSetQuantile ( ) { for ( final org . apache . commons . math4 . stat . descriptive . rank . Percentile . EstimationType e : Percentile . EstimationType . values ( ) ) { reset ( 10 , e ) ; final org . apache . commons . math4 . stat . descriptive . rank . Percentile percentile = getUnivariateStatistic ( ) ; percentile . setQuantile ( 100 ) ; "<AssertPlaceHolder>" ; try { percentile . setQuantile ( 0 ) ; org . junit . Assert . fail ( "Expecting<sp>MathIllegalArgumentException" ) ; } catch ( final org . apache . commons . math4 . exception . MathIllegalArgumentException ex ) { } try { new org . apache . commons . math4 . stat . descriptive . rank . Percentile ( 0 ) ; org . junit . Assert . fail ( "Expecting<sp>MathIllegalArgumentException" ) ; } catch ( final org . apache . commons . math4 . exception . MathIllegalArgumentException ex ) { } } } getQuantile ( ) { return quantile ; } | org . junit . Assert . assertEquals ( 100 , percentile . getQuantile ( ) , 0 ) |
testFullPayload ( ) { org . joda . time . DateTime dateTime = new org . joda . time . DateTime ( 2018 , 3 , 17 , 11 , 35 , org . joda . time . DateTimeZone . UTC ) ; com . urbanairship . api . push . model . PushExpiry expiry = com . urbanairship . api . push . model . PushExpiry . newBuilder ( ) . setExpiryTimeStamp ( dateTime ) . build ( ) ; com . urbanairship . api . push . model . notification . sms . SmsPayload smsPayload = com . urbanairship . api . push . model . notification . sms . SmsPayload . newBuilder ( ) . setAlert ( "Alert<sp>Text" ) . setExpiry ( expiry ) . build ( ) ; java . lang . String parsedJson = com . urbanairship . api . push . parse . notification . sms . SmsPayloadSerializerTest . MAPPER . writeValueAsString ( smsPayload ) ; java . lang . String expected = "{\"alert\":\"Alert<sp>Text\",\"expiry\":\"2018-03-17T11:35:00\"}" ; com . fasterxml . jackson . databind . JsonNode jsonNode = com . urbanairship . api . push . parse . notification . sms . SmsPayloadSerializerTest . MAPPER . readTree ( parsedJson ) ; com . fasterxml . jackson . databind . JsonNode expectedNode = com . urbanairship . api . push . parse . notification . sms . SmsPayloadSerializerTest . MAPPER . readTree ( expected ) ; "<AssertPlaceHolder>" ; } build ( ) { com . google . common . base . Preconditions . checkArgument ( argumentValidator ( scheduledTimestamp , bestTime ) , "Either<sp>scheduled_time<sp>or<sp>best_time<sp>must<sp>be<sp>set." ) ; return new com . urbanairship . api . schedule . model . Schedule ( this ) ; } | org . junit . Assert . assertEquals ( expectedNode , jsonNode ) |
array_query_projection_with_match_projection ( ) { com . redhat . lightblue . query . Projection p = com . redhat . lightblue . eval . EvalTestContext . projectionFromJson ( "{'field':'field7','match':{'field':'elemf3','op':'>','rvalue':4},'projection':{'field':'*'}}" ) ; com . redhat . lightblue . eval . Projector projector = com . redhat . lightblue . eval . Projector . getInstance ( p , md ) ; com . fasterxml . jackson . databind . JsonNode expectedNode = com . redhat . lightblue . util . JsonUtils . json ( "{'field7':[{'elemf1':'elvalue2_1','elemf2':'elvalue2_2','elemf3':5},{'elemf1':'elvalue3_1','elemf2':'elvalue3_2','elemf3':6}]}" . replace ( '\'' , '\"' ) ) ; com . redhat . lightblue . util . JsonDoc pdoc = projector . project ( jsonDoc , com . redhat . lightblue . eval . JSON_NODE_FACTORY ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ops [ 0 ] ; } | org . junit . Assert . assertEquals ( expectedNode . toString ( ) , pdoc . toString ( ) ) |
test_deleteBy ( ) { java . util . Map templateModel = new java . util . HashMap ( ) ; java . util . Map filePathModel = new java . util . HashMap ( ) ; generator . setTemplateRootDir ( "/not_exist_828282" ) ; cn . org . rapid_framework . generator . Generator result = generator . deleteBy ( templateModel , filePathModel ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( result ) |
closesWithoutGet ( ) { java . util . concurrent . atomic . AtomicInteger obj = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; try ( T wrapper = closeableFactory . makeCloseable ( obj , com . facebook . buck . util . CloseableWrapperTest :: closer ) ) { } finally { "<AssertPlaceHolder>" ; } } get ( ) { return value ; } | org . junit . Assert . assertEquals ( 1 , obj . get ( ) ) |
testComparator1 ( ) { org . apache . cxf . jaxrs . model . OperationResourceInfo ori1 = new org . apache . cxf . jaxrs . model . OperationResourceInfo ( org . apache . cxf . jaxrs . model . OperationResourceInfoTest . TestClass . class . getMethod ( "doIt" , new java . lang . Class [ ] { } ) , new org . apache . cxf . jaxrs . model . ClassResourceInfo ( org . apache . cxf . jaxrs . model . OperationResourceInfoTest . TestClass . class ) ) ; ori1 . setURITemplate ( new org . apache . cxf . jaxrs . model . URITemplate ( "/" ) ) ; org . apache . cxf . jaxrs . model . OperationResourceInfo ori2 = new org . apache . cxf . jaxrs . model . OperationResourceInfo ( org . apache . cxf . jaxrs . model . OperationResourceInfoTest . TestClass . class . getMethod ( "doThat" , new java . lang . Class [ ] { } ) , new org . apache . cxf . jaxrs . model . ClassResourceInfo ( org . apache . cxf . jaxrs . model . OperationResourceInfoTest . TestClass . class ) ) ; ori2 . setURITemplate ( new org . apache . cxf . jaxrs . model . URITemplate ( "/" ) ) ; org . apache . cxf . jaxrs . model . OperationResourceInfoComparator cmp = new org . apache . cxf . jaxrs . model . OperationResourceInfoComparator ( null , null ) ; int result = cmp . compare ( ori1 , ori2 ) ; "<AssertPlaceHolder>" ; } compare ( java . lang . String , java . lang . String ) { if ( s != null ) { return s . equalsIgnoreCase ( s2 ) ; } return false ; } | org . junit . Assert . assertEquals ( 0 , result ) |
getEncounterTypeByUuid_shouldFindObjectGivenValidUuid ( ) { java . lang . String uuid = "02c533ab-b74b-4ee4-b6e5-ffb6d09a0ac8" ; org . openmrs . EncounterType encounterType = org . openmrs . api . context . Context . getEncounterService ( ) . getEncounterTypeByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } getEncounterTypeId ( ) { return encounterTypeId ; } | org . junit . Assert . assertEquals ( 6 , ( ( int ) ( encounterType . getEncounterTypeId ( ) ) ) ) |
deveRetornarNuloAoPassarCodigoInvalido ( ) { "<AssertPlaceHolder>" ; } valueOfCodigo ( java . lang . String ) { for ( final com . fincatto . documentofiscal . nfe400 . classes . NFOrigemProcesso origemProcesso : com . fincatto . documentofiscal . nfe400 . classes . NFOrigemProcesso . values ( ) ) { if ( origemProcesso . getCodigo ( ) . equals ( codigo ) ) { return origemProcesso ; } } return null ; } | org . junit . Assert . assertNull ( com . fincatto . documentofiscal . nfe400 . classes . NFOrigemProcesso . valueOfCodigo ( "" ) ) |
createExplodedVarSpecFromUriTemplateBuilder ( ) { com . damnhandy . uri . template . impl . VarSpec varSpec = com . damnhandy . uri . template . UriTemplateBuilder . var ( "experiment" , true ) ; "<AssertPlaceHolder>" ; } getVariableName ( ) { if ( ( variableName ) == null ) { return getValue ( ) ; } return variableName ; } | org . junit . Assert . assertEquals ( "experiment" , varSpec . getVariableName ( ) ) |
menuShouldHaveItems ( ) { final java . util . List < lcmc . common . ui . utils . UpdatableItem > items = cloneMenu . getPulldownMenu ( cloneInfoStub ) ; verify ( menuItemStub , times ( 3 ) ) . predicate ( ( ( lcmc . common . domain . Predicate ) ( anyObject ( ) ) ) ) ; verify ( menuItemStub , times ( 4 ) ) . visiblePredicate ( ( ( lcmc . common . domain . VisiblePredicate ) ( anyObject ( ) ) ) ) ; verify ( menuItemStub , times ( 9 ) ) . enablePredicate ( ( ( lcmc . common . domain . EnablePredicate ) ( anyObject ( ) ) ) ) ; verify ( menuItemStub , times ( 11 ) ) . addAction ( ( ( lcmc . common . ui . utils . MenuAction ) ( anyObject ( ) ) ) ) ; verify ( menuStub , times ( 4 ) ) . enablePredicate ( ( ( lcmc . common . domain . EnablePredicate ) ( anyObject ( ) ) ) ) ; verify ( menuStub , times ( 3 ) ) . onUpdate ( ( ( java . lang . Runnable ) ( anyObject ( ) ) ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return hosts . size ( ) ; } | org . junit . Assert . assertEquals ( 15 , items . size ( ) ) |
testInvokeVarargs12 ( ) { javax . el . BeanELResolver resolver = new javax . el . BeanELResolver ( ) ; javax . el . ELContext context = new javax . el . StandardELContext ( javax . el . ELManager . getExpressionFactory ( ) ) ; java . lang . Object result = resolver . invoke ( context , new javax . el . TesterBean ( javax . el . TestBeanELResolver . BEAN_NAME ) , "getNameVarargs" , new java . lang . Class < ? > [ ] { javax . el . Integer [ ] . class } , new java . lang . Object [ ] { java . lang . Integer . valueOf ( 10 ) } ) ; "<AssertPlaceHolder>" ; } valueOf ( int ) { return org . apache . tomcat . util . net . jsse . openssl . Cipher . idMap . get ( java . lang . Integer . valueOf ( cipherId ) ) ; } | org . junit . Assert . assertEquals ( javax . el . TestBeanELResolver . BEAN_NAME , result ) |
testNewSetAndGrow ( ) { org . graalvm . compiler . graph . test . NodeMapTest . TestNode newNode = graph . add ( new org . graalvm . compiler . graph . test . NodeMapTest . TestNode ( ) ) ; map . setAndGrow ( newNode , 1 ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 1 ) ) , map . get ( newNode ) ) |
testToString ( ) { java . lang . String message = "message" ; java . lang . Throwable throwable = new java . lang . Throwable ( ) ; com . liferay . petra . process . local . LocalProcessLog localProcessLog = new com . liferay . petra . process . local . LocalProcessLog ( ProcessLog . Level . DEBUG , message , throwable ) ; com . liferay . petra . string . StringBundler sb = new com . liferay . petra . string . StringBundler ( 7 ) ; sb . append ( "{level=" ) ; sb . append ( ProcessLog . Level . DEBUG ) ; sb . append ( ",<sp>message=" ) ; sb . append ( message ) ; sb . append ( ",<sp>throwable=" ) ; sb . append ( throwable ) ; sb . append ( "}" ) ; "<AssertPlaceHolder>" ; } toString ( ) { com . liferay . petra . string . StringBundler sb = new com . liferay . petra . string . StringBundler ( 23 ) ; sb . append ( ",<sp>width=" 1 ) ; sb . append ( uuid ) ; sb . append ( ",<sp>width=" 0 ) ; sb . append ( amImageEntryId ) ; sb . append ( ",<sp>groupId=" ) ; sb . append ( groupId ) ; sb . append ( ",<sp>companyId=" ) ; sb . append ( companyId ) ; sb . append ( ",<sp>createDate=" ) ; sb . append ( createDate ) ; sb . append ( ",<sp>configurationUuid=" ) ; sb . append ( configurationUuid ) ; sb . append ( ",<sp>fileVersionId=" ) ; sb . append ( fileVersionId ) ; sb . append ( ",<sp>mimeType=" ) ; sb . append ( mimeType ) ; sb . append ( ",<sp>height=" ) ; sb . append ( height ) ; sb . append ( ",<sp>width=" ) ; sb . append ( width ) ; sb . append ( ",<sp>size=" ) ; sb . append ( size ) ; sb . append ( "}" ) ; return sb . toString ( ) ; } | org . junit . Assert . assertEquals ( localProcessLog . toString ( ) , sb . toString ( ) ) |
testCompareZonderActie ( ) { final java . time . ZonedDateTime datumTijdAttribuut1 = java . time . LocalDate . of ( 1900 , 10 , 10 ) . atStartOfDay ( DatumUtil . BRP_ZONE_ID ) ; final java . time . ZonedDateTime datumTijdAttribuut2 = java . time . LocalDate . of ( 2000 , 10 , 10 ) . atStartOfDay ( DatumUtil . BRP_ZONE_ID ) ; final nl . bzk . brp . domain . leveringmodel . Actie actie1 = maakActie ( datumTijdAttribuut1 ) ; final nl . bzk . brp . domain . leveringmodel . Actie actie2 = maakActie ( datumTijdAttribuut2 ) ; final int compare = ActieComparator . INSTANCE . compare ( null , actie2 ) ; "<AssertPlaceHolder>" ; } compare ( nl . bzk . brp . model . hisvolledig . kern . ActieHisVolledig , nl . bzk . brp . model . hisvolledig . kern . ActieHisVolledig ) { if ( ( a1 == null ) || ( a2 == null ) ) { throw new java . lang . IllegalArgumentException ( "Missend<sp>object<sp>waardoor<sp>deze<sp>niet<sp>te<sp>vergelijken<sp>is." ) ; } int resultaat ; if ( ( a1 . getTijdstipRegistratie ( ) ) == ( a2 . getTijdstipRegistratie ( ) ) ) { resultaat = 0 ; } else if ( ( a1 . getTijdstipRegistratie ( ) ) == null ) { resultaat = 1 ; } else if ( ( a2 . getTijdstipRegistratie ( ) ) == null ) { resultaat = - 1 ; } else { resultaat = ( a1 . getTijdstipRegistratie ( ) . compareTo ( a2 . getTijdstipRegistratie ( ) ) ) * ( - 1 ) ; } if ( resultaat == 0 ) { resultaat = vergelijkModelIdentificeerbaar ( a1 , a2 ) ; } return resultaat ; } | org . junit . Assert . assertEquals ( 1 , compare ) |
whenReadingInstance_itShouldReadCorrectNuOfType3Vehicles ( ) { jsprit . core . problem . VehicleRoutingProblem . Builder vrpBuilder = VehicleRoutingProblem . Builder . newInstance ( ) ; new jsprit . instance . reader . VrphGoldenReader ( vrpBuilder , jsprit . instance . reader . VrphGoldenReader . VrphType . HVRPD ) . read ( getPath ( "cn_13mix.txt" ) ) ; jsprit . core . problem . VehicleRoutingProblem vrp = vrpBuilder . build ( ) ; int nuOfType1Vehicles = 0 ; for ( jsprit . core . problem . vehicle . Vehicle v : vrp . getVehicles ( ) ) { if ( v . getType ( ) . getTypeId ( ) . equals ( "type_3" ) ) { nuOfType1Vehicles ++ ; } } "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 4 , nuOfType1Vehicles ) |
testInt64 ( ) { @ org . jetbrains . annotations . NotNull net . openhft . chronicle . wire . Wire wire = createWire ( ) ; long expected = 1234567890123456789L ; wire . write ( ( ) -> "VALUE" ) . int64 ( expected ) ; expectWithSnakeYaml ( "{VALUE=1234567890123456789}" , wire ) ; "<AssertPlaceHolder>" ; } read ( java . lang . String ) { return read ( fieldName , fieldName . hashCode ( ) , null , net . openhft . chronicle . wire . Function . identity ( ) ) ; } | org . junit . Assert . assertEquals ( expected , wire . read ( ( ) -> "VALUE" ) . int64 ( ) ) |
deveObterUFComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; retornoConsultaCadastroDados . setUf ( DFUnidadeFederativa . SC ) ; "<AssertPlaceHolder>" ; } getUf ( ) { return this . uf ; } | org . junit . Assert . assertEquals ( DFUnidadeFederativa . SC , retornoConsultaCadastroDados . getUf ( ) ) |
testTokens_simple ( ) { java . util . List < org . apache . ambari . server . api . predicate . Token > listTokens = new java . util . ArrayList ( ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . RELATIONAL_OPERATOR , "=" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . PROPERTY_OPERAND , "a=1&(b<=2|c>3)" 1 ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . VALUE_OPERAND , "1" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . LOGICAL_OPERATOR , "a=1&(b<=2|c>3)" 2 ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . BRACKET_OPEN , "(" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . RELATIONAL_OPERATOR , "<=" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . PROPERTY_OPERAND , "a=1&(b<=2|c>3)" 3 ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . VALUE_OPERAND , "2" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . LOGICAL_OPERATOR , "|" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . RELATIONAL_OPERATOR , "a=1&(b<=2|c>3)" 0 ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . PROPERTY_OPERAND , "c" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . VALUE_OPERAND , "3" ) ) ; listTokens . add ( new org . apache . ambari . server . api . predicate . Token ( Token . TYPE . BRACKET_CLOSE , ")" ) ) ; org . apache . ambari . server . api . predicate . QueryLexer lexer = new org . apache . ambari . server . api . predicate . QueryLexer ( ) ; org . apache . ambari . server . api . predicate . Token [ ] tokens = lexer . tokens ( "a=1&(b<=2|c>3)" ) ; "<AssertPlaceHolder>" ; } size ( ) { java . util . Set < java . lang . String > nodes = new java . util . HashSet < java . lang . String > ( ) ; for ( org . apache . ambari . eventdb . model . WorkflowDag . WorkflowDagEntry entry : entries ) { nodes . add ( entry . getSource ( ) ) ; nodes . addAll ( entry . getTargets ( ) ) ; } return nodes . size ( ) ; } | org . junit . Assert . assertArrayEquals ( listTokens . toArray ( new org . apache . ambari . server . api . predicate . Token [ listTokens . size ( ) ] ) , tokens ) |
testExecute_WithSecurityGroupSFCIdSetToNull_ExpectUpdate ( ) { org . osc . core . broker . service . tasks . conformance . openstack . sfc . UpdateServiceFunctionChainTask updateTask = this . task . create ( this . sg , this . networkElementList ) ; this . sg . setNetworkElementId ( null ) ; org . mockito . Mockito . when ( this . sdnApi . updateNetworkElement ( argThat ( new org . osc . core . test . util . mockito . matchers . ElementIdMatcher < org . osc . sdk . controller . element . NetworkElement > ( this . sg . getNetworkElementId ( ) ) ) , any ( ) ) ) . thenReturn ( new org . osc . core . broker . model . sdn . NetworkElementImpl ( "UPDATED_SFC_ID" ) ) ; updateTask . execute ( ) ; "<AssertPlaceHolder>" ; } getNetworkElementId ( ) { return this . networkElementId ; } | org . junit . Assert . assertEquals ( this . sg . getNetworkElementId ( ) , "UPDATED_SFC_ID" ) |
roundTripWriteAndRead ( ) { java . util . List < java . lang . String > strings = java . util . Arrays . asList ( "" , "" , "<sp><sp>" , "" , "န်မာဘာသာ" , "<sp><sp><sp><sp><sp>" , "123<sp><sp>" , "032<sp><sp><sp>" , "This<sp>is<sp><sp>Mixed<sp><sp>" , "<sp><sp><sp>latin<sp><sp><sp><sp><sp><sp><sp><sp><sp><sp>" , "<sp><sp><sp>latin<sp><sp><sp><sp><sp><sp><sp><sp><sp><sp>" 0 ) ; for ( java . lang . String str : strings ) { org . sejda . sambox . pdmodel . PDDocument doc = new org . sejda . sambox . pdmodel . PDDocument ( ) ; org . sejda . sambox . pdmodel . PDPage page = new org . sejda . sambox . pdmodel . PDPage ( ) ; new org . sejda . impl . sambox . component . PageTextWriter ( doc ) . write ( page , new java . awt . Point ( 10 , 10 ) , str , org . sejda . impl . sambox . util . FontUtils . getStandardType1Font ( StandardType1Font . HELVETICA ) , 10.0 , Color . BLACK ) ; doc . addPage ( page ) ; org . sejda . impl . sambox . component . PDDocumentHandler handler = new org . sejda . impl . sambox . component . PDDocumentHandler ( doc ) ; java . io . File tmp = org . sejda . core . support . io . IOUtils . createTemporaryBuffer ( ) ; handler . savePDDocument ( tmp ) ; org . sejda . sambox . pdmodel . PDDocument doc2 = org . sejda . sambox . input . PDFParser . parse ( org . sejda . io . SeekableSources . seekableSourceFrom ( tmp ) ) ; java . lang . String text = new org . sejda . impl . sambox . component . PdfTextExtractorByArea ( ) . extractTextFromArea ( doc2 . getPage ( 0 ) , new java . awt . Rectangle ( 0 , 0 , 1000 , 1000 ) ) ; "<AssertPlaceHolder>" ; } } noWhitespace ( java . lang . String ) { return in . replaceAll ( "\\s" , "" ) ; } | org . junit . Assert . assertEquals ( noWhitespace ( str ) , noWhitespace ( text ) ) |
testNormalEnum ( ) { int port = com . alibaba . dubbo . common . utils . NetUtils . getAvailablePort ( ) ; com . alibaba . dubbo . common . URL serviceurl = com . alibaba . dubbo . common . URL . valueOf ( ( ( ( "dubbo://127.0.0.1:" + port ) + "/test?timeout=" ) + ( Integer . MAX_VALUE ) ) ) ; com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService demo = new com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoServiceImpl ( ) ; com . alibaba . dubbo . rpc . Invoker < com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService > invoker = proxy . getInvoker ( demo , com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService . class , serviceurl ) ; protocol . export ( invoker ) ; com . alibaba . dubbo . common . URL consumerurl = serviceurl ; com . alibaba . dubbo . rpc . Invoker < com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService > reference = protocol . refer ( com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService . class , consumerurl ) ; com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService demoProxy = ( ( com . alibaba . dubbo . rpc . protocol . dubbo . support . DemoService ) ( proxy . getProxy ( reference ) ) ) ; com . alibaba . dubbo . rpc . protocol . dubbo . support . Type type = demoProxy . enumlength ( Type . High ) ; System . out . println ( type ) ; "<AssertPlaceHolder>" ; invoker . destroy ( ) ; reference . destroy ( ) ; } enumlength ( com . alibaba . dubbo . rpc . protocol . injvm . Type [ ] ) { if ( ( types . length ) == 0 ) return Type . Lower ; return types [ 0 ] ; } | org . junit . Assert . assertEquals ( Type . High , type ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.