input
stringlengths 28
18.7k
| output
stringlengths 39
1.69k
|
|---|---|
hasIncommingTransitions_return_true_if_flownode_hasIncommingTransitions ( ) { flowNode . addIncomingTransition ( new org . bonitasoft . engine . core . process . definition . model . impl . STransitionDefinitionImpl ( "incoming" ) ) ; "<AssertPlaceHolder>" ; } hasIncomingTransitions ( ) { return ! ( incomings . isEmpty ( ) ) ; }
|
org . junit . Assert . assertTrue ( flowNode . hasIncomingTransitions ( ) )
|
getInitHookWithResourceLoaderDependingInitHook ( ) { LazyInitRegistration . APPLICATION_CONTEXT = applicationContextMock ; when ( applicationContextMock . containsBean ( LazyInitRegistration . RESOURCE_LOADER_DEPENDING_INIT_HOOK ) ) . thenReturn ( true ) ; when ( applicationContextMock . getBean ( LazyInitRegistration . RESOURCE_LOADER_DEPENDING_INIT_HOOK , org . camunda . bpm . spring . boot . starter . webapp . filter . LazyDelegateFilter . InitHook . class ) ) . thenReturn ( initHookMock ) ; "<AssertPlaceHolder>" ; } getInitHook ( ) { if ( ( ( org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . APPLICATION_CONTEXT ) != null ) && ( org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . APPLICATION_CONTEXT . containsBean ( org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . RESOURCE_LOADER_DEPENDING_INIT_HOOK ) ) ) { return org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . APPLICATION_CONTEXT . getBean ( org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . RESOURCE_LOADER_DEPENDING_INIT_HOOK , org . camunda . bpm . spring . boot . starter . webapp . filter . LazyDelegateFilter . InitHook . class ) ; } return null ; }
|
org . junit . Assert . assertEquals ( initHookMock , org . camunda . bpm . spring . boot . starter . webapp . filter . LazyInitRegistration . getInitHook ( ) )
|
testRequestGetEC ( ) { java . security . Security . addProvider ( new org . bouncycastle . jce . provider . BouncyCastleProvider ( ) ) ; java . security . cert . X509Certificate pcaCert = gov . niarl . his . privacyca . TpmUtils . certFromP12 ( ( ( homeFolder ) + ( PrivacyCaFileName ) ) , PrivacyCaPassword ) ; java . lang . String EkMod = "12ef45" ; javax . crypto . SecretKey deskey = gov . niarl . his . webservices . hisPrivacyCAWebService2 . server . HisPrivacyCAWebService2ImplTest . generateSessionKey ( ) ; byte [ ] encryptedEkMod = gov . niarl . his . privacyca . TpmUtils . encryptDES ( gov . niarl . his . privacyca . TpmUtils . hexStringToByteArray ( EkMod ) , deskey ) ; byte [ ] encryptedSessionKey = gov . niarl . his . privacyca . TpmUtils . encryptRSA ( deskey . getEncoded ( ) , ( ( java . security . interfaces . RSAPublicKey ) ( pcaCert . getPublicKey ( ) ) ) ) ; byte [ ] encryptEkCert = hisPrivacyCAWebService2Impl . requestGetEC ( encryptedEkMod , encryptedSessionKey , ValidityDays ) ; "<AssertPlaceHolder>" ; } requestGetEC ( byte [ ] , byte [ ] , int ) { gov . niarl . his . webservices . hisPrivacyCAWebServices2 . clientWsImport . ByteArray eKModulusByteArray = new gov . niarl . his . webservices . hisPrivacyCAWebServices2 . clientWsImport . ByteArray ( ) ; eKModulusByteArray . setBytes ( encryptedEkMod ) ; gov . niarl . his . webservices . hisPrivacyCAWebServices2 . clientWsImport . ByteArray sessionKeyArray = new gov . niarl . his . webservices . hisPrivacyCAWebServices2 . clientWsImport . ByteArray ( ) ; sessionKeyArray . setBytes ( encryptedSessionKey ) ; return hisPrivacyCAWebService2 . requestGetEC ( eKModulusByteArray , sessionKeyArray , ecValidDays ) . getBytes ( ) ; }
|
org . junit . Assert . assertNotNull ( encryptEkCert )
|
pauseUntilInvisibleTest ( ) { iface . go ( testPage ) ; com . sugarcrm . candybean . automation . webdriver . WebDriverElement text = $ ( "#clickToToggleVisibilityDiv<sp>#intervalPara" ) ; text . click ( ) ; iface . getPause ( ) . waitForInvisible ( new com . sugarcrm . candybean . automation . element . Hook ( com . sugarcrm . candybean . automation . element . Hook . Strategy . ID , "intervalPara" ) , 2000 ) ; "<AssertPlaceHolder>" ; thrown . expect ( com . sugarcrm . candybean . exceptions . CandybeanException . class ) ; iface . getPause ( ) . waitForInvisible ( $ ( "#clickToToggleVisibilityDiv<sp>#clickPara" ) , 100 ) ; } isDisplayed ( ) { logger . info ( ( "Determining<sp>if<sp>element<sp>is<sp>visible:<sp>" + ( this . toString ( ) ) ) ) ; return we . isDisplayed ( ) ; }
|
org . junit . Assert . assertTrue ( ( ! ( text . isDisplayed ( ) ) ) )
|
hasErrorCode_unknownErrorCode ( ) { final com . rapid7 . client . dcerpc . RPCException rpcException = new com . rapid7 . client . dcerpc . RPCException ( "test" , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } hasErrorCode ( ) { return ( errorCode ) != null ; }
|
org . junit . Assert . assertFalse ( rpcException . hasErrorCode ( ) )
|
itIsDeleted ( ) { txaction . setStatus ( TxactionStatus . DISABLED ) ; "<AssertPlaceHolder>" ; } isDisabled ( ) { return ( getStatus ( ) ) == ( TxactionStatus . DISABLED ) ; }
|
org . junit . Assert . assertTrue ( txaction . isDisabled ( ) )
|
testCreateDepartment ( ) { com . onboard . domain . model . Department retDepartment = departmentServiceImpl . create ( department ) ; verify ( mockedDepartmentMapper , times ( 1 ) ) . insert ( com . onboard . service . account . impl . test . Mockito . any ( com . onboard . domain . model . Department . class ) ) ; "<AssertPlaceHolder>" ; } insert ( com . onboard . domain . model . type . Indexable ) { insertSelective ( item ) ; }
|
org . junit . Assert . assertEquals ( department , retDepartment )
|
testExecute_CoverityProjectNotSpecified ( ) { final org . sonar . api . batch . sensor . internal . SensorContextTester sensorContextTester = org . sonar . api . batch . sensor . internal . SensorContextTester . create ( new java . io . File ( "src" ) ) ; final org . sonar . plugins . coverity . batch . HashMap < java . lang . String , java . lang . String > properties = new org . sonar . plugins . coverity . batch . HashMap ( ) ; properties . put ( CoverityPlugin . COVERITY_ENABLE , "true" ) ; sensorContextTester . settings ( ) . addProperties ( properties ) ; sensor . execute ( sensorContextTester ) ; final org . sonar . plugins . coverity . batch . Collection < org . sonar . api . batch . sensor . issue . Issue > issues = sensorContextTester . allIssues ( ) ; "<AssertPlaceHolder>" ; } execute ( org . sonar . api . batch . sensor . SensorContext ) { org . sonar . api . config . Configuration config = context . config ( ) ; localInputFiles = new org . sonar . plugins . coverity . batch . HashMap < java . lang . String , org . sonar . api . batch . fs . InputFile > ( ) ; boolean enabled = config . getBoolean ( CoverityPlugin . COVERITY_ENABLE ) . orElse ( false ) ; int totalDefectsCounter = 0 ; int highImpactDefectsCounter = 0 ; int mediumImpactDefectsCounter = 0 ; int lowImpactDefectsCounter = 0 ; org . sonar . plugins . coverity . batch . CoveritySensor . LOG . info ( ( ( ( org . sonar . plugins . coverity . CoverityPlugin . COVERITY_ENABLE ) + "Absent<sp>Dismissed" 5 ) + enabled ) ) ; if ( ! enabled ) { return ; } java . lang . ClassLoader oldCL = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; java . lang . Thread . currentThread ( ) . setContextClassLoader ( getClass ( ) . getClassLoader ( ) ) ; java . lang . System . setProperty ( "javax.xml.soap.MetaFactory" , "com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl" ) ; java . lang . String covProject = config . get ( CoverityPlugin . COVERITY_PROJECT ) . orElse ( StringUtils . EMPTY ) ; java . lang . String covSrcDir = config . get ( CoverityPlugin . COVERITY_SOURCE_DIRECTORY ) . orElse ( StringUtils . EMPTY ) ; if ( ( covProject == null ) || ( covProject . isEmpty ( ) ) ) { org . sonar . plugins . coverity . batch . CoveritySensor . LOG . error ( ( "<sp>(" 5 + covProject ) ) ; java . lang . Thread . currentThread ( ) . setContextClassLoader ( oldCL ) ; return ; } org . sonar . plugins . coverity . ws . CIMClient instance = cimClientFactory . create ( config ) ; org . sonar . plugins . coverity . batch . ProjectDataObj covProjectObj = null ; try { covProjectObj = instance . getProject ( covProject ) ; if ( covProjectObj == null ) { org . sonar . plugins . coverity . batch . CoveritySensor . LOG . error ( ( "<sp>(" 5 + covProject ) ) ; java . lang . Thread . currentThread ( ) . setContextClassLoader ( oldCL ) ; return ; } org . sonar . plugins . coverity . batch . CoveritySensor . LOG . info ( ( ( ( ( "<sp>(" 6 + covProject ) + "<sp>(" ) + ( covProjectObj . getProjectKey ( ) ) ) + "Absent<sp>Dismissed" 7 ) ) ; } catch ( java . io . IOException | org . sonar . plugins . coverity . batch . CovRemoteServiceException_Exception e ) { org . sonar . plugins . coverity . batch . CoveritySensor . LOG . error ( ( "Error<sp>while<sp>trying<sp>to<sp>find<sp>project:<sp>" + covProject ) ) ; java . lang . Thread . currentThread ( ) . setContextClassLoader ( oldCL ) ; return ; } try { org . sonar . plugins . coverity . batch . CoveritySensor . LOG . info ( ( "Fetching<sp>defects<sp>for<sp>project:<sp>" + covProject ) ) ; org . sonar . plugins . coverity . batch . List < org . sonar . plugins . coverity . batch . MergedDefectDataObj > defects = instance . getDefects ( covProject ) ; org . sonar . plugins . coverity . batch . Map < java . lang . Long , org . sonar . plugins . coverity . batch . StreamDefectDataObj > streamDefects = instance . getStreamDefectsForMergedDefects ( defects ) ; org . sonar . plugins . coverity . batch . CoveritySensor . LOG . info ( ( ( "<sp>(" 7 + ( streamDefects . size ( ) ) ) + "<sp>defects" ) ) ; org . sonar . plugins . coverity . batch . List < java . io . File > listOfFiles = new org . sonar . plugins . coverity . batch . ArrayList < java . io . File > ( ) ; java . lang . String sonarSourcesString = null ; if ( ( covSrcDir != null ) && ( ! ( covSrcDir . isEmpty ( ) ) ) ) { sonarSourcesString = covSrcDir ; } else { sonarSourcesString = config . get ( "sonar.sources" ) . orElse ( StringUtils . EMPTY ) ; } if ( ( sonarSourcesString != null ) && ( ! ( sonarSourcesString . isEmpty ( ) ) ) ) { org . sonar . plugins . coverity . batch . List < java . lang . String > sonarSources = org . sonar . plugins . coverity . batch . Arrays . asList ( sonarSourcesString . split ( "sonar.sources" 1 ) ) ; for ( java . lang . String dir : sonarSources ) { java . io . File folder = new java . io . File ( dir ) ; listOfFiles . addAll ( org . sonar . plugins .
|
org . junit . Assert . assertEquals ( 0 , issues . size ( ) )
|
convert_when_streamMessage_has_jmsTimestamp ( ) { long jmsTimestamp = 3600L ; javax . jms . StreamMessage message = new org . apache . activemq . command . ActiveMQStreamMessage ( ) ; message . setJMSTimestamp ( jmsTimestamp ) ; message . reset ( ) ; javax . jms . StreamMessage result = uut . convert ( message ) ; "<AssertPlaceHolder>" ; } getJMSTimestamp ( ) { return this . timestamp ; }
|
org . junit . Assert . assertEquals ( jmsTimestamp , result . getJMSTimestamp ( ) )
|
codeChange ( ) { org . searchisko . api . rest . ContributorRestService tested = getTested ( ) ; java . util . Map < java . lang . String , java . lang . Object > value = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; org . mockito . Mockito . when ( tested . contributorService . changeContributorCode ( "id" , "code" ) ) . thenReturn ( value ) ; "<AssertPlaceHolder>" ; } codeChange ( java . lang . String , java . lang . String ) { if ( ( id = org . searchisko . api . util . SearchUtils . trimToNull ( id ) ) == null ) { throw new org . searchisko . api . rest . exception . RequiredFieldException ( "id" ) ; } if ( ( code = org . searchisko . api . util . SearchUtils . trimToNull ( code ) ) == null ) { throw new org . searchisko . api . rest . exception . RequiredFieldException ( "code" ) ; } return contributorService . changeContributorCode ( id , code ) ; }
|
org . junit . Assert . assertEquals ( value , tested . codeChange ( "id" , "code" ) )
|
testHeaderExists ( ) { org . ocpsoft . rewrite . servlet . config . Header header = org . ocpsoft . rewrite . servlet . config . Header . exists ( "Accept-{head}" ) ; org . ocpsoft . rewrite . mock . MockEvaluationContext context = new org . ocpsoft . rewrite . mock . MockEvaluationContext ( ) ; org . ocpsoft . rewrite . util . ParameterUtils . initialize ( context , header ) ; "<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 ( header . evaluate ( rewrite , context ) )
|
shouldSupportSpelInType ( ) { org . springframework . data . elasticsearch . entities . SpELEntity spELEntity = new org . springframework . data . elasticsearch . entities . SpELEntity ( ) ; repository . save ( spELEntity ) ; org . springframework . data . elasticsearch . core . query . NativeSearchQuery nativeSearchQuery = new org . springframework . data . elasticsearch . core . query . NativeSearchQuery ( org . elasticsearch . index . query . QueryBuilders . matchAllQuery ( ) ) ; nativeSearchQuery . addIndices ( "abz-entity" ) ; nativeSearchQuery . addTypes ( "myType" ) ; long count = template . count ( nativeSearchQuery ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Object ) { queryCriteria . add ( new org . springframework . data . elasticsearch . core . query . Criteria . CriteriaEntry ( org . springframework . data . elasticsearch . core . query . Criteria . OperationKey . EQUALS , o ) ) ; return this ; }
|
org . junit . Assert . assertThat ( count , org . hamcrest . core . Is . is ( 1L ) )
|
testEvaluate_constantCollectionPath ( ) { final notaql . model . path . OutputPath path = new notaql . model . path . OutputPath ( new notaql . model . path . IdStep ( new notaql . model . path . Step ( 0 ) ) ) ; final java . util . List < notaql . model . path . StepNameEvaluationResult > evaluate = path . evaluate ( new notaql . datamodel . fixation . Fixation ( data . getCollection ( ) ) ) ; final notaql . datamodel . fixation . Fixation f = new notaql . datamodel . fixation . Fixation ( data . getCollection ( ) ) ; final java . util . List < notaql . model . path . StepNameEvaluationResult > l = java . util . Arrays . asList ( new notaql . model . path . StepNameEvaluationResult ( f , java . util . Arrays . asList ( new notaql . model . path . Step ( 0 ) ) ) ) ; "<AssertPlaceHolder>" ; } getCollection ( ) { return collection ; }
|
org . junit . Assert . assertEquals ( l , evaluate )
|
testGetFieldValue_RelationTarget ( ) { com . archimatetool . model . IArchimateRelationship relation = IArchimateFactory . eINSTANCE . createServingRelationship ( ) ; com . archimatetool . model . IArtifact target = IArchimateFactory . eINSTANCE . createArtifact ( ) ; target . setName ( "target" ) ; relation . setTarget ( target ) ; java . lang . Object o = com . archimatetool . jasperreports . data . FieldDataFactory . getFieldValue ( relation , "relation_target" ) ; "<AssertPlaceHolder>" ; } getFieldValue ( java . lang . Object , java . lang . String ) { if ( "this" . equals ( fieldName ) ) { return dataElement ; } if ( ( "id" . equals ( fieldName ) ) && ( dataElement instanceof com . archimatetool . model . IIdentifier ) ) { return ( ( com . archimatetool . model . IIdentifier ) ( dataElement ) ) . getId ( ) ; } if ( ( "name" . equals ( fieldName ) ) && ( dataElement instanceof com . archimatetool . model . INameable ) ) { java . lang . String name = ( ( com . archimatetool . model . INameable ) ( dataElement ) ) . getName ( ) ; if ( ( name == null ) || ( "" . equals ( name ) ) ) { name = ArchiLabelProvider . INSTANCE . getDefaultName ( ( ( org . eclipse . emf . ecore . EObject ) ( dataElement ) ) . eClass ( ) ) ; } return name ; } if ( ( "type" . equals ( fieldName ) ) && ( dataElement instanceof org . eclipse . emf . ecore . EObject ) ) { return ArchiLabelProvider . INSTANCE . getDefaultName ( ( ( org . eclipse . emf . ecore . EObject ) ( dataElement ) ) . eClass ( ) ) ; } if ( ( "documentation" . equals ( fieldName ) ) && ( dataElement instanceof com . archimatetool . model . IDocumentable ) ) { java . lang . String s = ( ( com . archimatetool . model . IDocumentable ) ( dataElement ) ) . getDocumentation ( ) ; return com . archimatetool . editor . utils . StringUtils . isSet ( s ) ? s : null ; } if ( ( "purpose" . equals ( fieldName ) ) && ( dataElement instanceof com . archimatetool . model . IArchimateModel ) ) { java . lang . String s = ( ( com . archimatetool . model . IArchimateModel ) ( dataElement ) ) . getPurpose ( ) ; return com . archimatetool . editor . utils . StringUtils . isSet ( s ) ? s : null ; } if ( ( "relation_source" . equals ( fieldName ) ) && ( dataElement instanceof com . archimatetool . model . IArchimateRelationship ) ) { com . archimatetool . model . IArchimateRelationship relation = ( ( com . archimatetool . model . IArchimateRelationship ) ( dataElement ) ) ; com . archimatetool . model . IArchimateConcept source = relation . getSource ( ) ; java . lang . String s = source . getName ( ) ; return com . archimatetool . editor . utils . StringUtils . isSet ( s ) ? s : null ; } if ( ( "relation_target" . equals ( fieldName ) ) && ( dataElement instanceof com . archimatetool . model . IArchimateRelationship ) ) { com . archimatetool . model . IArchimateRelationship relation = ( ( com . archimatetool . model . IArchimateRelationship ) ( dataElement ) ) ; com . archimatetool . model . IArchimateConcept target = relation . getTarget ( ) ; java . lang . String s = target . getName ( ) ; return com . archimatetool . editor . utils . StringUtils . isSet ( s ) ? s : null ; } return null ; }
|
org . junit . Assert . assertEquals ( "target" , o )
|
testGetParametersWithDefaultEntityAndDisabledSecurity ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . benefit . Benefit entity = new org . lnu . is . domain . benefit . Benefit ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; expected . put ( "status" , RowStatus . ACTIVE ) ; java . util . Map < java . lang . String , java . lang . Object > actual = unit . getParameters ( entity ) ; "<AssertPlaceHolder>" ; } getParameters ( org . springframework . web . context . request . NativeWebRequest ) { java . util . Map < java . lang . String , java . lang . Object > resultMap = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; java . util . Map < java . lang . String , java . lang . String > pathVariables = ( ( java . util . Map < java . lang . String , java . lang . String > ) ( webRequest . getAttribute ( HandlerMapping . URI_TEMPLATE_VARIABLES_ATTRIBUTE , RequestAttributes . SCOPE_REQUEST ) ) ) ; java . util . Map < java . lang . String , java . lang . Object > requestParams = getRequestParameterMap ( webRequest ) ; for ( Map . Entry < java . lang . String , java . lang . Object > entry : requestParams . entrySet ( ) ) { resultMap . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } resultMap . putAll ( pathVariables ) ; return resultMap ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
testQuiesceTimerServiceAfterOpClose ( ) { final org . apache . flink . streaming . runtime . tasks . OneInputStreamTaskTestHarness < java . lang . String , java . lang . String > testHarness = new org . apache . flink . streaming . runtime . tasks . OneInputStreamTaskTestHarness ( OneInputStreamTask :: new , 2 , 2 , org . apache . flink . api . common . typeinfo . BasicTypeInfo . STRING_TYPE_INFO , org . apache . flink . api . common . typeinfo . BasicTypeInfo . STRING_TYPE_INFO ) ; testHarness . setupOutputForSingletonOperatorChain ( ) ; org . apache . flink . streaming . api . graph . StreamConfig streamConfig = testHarness . getStreamConfig ( ) ; streamConfig . setStreamOperator ( new org . apache . flink . streaming . runtime . tasks . OneInputStreamTaskTest . TestOperator ( ) ) ; streamConfig . setOperatorID ( new org . apache . flink . runtime . jobgraph . OperatorID ( ) ) ; testHarness . invoke ( ) ; testHarness . waitForTaskRunning ( ) ; org . apache . flink . streaming . runtime . tasks . SystemProcessingTimeService timeService = ( ( org . apache . flink . streaming . runtime . tasks . SystemProcessingTimeService ) ( testHarness . getTask ( ) . getProcessingTimeService ( ) ) ) ; "<AssertPlaceHolder>" ; testHarness . endInput ( ) ; testHarness . waitForTaskCompletion ( ) ; timeService . shutdownService ( ) ; } isAlive ( ) { return ! ( isDead ) ; }
|
org . junit . Assert . assertTrue ( timeService . isAlive ( ) )
|
testGoedFilter ( ) { nl . bzk . migratiebrp . conversie . model . lo3 . syntax . Lo3CategorieWaarde categorie01 = maakLo3CategorieWaarde ( Lo3CategorieEnum . CATEGORIE_01 , Lo3ElementEnum . ELEMENT_0110 , Lo3ElementEnum . ELEMENT_0120 , Lo3ElementEnum . ELEMENT_0210 , Lo3ElementEnum . ELEMENT_0220 , Lo3ElementEnum . ELEMENT_0230 , Lo3ElementEnum . ELEMENT_0240 ) ; final nl . bzk . migratiebrp . conversie . vragen . filter . AdHocZoekenFilter filter = new nl . bzk . migratiebrp . conversie . vragen . filter . AdHocZoekenFilter ( ) ; java . util . Collection < java . lang . Integer > result = filter . nietToegestaneRubrieken ( java . util . Collections . singletonList ( categorie01 ) ) ; "<AssertPlaceHolder>" ; } nietToegestaneRubrieken ( java . util . List ) { return categorieen . stream ( ) . map ( this :: flattenElementen ) . flatMap ( Collection :: stream ) . filter ( this :: isNietToegestaan ) . filter ( this :: isNietRubriekExplicietToegestaan ) . map ( this :: format ) . sorted ( ) . collect ( java . util . stream . Collectors . toList ( ) ) ; }
|
org . junit . Assert . assertEquals ( java . util . Collections . emptyList ( ) , result )
|
testCreationDateFailuer ( ) { nom . tam . fits . BasicHDU < ? > dummyHDU = nom . tam . fits . BasicHDU . getDummyHDU ( ) ; dummyHDU . getHeader ( ) . card ( nom . tam . fits . DATE ) . value ( "ABCDE" ) ; "<AssertPlaceHolder>" ; } getCreationDate ( ) { try { return new nom . tam . fits . FitsDate ( this . myHeader . getStringValue ( nom . tam . fits . DATE ) ) . toDate ( ) ; } catch ( nom . tam . fits . FitsException e ) { nom . tam . fits . BasicHDU . LOG . log ( Level . SEVERE , "Unable<sp>to<sp>convert<sp>string<sp>to<sp>FITS<sp>date" , e ) ; return null ; } }
|
org . junit . Assert . assertNull ( dummyHDU . getCreationDate ( ) )
|
testCallCapabilityLocalRepositoryEventListenersOnlyOnce ( ) { java . util . concurrent . atomic . AtomicInteger atomicInteger = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; com . liferay . registry . Registry registry = com . liferay . registry . RegistryUtil . getRegistry ( ) ; com . liferay . document . library . repository . capabilities . test . LiferayDynamicCapabilityTest . TestRepositoryEventAwareCapability testRepositoryEventAwareCapability = ( repositoryEventRegistry ) -> repositoryEventRegistry . registerRepositoryEventListener ( . class , . class , ( fileEntry ) -> atomicInteger . incrementAndGet ( ) ) ; com . liferay . registry . ServiceRegistration < com . liferay . portal . kernel . repository . capabilities . Capability > capabilityServiceRegistration = registry . registerService ( com . liferay . portal . kernel . repository . capabilities . Capability . class , testRepositoryEventAwareCapability , _getCapabilityProperties ( "ALL" ) ) ; capabilityServiceRegistration . unregister ( ) ; capabilityServiceRegistration = registry . registerService ( com . liferay . portal . kernel . repository . capabilities . Capability . class , testRepositoryEventAwareCapability , _getCapabilityProperties ( "ALL" ) ) ; try { _addRandomFileEntry ( com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group . getGroupId ( ) ) ) ; "<AssertPlaceHolder>" ; } finally { capabilityServiceRegistration . unregister ( ) ; } } get ( ) { return _byteBuffer . get ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , atomicInteger . get ( ) )
|
testRemove ( ) { com . supaham . commons . placeholders . PlaceholderSet < com . supaham . commons . placeholders . Placeholder > set = new com . supaham . commons . placeholders . PlaceholderSet ( ) ; set . remove ( com . supaham . commons . placeholders . SimplePlaceholderTest . SIMPLE_PLACEHOLDER ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . Object ) { return original . contains ( o ) ; }
|
org . junit . Assert . assertFalse ( set . contains ( com . supaham . commons . placeholders . SimplePlaceholderTest . SIMPLE_PLACEHOLDER ) )
|
test1 ( ) { java . util . TreeMap < org . apache . accumulo . core . data . Key , org . apache . accumulo . core . data . Value > data = new java . util . TreeMap ( ) ; data . put ( newKey ( "r1" , "cf1" , "cq1" ) , new org . apache . accumulo . core . data . Value ( "" ) ) ; data . put ( newKey ( "r1" , "cf2" , "cq1" ) , new org . apache . accumulo . core . data . Value ( "" ) ) ; java . util . HashSet < org . apache . accumulo . core . data . Column > columns = new java . util . HashSet ( ) ; columns . add ( newColumn ( "cf1" ) ) ; org . apache . accumulo . core . iterators . SortedMapIterator smi = new org . apache . accumulo . core . iterators . SortedMapIterator ( data ) ; org . apache . accumulo . core . iterators . SortedKeyValueIterator < org . apache . accumulo . core . data . Key , org . apache . accumulo . core . data . Value > cf = org . apache . accumulo . core . iterators . system . ColumnQualifierFilter . wrap ( smi , columns ) ; "<AssertPlaceHolder>" ; } wrap ( org . apache . accumulo . core . iterators . SortedKeyValueIterator , java . util . Set ) { boolean sawNonNullQual = false ; for ( org . apache . accumulo . core . data . Column col : cols ) { if ( ( col . getColumnQualifier ( ) ) != null ) { sawNonNullQual = true ; break ; } } if ( sawNonNullQual ) { return new org . apache . accumulo . core . iterators . system . ColumnQualifierFilter ( source , cols ) ; } else { return source ; } }
|
org . junit . Assert . assertSame ( smi , cf )
|
testComputedShouldBeMin ( ) { final int minProbeRecordsPerBatch = 10 ; final int computedProbeRecordsPerBatch = HashJoinMemoryCalculatorImpl . PostBuildCalculationsImpl . computeProbeRecordsPerBatch ( 100 , 2 , 100 , minProbeRecordsPerBatch , 50 , 40 , 200 ) ; "<AssertPlaceHolder>" ; } computeProbeRecordsPerBatch ( long , int , int , int , long , long , long ) { long memoryForPartitionBatches = ( memoryAvailable - maxProbeBatchSize ) - maxOutputBatchSize ; if ( memoryForPartitionBatches < 0 ) { org . apache . drill . exec . physical . impl . join . HashJoinMemoryCalculatorImpl . PostBuildCalculationsImpl . log . warn ( ( "Not<sp>enough<sp>memory<sp>for<sp>probing:\n" + ( ( "Memory<sp>available:<sp>{}\n" + "Max<sp>probe<sp>batch<sp>size:<sp>{}\n" ) + "Max<sp>output<sp>batch<sp>size:<sp>{}" ) ) , memoryAvailable , maxProbeBatchSize , maxOutputBatchSize ) ; return minProbeRecordsPerBatch ; } long memoryForPartitionBatch = ( ( memoryForPartitionBatches + numPartitions ) - 1 ) / numPartitions ; long scaleFactor = ( ( defaultPartitionProbeBatchSize + memoryForPartitionBatch ) - 1 ) / memoryForPartitionBatch ; return java . lang . Math . max ( ( ( int ) ( defaultProbeRecordsPerBatch / scaleFactor ) ) , minProbeRecordsPerBatch ) ; }
|
org . junit . Assert . assertEquals ( minProbeRecordsPerBatch , computedProbeRecordsPerBatch )
|
testToAndFromUrl ( ) { com . google . cloud . compute . deprecated . DiskTypeId diskTypeId = com . google . cloud . compute . deprecated . DiskTypeId . of ( com . google . cloud . compute . deprecated . DiskTypeIdTest . PROJECT , com . google . cloud . compute . deprecated . DiskTypeIdTest . ZONE , com . google . cloud . compute . deprecated . DiskTypeIdTest . DISK_TYPE ) ; "<AssertPlaceHolder>" ; compareDiskTypeId ( diskTypeId , com . google . cloud . compute . deprecated . DiskTypeId . fromUrl ( diskTypeId . getSelfLink ( ) ) ) ; thrown . expect ( com . google . cloud . compute . deprecated . IllegalArgumentException . class ) ; thrown . expectMessage ( "notMatchingUrl<sp>is<sp>not<sp>a<sp>valid<sp>disk<sp>type<sp>URL" ) ; com . google . cloud . compute . deprecated . DiskTypeId . fromUrl ( "notMatchingUrl" ) ; } setProjectId ( java . lang . String ) { if ( value == null ) { throw new java . lang . NullPointerException ( ) ; } projectId_ = value ; onChanged ( ) ; return this ; }
|
org . junit . Assert . assertSame ( diskTypeId , diskTypeId . setProjectId ( com . google . cloud . compute . deprecated . DiskTypeIdTest . PROJECT ) )
|
testOr ( ) { org . kie . api . KieBase kbase = loadKnowledgeBase ( "test_OrNesting.drl" ) ; org . kie . api . runtime . KieSession workingMemory = createKnowledgeSession ( kbase ) ; final java . util . List list = new java . util . ArrayList ( ) ; workingMemory . setGlobal ( "results" , list ) ; final org . drools . compiler . Cheese cheddar = new org . drools . compiler . Cheese ( "cheddar" , 7 ) ; final org . drools . compiler . Cheese provolone = new org . drools . compiler . Cheese ( "provolone" , 5 ) ; final org . drools . compiler . Cheese brie = new org . drools . compiler . Cheese ( "brie" , 15 ) ; final org . drools . compiler . Person mark = new org . drools . compiler . Person ( "mark" , "stilton" ) ; org . kie . api . runtime . rule . FactHandle ch = ( ( org . kie . api . runtime . rule . FactHandle ) ( workingMemory . insert ( cheddar ) ) ) ; org . kie . api . runtime . rule . FactHandle ph = ( ( org . kie . api . runtime . rule . FactHandle ) ( workingMemory . insert ( provolone ) ) ) ; org . kie . api . runtime . rule . FactHandle bh = ( ( org . kie . api . runtime . rule . FactHandle ) ( workingMemory . insert ( brie ) ) ) ; org . kie . api . runtime . rule . FactHandle markh = ( ( org . kie . api . runtime . rule . FactHandle ) ( workingMemory . insert ( mark ) ) ) ; workingMemory . fireAllRules ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return rulesFired . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
|
testBondPermutation ( ) { org . openscience . cdk . interfaces . IAtomContainer pamine = org . openscience . cdk . fingerprint . ShortestPathFingerprinterTest . makePropylAmine ( ) ; org . openscience . cdk . fingerprint . ShortestPathFingerprinter fp = new org . openscience . cdk . fingerprint . ShortestPathFingerprinter ( ) ; org . openscience . cdk . fingerprint . IBitFingerprint bs1 = fp . getBitFingerprint ( pamine ) ; org . openscience . cdk . graph . AtomContainerBondPermutor acp = new org . openscience . cdk . graph . AtomContainerBondPermutor ( pamine ) ; while ( acp . hasNext ( ) ) { org . openscience . cdk . interfaces . IAtomContainer container = acp . next ( ) ; org . openscience . cdk . fingerprint . IBitFingerprint bs2 = fp . getBitFingerprint ( container ) ; "<AssertPlaceHolder>" ; } } equals ( java . lang . Object ) { if ( ! ( o instanceof org . openscience . cdk . pharmacophore . PharmacophoreAtom ) ) return false ; org . openscience . cdk . pharmacophore . PharmacophoreAtom that = ( ( org . openscience . cdk . pharmacophore . PharmacophoreAtom ) ( o ) ) ; return ( ( ( smarts . equals ( that . getSmarts ( ) ) ) && ( symbol . equals ( that . getSymbol ( ) ) ) ) && ( point3d . equals ( that . getPoint3d ( ) ) ) ) && ( java . util . Arrays . equals ( this . matchingAtoms , that . matchingAtoms ) ) ; }
|
org . junit . Assert . assertTrue ( bs1 . equals ( bs2 ) )
|
testHelpFromCreateRequest ( ) { com . dumbster . smtp . Request request = com . dumbster . smtp . Request . createRequest ( SmtpState . GREET , "HELP" ) ; "<AssertPlaceHolder>" ; } getClientAction ( ) { return clientAction ; }
|
org . junit . Assert . assertEquals ( "HELP" , request . getClientAction ( ) . toString ( ) )
|
testParseZeroReal ( ) { java . lang . String source = ( ( ( "0" + ( getDecimalCharacter ( ) ) ) + "0<sp>-<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343i" ; org . apache . commons . math . complex . Complex expected = new org . apache . commons . math . complex . Complex ( 0.0 , ( - 1.4343 ) ) ; org . apache . commons . math . 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 )
|
dontBombOnNull ( ) { kong . unirest . Headers h = new kong . unirest . Headers ( ) ; h . add ( null , "foo" ) ; "<AssertPlaceHolder>" ; } size ( ) { return headers . stream ( ) . map ( Header :: getName ) . collect ( toSet ( ) ) . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , h . size ( ) )
|
voiceTest ( ) { zemberek . core . turkish . TurkishAlphabet alphabet = TurkishAlphabet . INSTANCE ; java . lang . String iStr = "gGkKpPtTaAbB" ; java . lang . String oStr = "cCbBdDaAbB" ; for ( int i = 0 ; i < ( iStr . length ( ) ) ; i ++ ) { char in = iStr . charAt ( i ) ; char outExpected = oStr . charAt ( i ) ; "<AssertPlaceHolder>" ; } } voice ( char ) { int res = voicingMap . get ( c ) ; return res == ( zemberek . core . collections . IntIntMap . NO_RESULT ) ? c : ( ( char ) ( res ) ) ; }
|
org . junit . Assert . assertEquals ( "" , java . lang . String . valueOf ( outExpected ) , java . lang . String . valueOf ( alphabet . voice ( in ) ) )
|
shouldFindSameFalisyingValuesGivenSameSeed ( ) { verifier . qt ( 42 ) . forAll ( this . g ) . check ( ( a ) -> a > 1000 ) ; int falsifyingValue = verifier . smallestFalsifiedValue ( ) ; org . quicktheories . impl . QTTester verifier2 = new org . quicktheories . impl . QTTester ( ) ; verifier2 . qt ( 42 ) . forAll ( this . g ) . check ( ( a ) -> a > 1000 ) ; int repeatedCheck = verifier2 . smallestFalsifiedValue ( ) ; "<AssertPlaceHolder>" ; } smallestFalsifiedValue ( ) { org . mockito . ArgumentCaptor < T > value = ( ( org . mockito . ArgumentCaptor < T > ) ( org . mockito . ArgumentCaptor . forClass ( java . lang . Object . class ) ) ) ; verify ( r , times ( 1 ) ) . falisification ( anyLong ( ) , anyInt ( ) , value . capture ( ) , any ( java . util . List . class ) , any ( ) ) ; return value . getValue ( ) ; }
|
org . junit . Assert . assertEquals ( falsifyingValue , repeatedCheck )
|
testFreeSelectSqlBuilderInAllDBAndAllTableShards ( ) { com . ctrip . platform . dal . dao . shard . List < java . lang . String > list = new com . ctrip . platform . dal . dao . shard . ArrayList ( ) ; list . add ( "1" ) ; list . add ( "2" ) ; list . add ( "3" ) ; list . add ( "4" ) ; com . ctrip . platform . dal . dao . sqlbuilder . FreeSelectSqlBuilder < com . ctrip . platform . dal . dao . shard . List < com . ctrip . platform . dal . dao . shard . ClientTestModel > > builder = new com . ctrip . platform . dal . dao . sqlbuilder . FreeSelectSqlBuilder ( ) ; builder . selectAll ( ) . from ( com . ctrip . platform . dal . dao . shard . BaseDalTableDaoShardByDbTableTest . TABLE_NAME ) . where ( com . ctrip . platform . dal . dao . sqlbuilder . Expressions . in ( "id" , list , Types . INTEGER ) ) ; builder . mapWith ( new com . ctrip . platform . dal . dao . helper . DalDefaultJpaMapper ( com . ctrip . platform . dal . dao . shard . ClientTestModel . class ) ) ; try { com . ctrip . platform . dal . dao . shard . List < com . ctrip . platform . dal . dao . shard . ClientTestModel > result = com . ctrip . platform . dal . dao . shard . BaseDalTableDaoShardByDbTableTest . queryDao . query ( builder , new com . ctrip . platform . dal . dao . shard . DalHints ( ) . inAllShards ( ) . inAllTableShards ( ) ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ) ; } } size ( ) { return allKeys . size ( ) ; }
|
org . junit . Assert . assertEquals ( 20 , result . size ( ) )
|
startProcess ( ) { org . activiti . engine . RepositoryService repositoryService = activitiRule . getRepositoryService ( ) ; repositoryService . createDeployment ( ) . addInputStream ( "leave.bpmn20.xml" , new java . io . FileInputStream ( filename ) ) . deploy ( ) ; org . activiti . engine . RuntimeService runtimeService = activitiRule . getRuntimeService ( ) ; java . util . Map < java . lang . String , java . lang . Object > variableMap = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; variableMap . put ( "name" , "Activiti" ) ; org . activiti . engine . runtime . ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "leave" , variableMap ) ; "<AssertPlaceHolder>" ; System . out . println ( ( ( ( "id<sp>" + ( processInstance . getId ( ) ) ) + "<sp>" ) + ( processInstance . getProcessDefinitionId ( ) ) ) ) ; }
|
org . junit . Assert . assertNotNull ( processInstance . getId ( ) )
|
should_return_empty_List_if_given_Collection_has_only_null_elements ( ) { java . util . Collection < java . lang . String > c = new java . util . ArrayList < java . lang . String > ( ) ; c . add ( null ) ; "<AssertPlaceHolder>" ; } nonNullElementsIn ( org . fest . util . Collection ) { if ( c == null ) { return org . fest . util . Lists . emptyList ( ) ; } org . fest . util . List < T > nonNull = new org . fest . util . ArrayList < T > ( ) ; for ( T element : c ) { if ( element != null ) { nonNull . add ( element ) ; } } return nonNull ; }
|
org . junit . Assert . assertTrue ( org . fest . util . Collections . nonNullElementsIn ( c ) . isEmpty ( ) )
|
testIsNotification2 ( ) { boolean isUI = com . vaadin . client . componentlocator . LocatorUtil . isNotificationElement ( "com.vaadin.ui.Notification" ) ; "<AssertPlaceHolder>" ; } isNotificationElement ( java . lang . String ) { java . lang . String regex = "^\\/{0,2}(com\\.vaadin\\.ui\\.)?V?Notification[\\/\\[]?" ; com . google . gwt . regexp . shared . RegExp regexp = com . google . gwt . regexp . shared . RegExp . compile ( regex ) ; return regexp . test ( path ) ; }
|
org . junit . Assert . assertTrue ( isUI )
|
testLargeByteBufferAttribute ( ) { io . joynr . proxy . ProxyBuilder < joynr . tests . testProxy > proxyBuilder = consumerRuntime . getProxyBuilder ( domain , joynr . tests . testProxy . class ) ; joynr . tests . testProxy proxy = proxyBuilder . setMessagingQos ( messagingQos ) . setDiscoveryQos ( discoveryQos ) . build ( ) ; byte [ ] bytes = new byte [ 1000000 ] ; new java . util . Random ( ) . nextBytes ( bytes ) ; java . lang . Byte [ ] byteArray = new java . lang . Byte [ bytes . length ] ; int i = 0 ; for ( byte nextbyte : bytes ) { byteArray [ ( i ++ ) ] = nextbyte ; } proxy . setByteBufferAttribute ( byteArray ) ; java . lang . Byte [ ] result = proxy . getByteBufferAttribute ( ) ; "<AssertPlaceHolder>" ; } build ( ) { return build ( new io . joynr . proxy . ProxyCreatedCallback < T > ( ) { @ io . joynr . proxy . Override public void onProxyCreationFinished ( T result ) { io . joynr . proxy . ProxyBuilderDefaultImpl . logger . trace ( "proxy<sp>created:<sp>interface:<sp>{}<sp>domains:<sp>{}" , interfaceName , domains ) ; } @ io . joynr . proxy . Override public void onProxyCreationError ( io . joynr . exceptions . JoynrRuntimeException error ) { io . joynr . proxy . ProxyBuilderDefaultImpl . logger . error ( "error<sp>creating<sp>proxy:<sp>interface:<sp>{}<sp>domains:<sp>{},<sp>error:<sp>{}" , interfaceName , domains , error . getMessage ( ) ) ; } } ) ; }
|
org . junit . Assert . assertArrayEquals ( byteArray , result )
|
testGetInstanceId8 ( ) { com . liferay . portal . kernel . model . PortletInstance portletInstance = com . liferay . portal . kernel . model . PortletInstance . fromPortletInstanceKey ( getPortletInstanceKey ( getPortletInstanceKey ( ) , 1234 , "5678" ) ) ; "<AssertPlaceHolder>" ; } getInstanceId ( ) { return _instanceId ; }
|
org . junit . Assert . assertEquals ( "5678" , portletInstance . getInstanceId ( ) )
|
testPushBuffer ( ) { net . yadan . banana . stack . Stack s = new net . yadan . banana . stack . Stack ( 100 , net . yadan . banana . stack . StackTest . BLOCK_SIZE ) ; net . yadan . banana . memory . IBuffer buffer = new net . yadan . banana . memory . Buffer ( 20 ) ; net . yadan . banana . memory . IBuffer out = new net . yadan . banana . memory . Buffer ( 20 ) ; for ( int i = 0 ; i < ( buffer . capacity ( ) ) ; i ++ ) { buffer . appendInt ( i ) ; } s . push ( buffer ) ; s . getInts ( 0 , out . array ( ) , 0 , buffer . capacity ( ) ) ; "<AssertPlaceHolder>" ; } array ( ) { return m_buffer ; }
|
org . junit . Assert . assertArrayEquals ( buffer . array ( ) , out . array ( ) )
|
intermediate_filter ( ) { long elementsLessThanThree = java . util . stream . Stream . of ( 1 , 2 , 3 , 4 ) . filter ( ( p ) -> ( p . intValue ( ) ) < 3 ) . count ( ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertEquals ( 2 , elementsLessThanThree )
|
testSetNameNoFragmentManager ( ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollector collector = new org . hawkular . apm . client . collector . internal . DefaultTraceCollector ( ) ; collector . setTransaction ( null , "test" ) ; "<AssertPlaceHolder>" ; collector . getFragmentManager ( ) . clear ( ) ; } getTransaction ( ) { java . lang . String ret = null ; try { if ( fragmentManager . hasFragmentBuilder ( ) ) { org . hawkular . apm . client . collector . internal . FragmentBuilder builder = fragmentManager . getFragmentBuilder ( ) ; ret = builder . getTrace ( ) . getTransaction ( ) ; } else if ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . log . isLoggable ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . warningLogLevel ) ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollector . log . log ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . warningLogLevel , "getTransaction:<sp>No<sp>fragment<sp>builder<sp>for<sp>this<sp>thread" , null ) ; } } catch ( java . lang . Throwable t ) { if ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . log . isLoggable ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . warningLogLevel ) ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollector . log . log ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . warningLogLevel , "getTransaction<sp>failed" , t ) ; } } if ( org . hawkular . apm . client . collector . internal . DefaultTraceCollector . log . isLoggable ( Level . FINEST ) ) { org . hawkular . apm . client . collector . internal . DefaultTraceCollector . log . finest ( ( "Get<sp>transaction<sp>name=" + ret ) ) ; } if ( ret == null ) { ret = "" ; } return ret ; }
|
org . junit . Assert . assertEquals ( "test" , collector . getTransaction ( ) )
|
testIsActive_isFalseAfterCreation ( ) { applicationContext = new org . eclipse . rap . rwt . internal . application . ApplicationContextImpl ( null , null ) ; "<AssertPlaceHolder>" ; } isActive ( ) { return this . equals ( editor . getActivePageInstance ( ) ) ; }
|
org . junit . Assert . assertFalse ( applicationContext . isActive ( ) )
|
testRemoveWorkReportType ( ) { org . libreplan . business . workreports . entities . WorkReportType workReportType = createValidWorkReportType ( ) ; workReportTypeDAO . save ( workReportType ) ; workReportTypeDAO . remove ( workReportType . getId ( ) ) ; "<AssertPlaceHolder>" ; } exists ( PK extends java . io . Serializable ) { return ( getSession ( ) . createCriteria ( entityClass ) . add ( org . hibernate . criterion . Restrictions . idEq ( id ) ) . setProjection ( org . hibernate . criterion . Projections . id ( ) ) . uniqueResult ( ) ) != null ; }
|
org . junit . Assert . assertFalse ( workReportTypeDAO . exists ( workReportType . getId ( ) ) )
|
setAuthor ( ) { java . lang . String newAuthor = "New<sp>Author" ; instance . setAuthor ( newAuthor ) ; "<AssertPlaceHolder>" ; } getAuthor ( ) { initFields ( ) ; return author ; }
|
org . junit . Assert . assertEquals ( newAuthor , instance . getAuthor ( ) )
|
startDialogAndVerifyThatAKSExceptionIsProperlyHandled ( ) { sttService = new org . eclipse . smarthome . core . voice . internal . STTServiceStub ( ) ; ksService = new org . eclipse . smarthome . core . voice . internal . KSServiceStub ( ) ; ttsService = new org . eclipse . smarthome . core . voice . internal . TTSServiceStub ( ) ; hliStub = new org . eclipse . smarthome . core . voice . internal . HumanLanguageInterpreterStub ( ) ; source = new org . eclipse . smarthome . core . voice . internal . AudioSourceStub ( ) ; registerService ( sttService ) ; registerService ( ksService ) ; registerService ( ttsService ) ; registerService ( hliStub ) ; registerService ( source ) ; ksService . setIsKsExceptionExpected ( true ) ; voiceManager . startDialog ( ksService , sttService , ttsService , hliStub , source , sink , null , "" , null ) ; "<AssertPlaceHolder>" ; } isWordSpotted ( ) { return isWordSpotted ; }
|
org . junit . Assert . assertFalse ( ksService . isWordSpotted ( ) )
|
testGetServerWebsocketEndpointConfiguratorLocalServer ( ) { java . lang . String contextPath = "/pentaho" ; java . lang . String serverUrl = "http://localhost:8080" ; java . util . function . Predicate < java . lang . String > isOriginAllowedPredicate = ( s ) -> false ; when ( pluginDispatchServlet . getServerUrl ( contextPath ) ) . thenReturn ( serverUrl ) ; javax . websocket . server . ServerEndpointConfig . Configurator endpointConfigurator = pluginDispatchServlet . getServerWebsocketEndpointConfigurator ( contextPath , isOriginAllowedPredicate ) ; "<AssertPlaceHolder>" ; } checkOrigin ( java . lang . String ) { java . lang . String localServerOrigin = getServerUrl ( servletContextPath ) ; if ( localServerOrigin . equals ( originHeaderValue ) ) { return true ; } if ( isOriginAllowedPredicate != null ) { return isOriginAllowedPredicate . test ( originHeaderValue ) ; } return false ; }
|
org . junit . Assert . assertTrue ( endpointConfigurator . checkOrigin ( "http://localhost:8080" ) )
|
testSerialization2 ( ) { com . fasterxml . jackson . databind . ObjectMapper objectMapper = com . puresoltechnologies . ductiledb . logstore . utils . DefaultObjectMapper . getInstance ( ) ; objectMapper . enable ( com . fasterxml . jackson . databind . SerializationFeature . INDENT_OUTPUT ) ; com . puresoltechnologies . ductiledb . logstore . LogStoreConfiguration configuration = new com . puresoltechnologies . ductiledb . logstore . LogStoreConfiguration ( ) ; java . lang . String jsonString = objectMapper . writeValueAsString ( configuration ) ; com . puresoltechnologies . ductiledb . logstore . LogStoreConfiguration configuration2 = objectMapper . readValue ( jsonString , com . puresoltechnologies . ductiledb . logstore . LogStoreConfiguration . class ) ; "<AssertPlaceHolder>" ; } getInstance ( ) { return com . puresoltechnologies . ductiledb . logstore . utils . DefaultObjectMapper . objectMapper ; }
|
org . junit . Assert . assertEquals ( configuration , configuration2 )
|
testPrepareDoesNotThrowExceptionWhenInitializingClusterMetricsConsumerIsFailing ( ) { org . apache . storm . metric . ClusterMetricsConsumerExecutor sut = new org . apache . storm . metric . ClusterMetricsConsumerExecutor ( org . apache . storm . metric . ClusterMetricsConsumerExecutorTest . MockFailingClusterMetricsConsumer . class . getName ( ) , 2 ) ; sut . prepare ( ) ; sut . prepare ( ) ; "<AssertPlaceHolder>" ; } getPrepareCallCount ( ) { return org . apache . storm . metric . ClusterMetricsConsumerExecutorTest . MockFailingClusterMetricsConsumer . prepareCallCount ; }
|
org . junit . Assert . assertEquals ( 2 , org . apache . storm . metric . ClusterMetricsConsumerExecutorTest . MockFailingClusterMetricsConsumer . getPrepareCallCount ( ) )
|
testListSinceDate ( ) { java . util . List < com . alienvault . otx . model . pulse . Pulse > allPulses = otxConnection . getPulsesSinceDate ( org . joda . time . DateTime . now ( ) . minusDays ( 10 ) ) ; "<AssertPlaceHolder>" ; } getPulsesSinceDate ( org . joda . time . DateTime ) { return getPulses ( com . alienvault . otx . connect . Collections . singletonMap ( OTXEndpointParameters . MODIFIED_SINCE , com . alienvault . otx . connect . OTXConnection . fmt . print ( lastUpdated ) ) ) ; }
|
org . junit . Assert . assertTrue ( ( ( allPulses . size ( ) ) > 0 ) )
|
testEmptyAuth ( ) { java . util . List < org . apache . hadoop . util . ZKUtil . ZKAuthInfo > result = org . apache . hadoop . util . ZKUtil . parseAuth ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return addrs . isEmpty ( ) ; }
|
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
|
taskRunningStateHandlerTest ( ) { final org . apache . reef . webserver . ReefEventStateManager . TaskRunningStateHandler h = this . injector . getInstance ( ReefEventStateManager . TaskRunningStateHandler . class ) ; "<AssertPlaceHolder>" ; } getInstance ( java . lang . String ) { return getInstance ( newRmName , 0 , this . codec , this . errorHandler ) ; }
|
org . junit . Assert . assertNotNull ( h )
|
testGetContentInfo ( ) { final org . apache . commons . vfs2 . FileSystemManager fsManager = org . apache . commons . vfs2 . VFS . getManager ( ) ; try ( final org . apache . commons . vfs2 . FileObject fo = fsManager . resolveFile ( "http://www.apache.org/licenses/LICENSE-2.0.txt" ) ; final org . apache . commons . vfs2 . FileContent content = fo . getContent ( ) ) { "<AssertPlaceHolder>" ; content . getContentInfo ( ) ; } } getContent ( ) { return content ; }
|
org . junit . Assert . assertNotNull ( content )
|
testGetAll ( ) { com . mongodb . DBCollection coll = createMockCollection ( ) ; com . mongodb . DBCursor cursor = createMockCursor ( ) ; expect ( cursor . hasNext ( ) ) . andAnswer ( new org . easymock . IAnswer < java . lang . Boolean > ( ) { private int count = 0 ; @ net . bluemix . todo . store . Override public net . bluemix . todo . store . Boolean answer ( ) throws java . lang . Throwable { ( count ) ++ ; return ( count ) == 3 ? false : true ; } } ) . anyTimes ( ) ; expect ( cursor . next ( ) ) . andAnswer ( new org . easymock . IAnswer < com . mongodb . DBObject > ( ) { private int count = 0 ; @ net . bluemix . todo . store . Override public com . mongodb . DBObject answer ( ) throws java . lang . Throwable { ( count ) ++ ; com . mongodb . BasicDBObject dbObj = new com . mongodb . BasicDBObject ( ) ; dbObj . put ( "title" , ( "This<sp>is<sp>todo<sp>" + ( count ) ) ) ; dbObj . put ( "completed" , false ) ; dbObj . put ( "order" , count ) ; dbObj . put ( "_id" , new org . bson . types . ObjectId ( ( "aaaaaaaaaaaaaaaaaaaaaaa" + ( count ) ) ) ) ; return dbObj ; } } ) . anyTimes ( ) ; cursor . close ( ) ; expectLastCall ( ) ; replay ( cursor ) ; expect ( coll . find ( ) ) . andReturn ( cursor ) ; replay ( coll ) ; net . bluemix . todo . store . MongoStore store = new net . bluemix . todo . store . MongoStore ( coll ) ; java . util . Collection < net . bluemix . todo . model . ToDo > todos = store . getAll ( ) ; java . util . List < net . bluemix . todo . model . ToDo > testToDos = new java . util . ArrayList < net . bluemix . todo . model . ToDo > ( ) ; net . bluemix . todo . model . ToDo td1 = new net . bluemix . todo . model . ToDo ( ) ; td1 . setId ( "aaaaaaaaaaaaaaaaaaaaaaa1" ) ; td1 . setTitle ( "This<sp>is<sp>todo<sp>1" ) ; td1 . setOrder ( 1 ) ; net . bluemix . todo . model . ToDo td2 = new net . bluemix . todo . model . ToDo ( ) ; td2 . setId ( "aaaaaaaaaaaaaaaaaaaaaaa2" ) ; td2 . setTitle ( "This<sp>is<sp>todo<sp>2" ) ; td2 . setOrder ( 2 ) ; testToDos . add ( td1 ) ; testToDos . add ( td2 ) ; "<AssertPlaceHolder>" ; verify ( cursor ) ; verify ( coll ) ; } setOrder ( int ) { this . order = order ; }
|
org . junit . Assert . assertEquals ( testToDos , todos )
|
getLastClosedTransactionIdShouldFailWhenStoreIsClosed ( ) { org . neo4j . kernel . impl . store . MetaDataStore metaDataStore = newMetaDataStore ( ) ; metaDataStore . close ( ) ; try { metaDataStore . getLastClosedTransactionId ( ) ; org . junit . Assert . fail ( "Expected<sp>exception<sp>reading<sp>from<sp>MetaDataStore<sp>after<sp>being<sp>closed." ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } instanceOf ( java . lang . Class ) { return clazz :: isInstance ; }
|
org . junit . Assert . assertThat ( e , org . hamcrest . Matchers . instanceOf ( org . neo4j . kernel . impl . store . IllegalStateException . class ) )
|
testProxySSL ( ) { org . apache . jackrabbit . oak . segment . file . FileStore storeS = serverFileStore . fileStore ( ) ; org . apache . jackrabbit . oak . segment . file . FileStore storeC = clientFileStore1 . fileStore ( ) ; org . apache . jackrabbit . oak . spi . state . NodeStore store = org . apache . jackrabbit . oak . segment . SegmentNodeStoreBuilders . builder ( storeS ) . build ( ) ; org . apache . jackrabbit . oak . segment . SegmentTestUtils . addTestContent ( store , "server" ) ; storeS . flush ( ) ; try ( org . apache . jackrabbit . oak . segment . standby . server . StandbyServerSync serverSync = org . apache . jackrabbit . oak . segment . standby . server . StandbyServerSync . builder ( ) . withPort ( serverPort . getPort ( ) ) . withFileStore ( storeS ) . withBlobChunkSize ( org . apache . jackrabbit . oak . segment . standby . MB ) . withSecureConnection ( true ) . build ( ) ; org . apache . jackrabbit . oak . segment . standby . client . StandbyClientSync clientSync = new org . apache . jackrabbit . oak . segment . standby . client . StandbyClientSync ( getServerHost ( ) , serverPort . getPort ( ) , storeC , true , getClientTimeout ( ) , false , folder . newFolder ( ) ) ) { serverSync . start ( ) ; clientSync . run ( ) ; } "<AssertPlaceHolder>" ; } getHead ( ) { return store . getHead ( ) ; }
|
org . junit . Assert . assertEquals ( storeS . getHead ( ) , storeC . getHead ( ) )
|
givenEnumSingleton_whenMultithreadInstancesEquals_thenTrue ( ) { java . util . concurrent . ExecutorService executor = java . util . concurrent . Executors . newFixedThreadPool ( com . baeldung . singleton . synchronization . SingletonSynchronizationIntegrationTest . POOL_SIZE ) ; java . util . Set < com . baeldung . singleton . synchronization . EnumSingleton > resultSet = java . util . Collections . synchronizedSet ( new java . util . HashSet ( ) ) ; for ( int i = 0 ; i < ( com . baeldung . singleton . synchronization . SingletonSynchronizationIntegrationTest . TASKS_TO_SUBMIT ) ; i ++ ) { executor . submit ( ( ) -> resultSet . add ( EnumSingleton . INSTANCE ) ) ; } "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , resultSet . size ( ) )
|
testRadix10Pos ( ) { java . lang . String value = "2387627892347567398736473476" ; int radix = 16 ; java . math . BigInteger aNumber = new java . math . BigInteger ( value , radix ) ; java . lang . String result = aNumber . toString ( radix ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( object instanceof org . teavm . classlib . java . text . TParsePosition ) ) { return false ; } org . teavm . classlib . java . text . TParsePosition pos = ( ( org . teavm . classlib . java . text . TParsePosition ) ( object ) ) ; return ( ( currentPosition ) == ( pos . currentPosition ) ) && ( ( errorIndex ) == ( pos . errorIndex ) ) ; }
|
org . junit . Assert . assertTrue ( result . equals ( value ) )
|
testGetColumnIds ( ) { java . lang . String columnName = org . sagebionetworks . table . cluster . SQLUtils . getColumnNameForId ( "123" ) ; org . sagebionetworks . table . cluster . DatabaseColumnInfo rowId = new org . sagebionetworks . table . cluster . DatabaseColumnInfo ( ) ; rowId . setColumnName ( TableConstants . ROW_ID ) ; org . sagebionetworks . table . cluster . DatabaseColumnInfo rowVersion = new org . sagebionetworks . table . cluster . DatabaseColumnInfo ( ) ; rowVersion . setColumnName ( TableConstants . ROW_VERSION ) ; org . sagebionetworks . table . cluster . DatabaseColumnInfo info = new org . sagebionetworks . table . cluster . DatabaseColumnInfo ( ) ; info . setColumnName ( columnName ) ; info . setColumnType ( ColumnType . STRING ) ; info . setMaxSize ( 22 ) ; org . sagebionetworks . table . cluster . DatabaseColumnInfo noType = new org . sagebionetworks . table . cluster . DatabaseColumnInfo ( ) ; noType . setColumnName ( "noType" ) ; noType . setColumnType ( null ) ; java . util . List < org . sagebionetworks . table . cluster . DatabaseColumnInfo > infoList = com . google . common . collect . Lists . newArrayList ( rowId , rowVersion , info , noType ) ; java . util . List < org . sagebionetworks . repo . model . table . ColumnModel > results = org . sagebionetworks . table . cluster . SQLUtils . extractSchemaFromInfo ( infoList ) ; org . sagebionetworks . repo . model . table . ColumnModel cm = new org . sagebionetworks . repo . model . table . ColumnModel ( ) ; cm . setId ( "123" ) ; cm . setColumnType ( info . getColumnType ( ) ) ; cm . setMaximumSize ( 22L ) ; java . util . List < org . sagebionetworks . repo . model . table . ColumnModel > expected = com . google . common . collect . Lists . newArrayList ( cm ) ; "<AssertPlaceHolder>" ; } getColumnType ( ) { return columnType ; }
|
org . junit . Assert . assertEquals ( expected , results )
|
beAbleToAddStudents ( ) { org . adaptiveplatform . surveys . dto . UserDto student = student ( ) ; group . addStudent ( student ) ; "<AssertPlaceHolder>" ; } isStudent ( org . adaptiveplatform . surveys . dto . UserDto ) { return rolesOf ( user ) . contains ( GroupRole . STUDENT ) ; }
|
org . junit . Assert . assertTrue ( group . isStudent ( student ) )
|
testWithInputformat ( ) { final java . lang . String inputformat = "inputformat" ; final org . apache . oozie . fluentjob . api . action . PipesBuilder builder = new org . apache . oozie . fluentjob . api . action . PipesBuilder ( ) ; builder . withInputformat ( inputformat ) ; final org . apache . oozie . fluentjob . api . action . Pipes pipes = builder . build ( ) ; "<AssertPlaceHolder>" ; } getInputformat ( ) { return inputformat ; }
|
org . junit . Assert . assertEquals ( inputformat , pipes . getInputformat ( ) )
|
cascadeOneLevelAndVerifyInvocationOnLastMockOnly ( mockit . CascadingParametersTest$Foo , mockit . CascadingParametersTest$Bar ) { mockit . CascadingParametersTest . Bar fooBar = foo . getBar ( ) ; "<AssertPlaceHolder>" ; fooBar . doSomething ( ) ; new mockit . Verifications ( ) { { bar . doSomething ( ) ; } } ; } getBar ( ) { return null ; }
|
org . junit . Assert . assertSame ( bar , fooBar )
|
test ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; java . util . List < org . tests . model . basic . Customer > list = io . ebean . Ebean . find ( org . tests . model . basic . Customer . class ) . select ( "id,<sp>name" ) . order ( ) . desc ( "id" ) . findList ( ) ; io . ebean . EbeanServer server = io . ebean . Ebean . getServer ( null ) ; io . ebean . text . json . JsonContext json = server . json ( ) ; if ( ( list . size ( ) ) > 1 ) { org . tests . model . basic . Customer customer = list . get ( 0 ) ; java . lang . String s = json . toJson ( customer ) ; int statusPos = s . indexOf ( "status" ) ; "<AssertPlaceHolder>" ; } } indexOf ( java . lang . Object ) { return list . indexOf ( o ) ; }
|
org . junit . Assert . assertEquals ( ( - 1 ) , statusPos )
|
getLinkKeys ( ) { final java . util . Map < java . lang . String , java . lang . String > linkMap = accountNavigationBean . getLinkMap ( ) ; final java . util . List < java . lang . String > linkKeys = accountNavigationBean . getLinkKeys ( ) ; for ( java . lang . String key : linkKeys ) { "<AssertPlaceHolder>" ; } } containsKey ( java . lang . Object ) { return true ; }
|
org . junit . Assert . assertTrue ( linkMap . containsKey ( key ) )
|
testGetTemplatesForResource ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity resource = f . createApplicationServer ( ) ; ch . puzzle . itc . mobiliar . business . template . entity . TemplateDescriptorEntity template = f . createTemplate ( "foo" , "foo" , targetPlatformId ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceContextEntity resourceContext = f . createResourceContext ( context , resource ) ; resourceContext . addTemplate ( template ) ; resource . setContexts ( new java . util . HashSet < ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceContextEntity > ( ) ) ; resource . getContexts ( ) . add ( resourceContext ) ; java . util . Set < ch . puzzle . itc . mobiliar . business . template . entity . TemplateDescriptorEntity > templates = utils . getTemplates ( resource , context , null , targetPlatformId , false ) ; "<AssertPlaceHolder>" ; } size ( ) { return keySet ( ) . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , templates . size ( ) )
|
testOWLAtomTypeMappingReader_Reader ( ) { org . openscience . cdk . config . atomtypes . OWLAtomTypeMappingReader reader = new org . openscience . cdk . config . atomtypes . OWLAtomTypeMappingReader ( new java . io . StringReader ( "" ) ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertNotNull ( reader )
|
testBlogPostListSerialization ( ) { com . ibm . sbt . services . client . base . datahandlers . EntityList < com . ibm . sbt . services . client . connections . blogs . BlogPost > posts = blogService . getAllPosts ( ) ; new com . ibm . sbt . services . client . SerializationUtil ( ) { @ com . ibm . sbt . services . client . connections . blogs . Override public void validateSerializable ( ) { com . ibm . sbt . services . client . base . datahandlers . EntityList < com . ibm . sbt . services . client . connections . blogs . BlogPost > allposts = null ; try { java . io . ObjectInputStream ois = new java . io . ObjectInputStream ( new java . io . FileInputStream ( serFile ) ) ; allposts = ( ( com . ibm . sbt . services . client . base . datahandlers . EntityList < com . ibm . sbt . services . client . connections . blogs . BlogPost > ) ( ois . readObject ( ) ) ) ; for ( java . util . Iterator < com . ibm . sbt . services . client . connections . blogs . BlogPost > iterator = allposts . iterator ( ) ; iterator . hasNext ( ) ; ) { com . ibm . sbt . services . client . connections . blogs . BlogPost localBlogPost = iterator . next ( ) ; } } catch ( java . lang . Exception e ) { } "<AssertPlaceHolder>" ; } } . isSerializable ( posts ) ; } size ( ) { return count ; }
|
org . junit . Assert . assertEquals ( true , ( ( allposts . size ( ) ) > 0 ) )
|
testDestroyWhileOpenFails ( ) { org . apache . hyracks . storage . common . IIndexAccessor accessor = createAccessor ( ) ; org . apache . hyracks . storage . common . IIndexCursor cursor = createCursor ( accessor ) ; java . util . List < org . apache . hyracks . storage . common . ISearchPredicate > predicates = createSearchPredicates ( ) ; open ( accessor , cursor , predicates . get ( 0 ) ) ; boolean expectedExceptionThrown = false ; try { cursor . destroy ( ) ; } catch ( java . lang . Exception e ) { expectedExceptionThrown = true ; } cursor . close ( ) ; cursor . destroy ( ) ; destroy ( accessor ) ; "<AssertPlaceHolder>" ; } destroy ( ) { java . io . File f = dir . toFile ( ) ; org . apache . commons . io . FileUtils . deleteDirectory ( f ) ; return true ; }
|
org . junit . Assert . assertTrue ( expectedExceptionThrown )
|
shouldNotBeValidIfAnyAreNotValid ( ) { java . util . List < javax . faces . component . UIComponent > components = createComponents ( 3 ) ; for ( int i = 0 ; i < ( components . size ( ) ) ; i ++ ) { javax . faces . component . UIComponent component = components . get ( i ) ; given ( ( ( javax . faces . component . EditableValueHolder ) ( component ) ) . isValid ( ) ) . willReturn ( ( i == ( ( components . size ( ) ) - 1 ) ) ) ; } components . add ( 2 , mock ( javax . faces . component . UIComponent . class ) ) ; given ( this . context . getMessages ( anyString ( ) ) ) . willReturn ( org . springframework . springfaces . template . ui . DefaultComponentInfoTest . EMPTY_MESSAGES ) ; org . springframework . springfaces . template . ui . ComponentInfo info = new org . springframework . springfaces . template . ui . DefaultComponentInfo ( this . context , components ) ; "<AssertPlaceHolder>" ; } isValid ( ) { for ( javax . faces . component . UIComponent component : this . components ) { if ( ! ( isValid ( component ) ) ) { return false ; } } return true ; }
|
org . junit . Assert . assertThat ( info . isValid ( ) , org . hamcrest . Matchers . is ( false ) )
|
testProblemSqlIssue265 ( ) { java . lang . String sqls = org . apache . commons . io . IOUtils . toString ( net . sf . jsqlparser . statement . select . SelectTest . class . getResourceAsStream ( "large-sql-with-issue-265.txt" ) ) ; net . sf . jsqlparser . statement . select . Statements stmts = net . sf . jsqlparser . statement . select . CCJSqlParserUtil . parseStatements ( sqls ) ; "<AssertPlaceHolder>" ; } getStatements ( ) { return statements ; }
|
org . junit . Assert . assertEquals ( 2 , stmts . getStatements ( ) . size ( ) )
|
testHasValueThatOnNullValue ( ) { "<AssertPlaceHolder>" ; } hasValueThat ( org . hamcrest . Matcher ) { return new com . annimon . stream . test . hamcrest . OptionalIntMatcher . HasValueMatcher ( matcher ) ; }
|
org . junit . Assert . assertThat ( null , com . annimon . stream . test . hamcrest . OptionalIntMatcher . hasValueThat ( org . hamcrest . CoreMatchers . is ( 0 ) ) )
|
bindShouldReportNoExtensionsWhenNoFactoriesAvailable ( ) { org . kaazing . gateway . transport . nio . internal . socket . TcpExtensionFactory factory = org . kaazing . gateway . transport . nio . internal . socket . TcpExtensionFactory . newInstance ( new org . kaazing . gateway . transport . nio . internal . TcpExtensionFactoryTest . TestClassLoader ( ) ) ; java . util . List < org . kaazing . gateway . transport . nio . TcpExtension > extensions = factory . bind ( address ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( simpleProperties . isEmpty ( ) ) && ( nestedProperties . isEmpty ( ) ) ; }
|
org . junit . Assert . assertTrue ( extensions . isEmpty ( ) )
|
invertTest ( ) { int [ ] values = new int [ ] { 3 , 1 , 0 , 2 } ; int [ ] invert = new int [ ] { 2 , 1 , 3 , 0 } ; org . openscience . cdk . group . Permutation p = new org . openscience . cdk . group . Permutation ( values ) ; org . openscience . cdk . group . Permutation invP = new org . openscience . cdk . group . Permutation ( invert ) ; "<AssertPlaceHolder>" ; } invert ( ) { switch ( this ) { case CLOCKWISE : return org . openscience . cdk . interfaces . ITetrahedralChirality . Stereo . ANTI_CLOCKWISE ; case ANTI_CLOCKWISE : return org . openscience . cdk . interfaces . ITetrahedralChirality . Stereo . CLOCKWISE ; } return this ; }
|
org . junit . Assert . assertEquals ( invP , p . invert ( ) )
|
testTrueSvcConfigTransportHeaderFalse1 ( ) { boolean success = false ; try { com . ebay . soaframework . spf . impl . internal . config . ServiceConfigManager . getInstance ( ) . setConfigTestCase ( "configValidatePayloadTrue" ) ; com . ebay . marketplace . advertising . v1 . services . GetMessagesForTheDayRequest param0 = new com . ebay . marketplace . advertising . v1 . services . GetMessagesForTheDayRequest ( ) ; param0 . setLanguage ( "us-ENG" ) ; param0 . setMessageType ( null ) ; param0 . setSiteId ( "0" ) ; com . ebay . marketplace . services . advertisinguniqueidservicev2 . advertisinguniqueidservicev2 . gen . SharedAdvertisingUniqueIDServiceV2Consumer consumer = new com . ebay . marketplace . services . advertisinguniqueidservicev2 . advertisinguniqueidservicev2 . gen . SharedAdvertisingUniqueIDServiceV2Consumer ( "AdvertisingUniqueIDServiceV2Consumer" , "local" ) ; consumer . getService ( ) . getInvokerOptions ( ) . setRequestBinding ( "XML" ) ; consumer . getService ( ) . getInvokerOptions ( ) . setResponseBinding ( "XML" ) ; consumer . getService ( ) . getRequestContext ( ) . setTransportHeader ( SOAHeaders . REQ_PAYLOAD_VALIDATION_LEVEL , "False" ) ; com . ebay . marketplace . advertising . v1 . services . GetMessagesForTheDayResponse resp = consumer . testSchemaValidationWithUPA ( param0 ) ; if ( resp . getMessageList ( ) . get ( 0 ) . getMessage ( ) . contains ( "schemaValidation" ) ) success = true ; } catch ( java . lang . Exception exception ) { success = false ; } "<AssertPlaceHolder>" ; try { com . ebay . soaframework . spf . impl . internal . config . ServiceConfigManager . getInstance ( ) . setConfigTestCase ( "config" ) ; } catch ( com . ebay . soaframework . common . exceptions . ServiceCreationException e ) { } catch ( com . ebay . soaframework . common . exceptions . ServiceException e ) { } } getMessage ( ) { return message ; }
|
org . junit . Assert . assertTrue ( success )
|
testDeleteConfValue_3 ( ) { java . lang . String propertyName = "" ; java . lang . String file = "abcde.xml" ; boolean result = xmlManipulator . deleteConfValue ( file , propertyName ) ; org . apache . commons . io . FileUtils . deleteQuietly ( new java . io . File ( file ) ) ; "<AssertPlaceHolder>" ; } deleteConfValue ( java . lang . String , java . lang . String ) { try { javax . xml . bind . JAXBContext jaxbContext = javax . xml . bind . JAXBContext . newInstance ( "com.impetus.ankush.agent.action.impl" ) ; javax . xml . bind . Unmarshaller unmarshaller = jaxbContext . createUnmarshaller ( ) ; java . io . File confFile = new java . io . File ( file ) ; com . impetus . ankush . agent . action . impl . Configuration configuration = ( ( com . impetus . ankush . agent . action . impl . Configuration ) ( unmarshaller . unmarshal ( confFile ) ) ) ; boolean status = false ; java . util . List < com . impetus . ankush . agent . action . impl . Property > propertyList = configuration . getProperty ( ) ; for ( java . util . Iterator < com . impetus . ankush . agent . action . impl . Property > iterator = propertyList . iterator ( ) ; iterator . hasNext ( ) ; ) { com . impetus . ankush . agent . action . impl . Property property = iterator . next ( ) ; if ( property . getName ( ) . equals ( propertyName ) ) { status = configuration . getProperty ( ) . remove ( property ) ; break ; } } if ( status ) { javax . xml . bind . Marshaller marshaller = jaxbContext . createMarshaller ( ) ; marshaller . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , true ) ; marshaller . marshal ( configuration , confFile ) ; return true ; } else { return false ; } } catch ( javax . xml . bind . JAXBException e ) { e . printStackTrace ( ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; } return false ; }
|
org . junit . Assert . assertEquals ( false , result )
|
testRoundTrip ( ) { com . hp . hpl . jena . rdf . model . Literal l = com . hp . hpl . jena . rdf . model . ResourceFactory . createTypedLiteral ( "1999-05-31T02:09:32Z" , XSDDatatype . XSDdateTime ) ; java . lang . String date = com . epimorphics . jsonrdf . RDFUtil . formatDateTime ( l , false ) ; com . hp . hpl . jena . rdf . model . Literal lret = com . epimorphics . jsonrdf . RDFUtil . parseDateTime ( date , null ) ; "<AssertPlaceHolder>" ; } formatDateTime ( com . epimorphics . jsonrdf . Literal , boolean ) { java . lang . Object val = com . epimorphics . jsonrdf . RDFUtil . getTemporalValue ( l ) ; if ( val instanceof com . hp . hpl . jena . datatypes . xsd . XSDDateTime ) { boolean isDate = l . getDatatype ( ) . equals ( XSDDatatype . XSDdate ) ; com . epimorphics . jsonrdf . Date date = ( ( com . hp . hpl . jena . datatypes . xsd . XSDDateTime ) ( val ) ) . asCalendar ( ) . getTime ( ) ; if ( jsonUsesISOdate ) { return com . epimorphics . jsonrdf . RDFUtil . dateFormatISO ( com . epimorphics . jsonrdf . RDFUtil . hasTimeZone ( l . getLexicalForm ( ) ) , isDate ) . format ( date ) ; } else { return com . epimorphics . jsonrdf . RDFUtil . dateFormat ( com . epimorphics . jsonrdf . RDFUtil . hasTimeZone ( l . getLexicalForm ( ) ) , isDate ) . format ( date ) ; } } else { return null ; } }
|
org . junit . Assert . assertEquals ( l , lret )
|
assertNextForSkipAll ( ) { org . apache . shardingsphere . core . parse . old . parser . context . limit . Limit limit = new org . apache . shardingsphere . core . parse . old . parser . context . limit . Limit ( ) ; limit . setOffset ( new org . apache . shardingsphere . core . parse . old . parser . context . limit . LimitValue ( Integer . MAX_VALUE , ( - 1 ) , true ) ) ; routeResult . setLimit ( limit ) ; mergeEngine = new org . apache . shardingsphere . core . merge . dql . DQLMergeEngine ( org . apache . shardingsphere . core . constant . DatabaseType . SQLServer , routeResult , queryResults ) ; org . apache . shardingsphere . core . merge . MergedResult actual = mergeEngine . merge ( ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ( closed ) || ( ! ( generatedKeys . hasNext ( ) ) ) ) { currentGeneratedKey = null ; return false ; } currentGeneratedKey = generatedKeys . next ( ) ; return true ; }
|
org . junit . Assert . assertFalse ( actual . next ( ) )
|
nietValideGeefDetailsPersoonHistorievormOnbekend ( ) { final nl . bzk . brp . model . internbericht . ProtocolleringOpdracht protocolleringOpdracht = maakProtocolleringOpdracht ( SoortDienst . GEEF_DETAILS_PERSOON , null , datumAanvangMaterielePeriode , datumEindeMaterielePeriode , datumTijdAanvangFormelePeriode , datumTijdEindeFormelePeriode , Historievorm . DUMMY ) ; "<AssertPlaceHolder>" ; } isValide ( ) { boolean resultaat ; if ( ( levering ) == null ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "Levering<sp>dient<sp>gevuld<sp>te<sp>zijn." ) ; } else if ( ( ( personen ) == null ) || ( personen . isEmpty ( ) ) ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "Personen<sp>dient<sp>gevuld<sp>te<sp>zijn." ) ; } else if ( ( levering . getToegangLeveringsautorisatieId ( ) ) == null ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "ToegangAbonnementId<sp>dient<sp>gevuld<sp>te<sp>zijn." ) ; } else if ( ( levering . getDienstId ( ) ) == null ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "DienstId<sp>dient<sp>gevuld<sp>te<sp>zijn." ) ; } else if ( ( ( levering . getDatumTijdKlaarzettenLevering ( ) ) == null ) || ( levering . getDatumTijdKlaarzettenLevering ( ) . heeftGeenWaarde ( ) ) ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "DatumTijdKlaarzettenLevering<sp>dient<sp>gevuld<sp>te<sp>zijn." ) ; } else if ( ( getSoortDienst ( ) ) == null ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "Soort<sp>dienst<sp>gevuld<sp>te<sp>zijn." ) ; } else if ( ( nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . SOORTDIENSTEN_MET_SOORT_SYNCHRONISATIE_VERPLICHT . contains ( getSoortDienst ( ) ) ) && ( ( ( levering . getSoortSynchronisatie ( ) ) == null ) || ( levering . getSoortSynchronisatie ( ) . heeftGeenWaarde ( ) ) ) ) { resultaat = false ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( "ToegangAbonnementId<sp>dient<sp>gevuld<sp>te<sp>zijn." 0 , getSoortDienst ( ) ) ; } else { switch ( soortDienst ) { case ATTENDERING : case MUTATIELEVERING_OP_BASIS_VAN_DOELBINDING : resultaat = isValideAttenderingOfMutatieLeveringDoelbinding ( ) ; break ; case GEEF_DETAILS_PERSOON : case GEEF_DETAILS_PERSOON_BULK : resultaat = isValideGeefDetailsPersoon ( getHistorievorm ( ) ) ; break ; case MUTATIELEVERING_OP_BASIS_VAN_AFNEMERINDICATIE : case PLAATSEN_AFNEMERINDICATIE : case VERWIJDEREN_AFNEMERINDICATIE : resultaat = isValideAfnemerindicatie ( ) ; break ; case SYNCHRONISATIE_PERSOON : resultaat = isValideSynchronisatiePersoon ( ) ; break ; case GEEF_MEDEBEWONERS_VAN_PERSOON : resultaat = isValideGeefMedebewonersVanPersoon ( ) ; break ; default : final java . lang . String foutmelding = "Voor<sp>deze<sp>catalogusoptie<sp>is<sp>geen<sp>protocollering<sp>validatie<sp>ingesteld:<sp>" + ( soortDienst ) ; nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . error ( foutmelding ) ; throw new java . lang . IllegalArgumentException ( foutmelding ) ; } if ( ! resultaat ) { nl . bzk . brp . model . internbericht . ProtocolleringOpdracht . LOGGER . debug ( ( "De<sp>protocollering<sp>is<sp>niet<sp>valide<sp>voor<sp>de<sp>catalogusoptie:<sp>{},<sp>" + ( ( "datum<sp>materieel<sp>selectie:<sp>{},<sp>datum<sp>aanvang<sp>materiele<sp>periode:<sp>{},<sp>" + "datum<sp>einde<sp>materiele<sp>periode:<sp>{},<sp>datum<sp>tijd<sp>aanv<sp>form<sp>periode:<sp>{},<sp>" ) + "ToegangAbonnementId<sp>dient<sp>gevuld<sp>te<sp>zijn." 1 ) ) , soortDienst , levering . getDatumMaterieelSelectie ( ) , levering . getDatumAanvangMaterielePeriodeResultaat ( ) , levering . getDatumEindeMaterielePeriodeResultaat ( ) , levering . getDatumTijdAanvangFormelePeriodeResultaat ( ) , levering . getDatumTijdEindeFormelePeriodeResultaat ( ) , historievorm ) ; } } return resultaat ; }
|
org . junit . Assert . assertFalse ( protocolleringOpdracht . isValide ( ) )
|
testMetricNameWithMatchingSingleChar ( ) { java . lang . String glob = "foo?" ; java . lang . String expectedRegex = "foo." ; com . rackspacecloud . blueflood . utils . GlobPattern pattern = new com . rackspacecloud . blueflood . utils . GlobPattern ( glob ) ; "<AssertPlaceHolder>" ; } compiled ( ) { return compiled ; }
|
org . junit . Assert . assertEquals ( expectedRegex , pattern . compiled ( ) . toString ( ) )
|
tuple_4 ( ) { org . apache . jena . atlas . lib . tuple . Tuple < java . lang . Integer > tuple = org . apache . jena . atlas . lib . tuple . TupleFactory . create4 ( 9 , 8 , 7 , 6 ) ; "<AssertPlaceHolder>" ; org . apache . jena . atlas . lib . tuple . TestTuple . check ( tuple ) ; } len ( ) { return 0 ; }
|
org . junit . Assert . assertEquals ( 4 , tuple . len ( ) )
|
testShouldNotCreateDirectoryForNonNativeTableInDumpDirectory ( ) { java . lang . String createTableQuery = "CREATE<sp>TABLE<sp>custom_serdes(<sp>serde_id<sp>bigint<sp>COMMENT<sp>'from<sp>deserializer',<sp>name<sp>string<sp>" + ( ( ( ( ( ( "CREATE<sp>TABLE<sp>custom_serdes(<sp>serde_id<sp>bigint<sp>COMMENT<sp>'from<sp>deserializer',<sp>name<sp>string<sp>" 0 + "ROW<sp>FORMAT<sp>SERDE<sp>'org.apache.hive.storage.jdbc.JdbcSerDe'<sp>" ) + "STORED<sp>BY<sp>'org.apache.hive.storage.jdbc.JdbcStorageHandler'<sp>" ) + "CREATE<sp>TABLE<sp>custom_serdes(<sp>serde_id<sp>bigint<sp>COMMENT<sp>'from<sp>deserializer',<sp>name<sp>string<sp>" 2 ) + "TBLPROPERTIES<sp>(<sp>" ) + "'hive.sql.database.type'='METASTORE',<sp>" ) + "\'hive.sql.query\'=\'SELECT<sp>\"SERDE_ID\",<sp>\"NAME\",<sp>\"SLIB\"<sp>FROM<sp>\"SERDES\"\')" ) ; org . apache . hadoop . hive . ql . parse . WarehouseInstance . Tuple bootstrapTuple = primary . run ( ( "use<sp>" + ( primaryDbName ) ) ) . run ( createTableQuery ) . dump ( primaryDbName , null ) ; org . apache . hadoop . fs . Path cSerdesTableDumpLocation = new org . apache . hadoop . fs . Path ( new org . apache . hadoop . fs . Path ( bootstrapTuple . dumpLocation , primaryDbName ) , "CREATE<sp>TABLE<sp>custom_serdes(<sp>serde_id<sp>bigint<sp>COMMENT<sp>'from<sp>deserializer',<sp>name<sp>string<sp>" 1 ) ; org . apache . hadoop . fs . FileSystem fs = cSerdesTableDumpLocation . getFileSystem ( primary . hiveConf ) ; "<AssertPlaceHolder>" ; } exists ( java . lang . String ) { alias = alias . toLowerCase ( ) ; if ( ( ( aliasToTabs . get ( alias ) ) != null ) || ( ( aliasToSubq . get ( alias ) ) != null ) ) { return true ; } return false ; }
|
org . junit . Assert . assertFalse ( fs . exists ( cSerdesTableDumpLocation ) )
|
testBuildWithDisabledStatusCOnstraints ( ) { unit . setActive ( false ) ; org . lnu . is . domain . admin . unit . AdminUnit context = new org . lnu . is . domain . admin . unit . AdminUnit ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>AdminUnit<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . lnu . is . pagination . MultiplePagedSearch < org . lnu . is . domain . admin . unit . AdminUnit > 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 )
|
consumerShouldSeeOwnEntitlements ( ) { consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; consumerResource . bind ( consumer . getUuid ( ) , pool . getId ( ) . toString ( ) , null , 1 , null , null , false , null , null ) ; setupPrincipal ( new org . candlepin . auth . ConsumerPrincipal ( consumer , owner ) ) ; securityInterceptor . enable ( ) ; "<AssertPlaceHolder>" ; } listEntitlements ( java . lang . String , java . lang . String , java . lang . Boolean , java . lang . String , java . util . List , org . candlepin . common . paging . PageRequest ) { org . candlepin . model . Consumer consumer = consumerCurator . verifyAndLookupConsumer ( consumerUuid ) ; if ( regen ) { revokeOnGuestMigration ( consumer ) ; } org . candlepin . model . EntitlementFilterBuilder filters = org . candlepin . resource . util . EntitlementFinderUtil . createFilter ( matches , attrFilters ) ; org . candlepin . common . paging . Page < java . util . List < org . candlepin . model . Entitlement > > entitlementsPage = entitlementCurator . listByConsumer ( consumer , productId , filters , pageRequest ) ; org . jboss . resteasy . spi . ResteasyProviderFactory . pushContext ( org . candlepin . common . paging . Page . class , entitlementsPage ) ; if ( regen ) { poolManager . regenerateDirtyEntitlements ( entitlementsPage . getPageData ( ) ) ; } else { org . candlepin . resource . ConsumerResource . log . debug ( "Skipping<sp>certificate<sp>regeneration." ) ; } if ( ( entitlementsPage . getPageData ( ) ) != null ) { for ( org . candlepin . model . Entitlement ent : entitlementsPage . getPageData ( ) ) { addCalculatedAttributes ( ent ) ; } } java . util . List < org . candlepin . dto . api . v1 . EntitlementDTO > entitlementDTOs = new java . util . ArrayList ( ) ; for ( org . candlepin . model . Entitlement entitlement : entitlementsPage . getPageData ( ) ) { entitlementDTOs . add ( this . translator . translate ( entitlement , org . candlepin . dto . api . v1 . EntitlementDTO . class ) ) ; } return entitlementDTOs ; }
|
org . junit . Assert . assertEquals ( 3 , consumerResource . listEntitlements ( consumer . getUuid ( ) , null , true , "" , new java . util . ArrayList ( ) , null ) . size ( ) )
|
testContextDestroyCalled ( javax . enterprise . inject . Instance ) { org . jboss . weld . tests . instance . destroy . normal . CustomScopedComponent component = instance . get ( ) ; org . jboss . weld . tests . instance . destroy . normal . CustomAlterableContext . reset ( ) ; instance . destroy ( component ) ; "<AssertPlaceHolder>" ; } isDestroyCalled ( ) { return org . jboss . weld . tests . instance . destroy . normal . CustomAlterableContext . destroyCalled ; }
|
org . junit . Assert . assertTrue ( org . jboss . weld . tests . instance . destroy . normal . CustomAlterableContext . isDestroyCalled ( ) )
|
handleMessage ( ) { org . talend . esb . security . saml . STSRESTOutInterceptor i = new org . talend . esb . security . saml . STSRESTOutInterceptor ( ) ; org . apache . cxf . message . Message message = createMock ( org . apache . cxf . message . Message . class ) ; org . apache . cxf . ws . security . trust . STSClient stsClient = createMock ( org . apache . cxf . ws . security . trust . STSClient . class ) ; stsClient . requestSecurityToken ( org . easymock . EasyMock . < java . lang . String > anyObject ( ) ) ; org . easymock . EasyMock . expectLastCall ( ) . andReturn ( null ) . anyTimes ( ) ; stsClient . setActAs ( org . easymock . EasyMock . < java . lang . String > anyObject ( ) ) ; org . easymock . EasyMock . expectLastCall ( ) . atLeastOnce ( ) ; stsClient . setOnBehalfOf ( org . easymock . EasyMock . < java . lang . Object > anyObject ( ) ) ; org . easymock . EasyMock . expectLastCall ( ) . atLeastOnce ( ) ; stsClient . setMessage ( org . easymock . EasyMock . < org . apache . cxf . message . Message > anyObject ( ) ) ; org . easymock . EasyMock . expectLastCall ( ) . atLeastOnce ( ) ; replay ( stsClient ) ; i . setStsClient ( stsClient ) ; "<AssertPlaceHolder>" ; message . get ( Message . REQUESTOR_ROLE ) ; expectLastCall ( ) . andReturn ( true ) . anyTimes ( ) ; message . getContextualProperty ( SecurityConstants . STS_TOKEN_ACT_AS ) ; expectLastCall ( ) . andReturn ( new java . lang . Object ( ) ) . anyTimes ( ) ; message . getContextualProperty ( SecurityConstants . STS_APPLIES_TO ) ; expectLastCall ( ) . andReturn ( new java . lang . Object ( ) ) . anyTimes ( ) ; message . getContextualProperty ( SecurityConstants . STS_TOKEN_ON_BEHALF_OF ) ; expectLastCall ( ) . andReturn ( new java . lang . Object ( ) ) . anyTimes ( ) ; replay ( message ) ; i . handleMessage ( message ) ; verify ( message ) ; } getStsClient ( ) { return stsClient ; }
|
org . junit . Assert . assertSame ( stsClient , i . getStsClient ( ) )
|
testNN_AtmCorrGetNumInputNode ( ) { int numNodesInput = - 1 ; int numNodesOutput = 1 ; int numInputNode = org . esa . s3tbx . fub . wew . util . NN_TSM . compute ( in , numNodesInput , out , numNodesOutput , width , mask , 0 , a ) ; "<AssertPlaceHolder>" ; } compute ( float [ ] [ ] , int , float [ ] [ ] , int , int , int [ ] , int , float [ ] ) { final int [ ] rcheck ; final int nodes_input = 18 ; final int nodes_output = 1 ; final int nodes_input_bias = 1 ; final int nodes_input_pca = 1 ; final int nodes_hidden = 80 ; final int nodes_hidden_bias = 1 ; final double nodes_hidden_temperature = 1.0 ; final double t_input = nodes_hidden_temperature / ( ( double ) ( nodes_input ) ) ; final double t_hidden = nodes_hidden_temperature / ( ( double ) ( nodes_hidden ) ) ; final double [ ] vt ; final double [ ] vt1 ; if ( getNumNodesInput <= 0 ) { return nodes_input ; } if ( getNumNodesOutput <= 0 ) { return nodes_output ; } if ( getNumNodesInput != nodes_input ) { return - 1 ; } if ( getNumNodesOutput != nodes_output ) { return - 2 ; } vt = new double [ nodes_input + nodes_input_bias ] ; vt1 = new double [ nodes_hidden + nodes_hidden_bias ] ; rcheck = new int [ width ] ; for ( int x = 0 ; x < width ; x ++ ) { rcheck [ x ] = 0 ; if ( ( a [ x ] ) < 0.0F ) { rcheck [ x ] = 1 ; } a [ x ] = 1.0F ; } for ( int x = 0 ; x < width ; x ++ ) { if ( ( mask [ x ] ) == 0 ) { if ( ( rcheck [ x ] ) != 0 ) { for ( int i = 0 ; ( i < nodes_input ) && ( ( a [ x ] ) > 0.0F ) ; i ++ ) { if ( ( ( in [ i ] [ x ] ) < ( ( float ) ( NN_General . NODES_INPUT_SCALE_LIMITS [ i ] [ 0 ] ) ) ) || ( ( in [ i ] [ x ] ) > ( ( float ) ( NN_General . NODES_INPUT_SCALE_LIMITS [ i ] [ 1 ] ) ) ) ) { a [ x ] -= 3.0F ; } } if ( ( a [ x ] ) < 0.0F ) { mask [ x ] |= errmask ; } } for ( int i = 0 ; i < nodes_input ; i ++ ) { if ( ( NN_General . NODES_INPUT_SCALE_FLAG [ i ] ) == ( - 1 ) ) { in [ i ] [ x ] = ( ( float ) ( java . lang . Math . log ( ( ( double ) ( in [ i ] [ x ] ) ) ) ) ) ; } if ( ( NN_General . NODES_INPUT_SCALE_FLAG [ i ] ) == ( - 2 ) ) { in [ i ] [ x ] = ( ( float ) ( java . lang . Math . exp ( ( ( double ) ( in [ i ] [ x ] ) ) ) ) ) ; } } for ( int i = 0 ; i < nodes_input ; i ++ ) { in [ i ] [ x ] = ( ( float ) ( NN_General . NODES_INPUT_SCALE_OFF [ i ] ) ) + ( ( ( in [ i ] [ x ] ) - ( ( float ) ( org . esa . s3tbx . fub . wew . util . NN_TSM . nodes_input_scale_run39 [ i ] [ 0 ] ) ) ) / ( ( float ) ( org . esa . s3tbx . fub . wew . util . NN_TSM . nodes_input_scale_run39 [ i ] [ 1 ] ) ) ) ; } if ( nodes_input_pca != 0 ) { for ( int i = 0 ; i < nodes_input ; i ++ ) { vt [ i ] = ( ( double ) ( in [ i ] [ x ] ) ) ; if ( ( NN_General . NODES_INPUT_SCALE_FLAG [ i ] ) == 1 ) { vt [ i ] = 0.0 ; for ( int j = 0 ; j < nodes_input ; j ++ ) { if ( ( NN_General . NODES_INPUT_SCALE_FLAG [ j ] ) == 1 ) { vt [ i ] += ( ( double ) ( in [ j ] [ x ] ) ) * ( org . esa . s3tbx . fub . wew . util . NN_TSM . nodes_input_pca_evec_run39 [ j ] [ i ] ) ; } } } } for ( int i = 0 ; i < nodes_input ; i ++ ) { in [ i ] [ x ] = ( ( float ) ( vt [ i ] ) ) ; } } for ( int i = 0 ; i < nodes_input ; i ++ ) { vt [ i ] = ( ( double ) ( in [ i ] [ x ] ) ) ; } for ( int i = nodes_input ; i < ( nodes_input + nodes_input_bias ) ; i ++ ) { vt [ i ] = 1.0 ; } for ( int i = 0 ; i < nodes_hidden ; i ++ ) { vt1 [ i ] = 0.0 ; for ( int j = 0 ; j < ( nodes_input + nodes_input_bias ) ; j ++ ) { vt1 [ i ] += ( vt [ j ] ) * ( org . esa . s3tbx . fub . wew
|
org . junit . Assert . assertEquals ( 18 , numInputNode )
|
testSetOutput ( ) { java . lang . String outputMsg = "A<sp>test<sp>output<sp>message" ; fixture . setOutput ( outputMsg ) ; if ( ( fixture . getOutput ( ) ) == null ) { org . junit . Assert . fail ( ) ; } else { "<AssertPlaceHolder>" ; } } getOutput ( ) { return results . getOutput ( ) ; }
|
org . junit . Assert . assertEquals ( outputMsg , fixture . getOutput ( ) )
|
equals_withUnknownType_returnsTrue ( ) { org . openengsb . core . edbi . jdbc . sql . DataType varchar = new org . openengsb . core . edbi . jdbc . sql . DataType ( "VARCHAR" ) ; org . openengsb . core . edbi . jdbc . sql . DataType other = new org . openengsb . core . edbi . jdbc . sql . DataType ( "VARCHAR" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( obj instanceof org . openengsb . domain . userprojects . model . Role ) ) { return false ; } final org . openengsb . domain . userprojects . model . Role other = ( ( org . openengsb . domain . userprojects . model . Role ) ( obj ) ) ; return ( ( java . util . Objects . equals ( name , other . name ) ) && ( java . util . Objects . equals ( roles , other . roles ) ) ) && ( java . util . Objects . equals ( permissions , other . permissions ) ) ; }
|
org . junit . Assert . assertTrue ( varchar . equals ( other ) )
|
shouldReturnItselfIfRequestedToGetACellWithAnAbsentOptionalName ( ) { com . facebook . buck . core . cell . Cell cell = new com . facebook . buck . core . cell . TestCellBuilder ( ) . build ( ) ; com . facebook . buck . core . model . BuildTarget target = com . facebook . buck . core . model . BuildTargetFactory . newInstance ( cell . getFilesystem ( ) . getRootPath ( ) , "//does/not:matter" ) ; com . facebook . buck . core . cell . Cell owner = cell . getCell ( target ) ; "<AssertPlaceHolder>" ; } getCell ( com . facebook . buck . core . model . BuildTarget ) { return getCell ( target . getUnconfiguredBuildTargetView ( ) ) ; }
|
org . junit . Assert . assertSame ( cell , owner )
|
creatingGroupsFromSourcePathsRemovesLongestCommonPrefix ( ) { com . google . common . collect . ImmutableList < com . facebook . buck . core . sourcepath . SourcePath > input = com . google . common . collect . ImmutableList . of ( com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Foo/File1.h" ) , com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Foo/File2.h" ) , com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Bar/File1.h" ) ) ; com . google . common . collect . ImmutableList < com . facebook . buck . apple . GroupedSource > expected = com . google . common . collect . ImmutableList . of ( com . facebook . buck . apple . GroupedSource . ofSourceGroup ( "Bar" , java . nio . file . Paths . get ( "Lib/Bar" ) , com . google . common . collect . ImmutableList . of ( com . facebook . buck . apple . GroupedSource . ofPrivateHeader ( com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Bar/File1.h" ) ) ) ) , com . facebook . buck . apple . GroupedSource . ofSourceGroup ( "Foo" , java . nio . file . Paths . get ( "Lib/Foo" ) , com . google . common . collect . ImmutableList . of ( com . facebook . buck . apple . GroupedSource . ofPrivateHeader ( com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Foo/File1.h" ) ) , com . facebook . buck . apple . GroupedSource . ofPrivateHeader ( com . facebook . buck . core . sourcepath . FakeSourcePath . of ( "Lib/Foo/File2.h" ) ) ) ) ) ; com . facebook . buck . core . sourcepath . resolver . SourcePathResolver resolver = com . facebook . buck . core . sourcepath . resolver . impl . DefaultSourcePathResolver . from ( new com . facebook . buck . core . rules . SourcePathRuleFinder ( new com . facebook . buck . core . rules . resolver . impl . TestActionGraphBuilder ( ) ) ) ; com . google . common . collect . ImmutableList < com . facebook . buck . apple . GroupedSource > actual = com . facebook . buck . apple . RuleUtils . createGroupsFromSourcePaths ( resolver :: getRelativePath , com . google . common . collect . ImmutableList . of ( ) , com . google . common . collect . ImmutableSortedSet . of ( ) , com . google . common . collect . ImmutableSortedSet . of ( ) , com . google . common . collect . ImmutableList . of ( ) , input ) ; "<AssertPlaceHolder>" ; } of ( ) { return new com . facebook . buck . rules . coercer . VersionMatchedCollection ( com . google . common . collect . ImmutableList . of ( ) ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
getSchemaTypeInfo ( ) { conf . set ( CorcInputFormat . SCHEMA_TYPE_INFO , "struct<a:string,b:string>" ) ; org . apache . hadoop . hive . serde2 . typeinfo . StructTypeInfo typeInfo = new com . hotels . corc . StructTypeInfoBuilder ( ) . add ( "a" , TypeInfoFactory . stringTypeInfo ) . add ( "b" , TypeInfoFactory . stringTypeInfo ) . build ( ) ; "<AssertPlaceHolder>" ; } getSchemaTypeInfo ( org . apache . hadoop . conf . Configuration ) { java . lang . String schemaTypeInfo = conf . get ( com . hotels . corc . mapred . CorcInputFormat . SCHEMA_TYPE_INFO ) ; if ( ( schemaTypeInfo != null ) && ( ! ( schemaTypeInfo . isEmpty ( ) ) ) ) { com . hotels . corc . mapred . CorcInputFormat . LOG . debug ( "Got<sp>schema<sp>typeInfo<sp>from<sp>conf:<sp>{}" , schemaTypeInfo ) ; return ( ( org . apache . hadoop . hive . serde2 . typeinfo . StructTypeInfo ) ( org . apache . hadoop . hive . serde2 . typeinfo . TypeInfoUtils . getTypeInfoFromTypeString ( conf . get ( com . hotels . corc . mapred . CorcInputFormat . SCHEMA_TYPE_INFO ) ) ) ) ; } return null ; }
|
org . junit . Assert . assertThat ( com . hotels . corc . mapred . CorcInputFormat . getSchemaTypeInfo ( conf ) , org . hamcrest . CoreMatchers . is ( typeInfo ) )
|
NewScmsRestrictionTests ( ) { byte expectedConfigurationData = 2 ; com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . ScmsRestriction scmsRestriction = new com . microsoft . windowsazure . services . media . implementation . templates . playreadylicense . ScmsRestriction ( expectedConfigurationData ) ; byte resultConfigurationData = scmsRestriction . getConfigurationData ( ) ; "<AssertPlaceHolder>" ; } getConfigurationData ( ) { return configurationData ; }
|
org . junit . Assert . assertEquals ( expectedConfigurationData , resultConfigurationData )
|
getIntShouldWorkLittleEndianIndex0 ( ) { java . nio . ByteBuffer buf = java . nio . ByteBuffer . allocate ( 4 ) ; buf . order ( org . kaazing . gateway . util . LITTLE_ENDIAN ) ; buf . putInt ( 12345678 ) ; buf . flip ( ) ; int result = org . kaazing . gateway . util . Utils . getInt ( buf , 0 ) ; int expected = buf . getInt ( ) ; "<AssertPlaceHolder>" ; } getInt ( ) { return buf . getInt ( ) ; }
|
org . junit . Assert . assertEquals ( expected , result )
|
shouldCountDistinctValues ( ) { org . neo4j . kernel . api . impl . schema . writer . LuceneIndexWriter writer = index . getIndexWriter ( ) ; int expectedCount = 10000 ; for ( int i = 0 ; i < expectedCount ; i ++ ) { org . neo4j . values . storable . Value value = random . nextValue ( ) ; writer . addDocument ( org . neo4j . kernel . api . impl . schema . LuceneDocumentStructure . documentRepresentingProperties ( i , value ) ) ; } index . maybeRefreshBlocking ( ) ; org . neo4j . kernel . impl . index . schema . GatheringNodeValueClient client = new org . neo4j . kernel . impl . index . schema . GatheringNodeValueClient ( ) ; org . neo4j . storageengine . api . NodePropertyAccessor propertyAccessor = mock ( org . neo4j . storageengine . api . NodePropertyAccessor . class ) ; try ( org . neo4j . storageengine . api . schema . IndexReader reader = index . getIndexReader ( ) ) { reader . distinctValues ( client , propertyAccessor , true ) ; int actualCount = 0 ; while ( client . progressor . next ( ) ) { actualCount += client . reference ; } "<AssertPlaceHolder>" ; } verifyNoMoreInteractions ( propertyAccessor ) ; } next ( ) { return entries . next ( ) ; }
|
org . junit . Assert . assertEquals ( expectedCount , actualCount )
|
clusterKnownConfigurationErrorTest ( ) { initData ( ) ; when ( mockScalingRuleService . getRule ( 1 ) ) . thenReturn ( rule ) ; when ( mockClusterService . getCluster ( 1 ) ) . thenReturn ( cluster ) ; when ( mockHealthMonitoringService . getClusterLoad ( machine , PeriodicAutoscalerItemProcessor . METRIC_NAMES , PeriodicAutoscalerItemProcessor . METRIC_TYPE_LOAD , PeriodicAutoscalerItemProcessor . METRIC_PERIOD ) ) . thenReturn ( ( ( float ) ( 1 ) ) ) ; when ( mockScalingRuleService . applyScalingRule ( 1 , 1 , rule ) ) . thenReturn ( ScalingStatus . ERROR_MACHINE_CONFIGURATION_FAILURE ) ; org . openinfinity . cloud . autoscaler . periodicautoscaler . ClusterProcessingState clusterProcessingState = new org . openinfinity . cloud . autoscaler . periodicautoscaler . ClusterProcessingState ( 0 , false , true , false , false , false ) ; itemProcessor . getProcessingStatusMap ( ) . put ( 1 , clusterProcessingState ) ; org . openinfinity . cloud . autoscaler . util . ScalingData sd = new org . openinfinity . cloud . autoscaler . util . ScalingData ( 1 , cluster , rule ) ; org . openinfinity . cloud . autoscaler . test . Job job = itemProcessor . process ( machine ) ; "<AssertPlaceHolder>" ; verify ( notifier , never ( ) ) . notify ( sd , Notifier . NotificationType . MACHINE_CONFIGURATION_ERROR ) ; }
|
org . junit . Assert . assertNull ( job )
|
testGetHazelcastVersionFromJarOrNull_whenJarContainsNoVersion_thenReturnNull ( ) { java . io . File file = new java . io . File ( ( ( com . hazelcast . simulator . utils . BuildInfoUtilsTest . RESOURCE_PATH ) + "build-info-no-version.jar" ) ) . getAbsoluteFile ( ) ; "<AssertPlaceHolder>" ; } getHazelcastVersionFromJarOrNull ( java . lang . String ) { try { java . util . List < java . io . File > jarFiles = com . hazelcast . simulator . utils . FileUtils . getFilesFromClassPath ( classPath ) ; for ( java . io . File jarFile : jarFiles ) { java . lang . String version = com . hazelcast . simulator . utils . BuildInfoUtils . getVersion ( jarFile ) ; if ( version != null ) { return version ; } } } catch ( com . hazelcast . simulator . utils . UncheckedIOException ignored ) { com . hazelcast . simulator . utils . EmptyStatement . ignore ( ignored ) ; } return null ; }
|
org . junit . Assert . assertNull ( com . hazelcast . simulator . utils . BuildInfoUtils . getHazelcastVersionFromJarOrNull ( file . getAbsolutePath ( ) ) )
|
testIdentityPreProcessing ( ) { java . lang . String script = "result<sp>=<sp>raw;" ; final net . meisen . dissertation . impl . dataintegration . ScriptPreProcessor processor = create ( script ) ; final net . meisen . dissertation . impl . datasets . SingleStaticDataSet rec = new net . meisen . dissertation . impl . datasets . SingleStaticDataSet ( "TEST" ) ; "<AssertPlaceHolder>" ; } process ( net . meisen . dissertation . model . datasets . IDataRecord ) { final javax . script . ScriptContext recordCtx = new javax . script . SimpleScriptContext ( ) ; recordCtx . setAttribute ( "raw" , raw , ScriptContext . ENGINE_SCOPE ) ; recordCtx . setAttribute ( "result" , new net . meisen . dissertation . impl . dataintegration . PreProcessedDataRecord ( raw ) , ScriptContext . ENGINE_SCOPE ) ; java . lang . Object res ; try { res = engine . eval ( this . script , recordCtx ) ; if ( res == null ) { res = recordCtx . getAttribute ( "result" ) ; } } catch ( final javax . script . ScriptException e ) { exceptionRegistry . throwRuntimeException ( net . meisen . dissertation . impl . dataintegration . ScriptPreProcessorException . class , 1001 , e , e . getMessage ( ) , this . script ) ; return null ; } if ( res instanceof net . meisen . dissertation . model . datasets . IDataRecord ) { return ( ( net . meisen . dissertation . model . datasets . IDataRecord ) ( res ) ) ; } else { exceptionRegistry . throwRuntimeException ( net . meisen . dissertation . impl . dataintegration . ScriptPreProcessorException . class , 1002 , ( res == null ? null : res . getClass ( ) . getName ( ) ) , res ) ; return null ; } }
|
org . junit . Assert . assertEquals ( rec , processor . process ( rec ) )
|
testGuard ( ) { org . eclipse . xtext . validation . AbstractDeclarativeValidator validator = new org . eclipse . xtext . validation . AbstractDeclarativeValidator ( ) { @ org . eclipse . xtext . validation . Check public void guarded ( org . eclipse . emf . ecore . EClass x ) { guard ( "" . equals ( x . getName ( ) ) ) ; } } ; org . eclipse . xtext . validation . ValidationTestHelper . TestChain diagnostics = helper . chain ( ) ; validator . validate ( EcorePackage . eINSTANCE . getEClass ( ) , diagnostics , null ) ; "<AssertPlaceHolder>" ; } toString ( ) { return getMessage ( ) ; }
|
org . junit . Assert . assertTrue ( diagnostics . toString ( ) , diagnostics . isEmpty ( ) )
|
testGetStepExecutionFailureCount ( ) { prepareServiceWithMultipleStepExecutions ( ) ; "<AssertPlaceHolder>" ; } getFailureCount ( ) { int count = 0 ; int start = 0 ; int pageSize = 100 ; java . util . Collection < org . springframework . batch . core . StepExecution > stepExecutions ; do { stepExecutions = jobService . listStepExecutionsForStep ( jobName , stepName , start , pageSize ) ; start += pageSize ; for ( org . springframework . batch . core . StepExecution stepExecution : stepExecutions ) { if ( stepExecution . getStatus ( ) . isUnsuccessful ( ) ) { count ++ ; } } } while ( ! ( stepExecutions . isEmpty ( ) ) ) ; return count ; }
|
org . junit . Assert . assertEquals ( 0 , metrics . getFailureCount ( ) )
|
testConstruct_nullClient1_assertIllegalArgumentException ( ) { boolean exceptionOccured = false ; try { new org . nhindirect . common . rest . MockService ( "http://localhost/mock" , null ) ; } catch ( java . lang . IllegalArgumentException e ) { exceptionOccured = true ; } "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertTrue ( exceptionOccured )
|
shouldEvaluateVerticesEquivalentWithSuppliedIdsViaIterators ( ) { final org . apache . tinkerpop . gremlin . structure . Vertex v = graph . addVertex ( T . id , graphProvider . convertId ( "1" , org . apache . tinkerpop . gremlin . structure . Vertex . class ) ) ; final org . apache . tinkerpop . gremlin . structure . Vertex u = graph . vertices ( graphProvider . convertId ( "1" , org . apache . tinkerpop . gremlin . structure . Vertex . class ) ) . next ( ) ; "<AssertPlaceHolder>" ; } next ( ) { return this . iterator . next ( ) . entrySet ( ) . stream ( ) . collect ( java . util . stream . Collectors . toMap ( java . util . Map . Entry :: getKey , ( entry ) -> { final org . apache . tinkerpop . gremlin . neo4j . process . util . T val = entry . getValue ( ) ; if ( . class . isAssignableFrom ( val . getClass ( ) ) ) { return ( ( org . apache . tinkerpop . gremlin . neo4j . process . util . T ) ( new org . apache . tinkerpop . gremlin . neo4j . structure . Neo4jVertex ( ( ( org . neo4j . tinkerpop . api . Neo4jNode ) ( val ) ) , this . graph ) ) ) ; } else if ( . class . isAssignableFrom ( val . getClass ( ) ) ) { return ( ( org . apache . tinkerpop . gremlin . neo4j . process . util . T ) ( new org . apache . tinkerpop . gremlin . neo4j . structure . Neo4jEdge ( ( ( org . neo4j . tinkerpop . api . Neo4jRelationship ) ( val ) ) , this . graph ) ) ) ; } else { return val ; } } ) ) ; }
|
org . junit . Assert . assertEquals ( v , u )
|
testLookupByChallengeExactMatch ( ) { dispatch . register ( "http://localhost:8000" , sampleHandler ) ; org . kaazing . netx . http . auth . ChallengeRequest challengeRequest = new org . kaazing . netx . http . auth . ChallengeRequest ( "http://localhost:8000" , "Application<sp>test_challenge<sp>foo" ) ; org . kaazing . netx . http . auth . ChallengeHandler challengeHandler2 = dispatch . lookup ( challengeRequest ) ; "<AssertPlaceHolder>" ; } lookup ( org . kaazing . netx . http . auth . ChallengeRequest ) { org . kaazing . netx . http . auth . ChallengeHandler result = null ; java . lang . String location = challengeRequest . getLocation ( ) ; if ( location != null ) { org . kaazing . netx . http . internal . auth . DefaultDispatchChallengeHandler . Node < org . kaazing . netx . http . auth . ChallengeHandler , org . kaazing . netx . http . internal . auth . DefaultDispatchChallengeHandler . UriElement > resultNode = findBestMatchingNode ( location ) ; if ( resultNode != null ) { java . util . List < org . kaazing . netx . http . auth . ChallengeHandler > handlers = resultNode . getValues ( ) ; if ( handlers != null ) { for ( org . kaazing . netx . http . auth . ChallengeHandler challengeHandler : handlers ) { if ( challengeHandler . canHandle ( challengeRequest ) ) { result = challengeHandler ; break ; } } } } } return result ; }
|
org . junit . Assert . assertSame ( sampleHandler , challengeHandler2 )
|
testTsvParserNoTimestampValue ( ) { org . apache . hadoop . hbase . mapreduce . ImportTsv . TsvParser parser = new org . apache . hadoop . hbase . mapreduce . ImportTsv . TsvParser ( "HBASE_ROW_KEY,col_a,HBASE_TS_KEY" , "\t" ) ; "<AssertPlaceHolder>" ; byte [ ] line = org . apache . hadoop . hbase . util . Bytes . toBytes ( "rowkey\tval_a" ) ; parser . parse ( line , line . length ) ; } getTimestampKeyColumnIndex ( ) { return timestampKeyColumnIndex ; }
|
org . junit . Assert . assertEquals ( 2 , parser . getTimestampKeyColumnIndex ( ) )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.