input
stringlengths 28
18.7k
| output
stringlengths 39
1.69k
|
|---|---|
testSingleArg ( ) { com . sap . hcp . cf . logback . converter . ContextPropsConverter cpc = new com . sap . hcp . cf . logback . converter . ContextPropsConverter ( ) ; cpc . start ( ) ; org . slf4j . MDC . clear ( ) ; org . slf4j . MDC . put ( com . sap . hcp . cf . logback . converter . SOME_KEY , com . sap . hcp . cf . logback . converter . SOME_VALUE ) ; java . util . Map < java . lang . String , java . lang . Object > actMap = mapFrom ( cpc . convert ( makeEvent ( com . sap . hcp . cf . logback . converter . TEST_MSG_NO_ARGS , com . sap . hcp . cf . logback . converter . NO_ARGS ) ) ) ; "<AssertPlaceHolder>" ; } mdcMap ( ) { return mdcMap ( null ) ; }
|
org . junit . Assert . assertThat ( actMap , org . hamcrest . core . Is . is ( mdcMap ( ) ) )
|
ifTheExceptionHandlerDontThrowExceptionReturnsNull ( ) { org . libreplan . web . common . ExceptionCatcherProxyTest . IDummy dummyProxified = org . libreplan . web . common . ExceptionCatcherProxy . doCatchFor ( org . libreplan . web . common . ExceptionCatcherProxyTest . IDummy . class ) . when ( org . libreplan . web . common . RuntimeException . class , new org . libreplan . web . common . ExceptionCatcherProxy . IExceptionHandler < java . lang . RuntimeException > ( ) { @ org . libreplan . web . common . Override public void onException ( java . lang . RuntimeException exception ) { } } ) . applyTo ( dummy ) ; try { dummy . getHello ( ) ; org . junit . Assert . fail ( "it<sp>throws<sp>error" ) ; } catch ( java . lang . RuntimeException e ) { } "<AssertPlaceHolder>" ; } getHello ( ) { throw new java . lang . RuntimeException ( "bla" ) ; }
|
org . junit . Assert . assertNull ( dummyProxified . getHello ( ) )
|
testGetBlockHeight ( ) { int height = client . getChainHeight ( ) ; org . hyperledger . api . connector . GRPCClientTest . log . debug ( ( "testGetBlockHeight<sp>height=" + height ) ) ; "<AssertPlaceHolder>" ; } getChainHeight ( ) { protos . Api . BlockCount height = obs . getBlockCount ( com . google . protobuf . Empty . getDefaultInstance ( ) ) ; return ( ( int ) ( height . getCount ( ) ) ) ; }
|
org . junit . Assert . assertTrue ( ( height > 0 ) )
|
collect_executionException ( ) { try { this . classUnderTest ( ) . collect ( ( each ) -> { throw new java . lang . RuntimeException ( "Execution<sp>exception" ) ; } ) . toString ( ) ; } catch ( java . lang . RuntimeException e ) { "<AssertPlaceHolder>" ; } } toString ( ) { return new java . lang . String ( this . key ) ; }
|
org . junit . Assert . assertEquals ( "Execution<sp>exception" , e . getMessage ( ) )
|
testGetTextUnitDTONull ( ) { net . sf . okapi . common . resource . ITextUnit textUnit = new net . sf . okapi . common . resource . TextUnit ( ) ; com . box . l10n . mojito . okapi . TextUnitDTOAnnotations instance = new com . box . l10n . mojito . okapi . TextUnitDTOAnnotations ( ) ; com . box . l10n . mojito . service . tm . search . TextUnitDTO expResult = null ; com . box . l10n . mojito . service . tm . search . TextUnitDTO result = instance . getTextUnitDTO ( textUnit ) ; "<AssertPlaceHolder>" ; } getTextUnitDTO ( java . lang . String ) { com . box . l10n . mojito . service . tm . TranslatorWithInheritance . logger . debug ( "Look<sp>for<sp>a<sp>textUnitDTO<sp>in<sp>target<sp>locale:<sp>{}<sp>for<sp>text<sp>unit<sp>with<sp>md5:<sp>{}" , repositoryLocale . getLocale ( ) . getBcp47Tag ( ) , md5 ) ; com . box . l10n . mojito . service . tm . search . TextUnitDTO textUnitDTO = getTextUnitDTO ( md5 , repositoryLocale . getLocale ( ) . getId ( ) ) ; if ( textUnitDTO != null ) { com . box . l10n . mojito . service . tm . TranslatorWithInheritance . logger . debug ( "Found<sp>textUnitDTO<sp>for<sp>target<sp>locale" ) ; } else if ( InheritanceMode . USE_PARENT . equals ( inheritanceMode ) ) { com . box . l10n . mojito . service . tm . TranslatorWithInheritance . logger . debug ( "No<sp>textUnitDTO<sp>found<sp>for<sp>target<sp>locale,<sp>look<sp>for<sp>translations<sp>in<sp>parent<sp>locales" ) ; textUnitDTO = getTextUnitDTOFromParents ( md5 ) ; } return textUnitDTO ; }
|
org . junit . Assert . assertEquals ( expResult , result )
|
test_save_and_find_categorised_error ( ) { org . ikasan . error . reporting . model . ErrorOccurrenceImpl errorOccurrence = new org . ikasan . error . reporting . model . ErrorOccurrenceImpl ( "moduleName" , "flowName" , "flowElementName" , "error<sp>detail" , exception . getMessage ( ) , exception . getClass ( ) . getName ( ) , org . ikasan . spec . error . reporting . ErrorReportingService . DEFAULT_TIME_TO_LIVE ) ; errorOccurrence . setAction ( "Retry" ) ; errorReportingServiceDao . save ( errorOccurrence ) ; errorOccurrence = new org . ikasan . error . reporting . model . ErrorOccurrenceImpl ( "moduleName" , "anotherFlowName" , "anotherFlowElementName" , "error<sp>detail" , exception . getMessage ( ) , exception . getClass ( ) . getName ( ) , org . ikasan . spec . error . reporting . ErrorReportingService . DEFAULT_TIME_TO_LIVE ) ; errorOccurrence . setAction ( "Retry" ) ; errorReportingServiceDao . save ( errorOccurrence ) ; org . ikasan . error . reporting . model . ErrorCategorisation errorCategorisation1 = new org . ikasan . error . reporting . model . ErrorCategorisation ( org . ikasan . error . reporting . model . ErrorCategorisation . TRIVIAL , "This<sp>is<sp>the<sp>error<sp>message" ) ; this . errorCategorisationDao . save ( errorCategorisation1 ) ; org . ikasan . error . reporting . model . ErrorCategorisation errorCategorisation2 = new org . ikasan . error . reporting . model . ErrorCategorisation ( org . ikasan . error . reporting . model . ErrorCategorisation . BLOCKER , "This<sp>is<sp>a<sp>blocker<sp>error<sp>message" ) ; this . errorCategorisationDao . save ( errorCategorisation2 ) ; org . ikasan . error . reporting . model . ErrorCategorisationLink link = new org . ikasan . error . reporting . model . ErrorCategorisationLink ( "moduleName" , "flowName" , "flowElementName" , "Retry" , "" ) ; link . setErrorCategorisation ( errorCategorisation2 ) ; this . errorCategorisationDao . save ( link ) ; link = new org . ikasan . error . reporting . model . ErrorCategorisationLink ( "moduleName" , "" , "" , "Retry" , "" ) ; link . setErrorCategorisation ( errorCategorisation1 ) ; this . errorCategorisationDao . save ( link ) ; link = new org . ikasan . error . reporting . model . ErrorCategorisationLink ( "moduleName" , "flowName" , "" , "Retry" , "" ) ; link . setErrorCategorisation ( errorCategorisation1 ) ; this . errorCategorisationDao . save ( link ) ; link = new org . ikasan . error . reporting . model . ErrorCategorisationLink ( "" , "" , "" , "Retry" , "" ) ; link . setErrorCategorisation ( errorCategorisation2 ) ; this . errorCategorisationDao . save ( link ) ; java . util . ArrayList < java . lang . String > moduleNames = new java . util . ArrayList < java . lang . String > ( ) ; moduleNames . add ( "moduleName" ) ; java . util . ArrayList < java . lang . String > flowNames = new java . util . ArrayList < java . lang . String > ( ) ; flowNames . add ( "flowName" ) ; java . util . ArrayList < java . lang . String > componentNames = new java . util . ArrayList < java . lang . String > ( ) ; componentNames . add ( "flowElementName" ) ; java . lang . Long count = this . errorCategorisationDao . rowCount ( moduleNames , flowNames , componentNames , new java . util . Date ( 0 ) , new java . util . Date ( java . lang . System . currentTimeMillis ( ) ) ) ; "<AssertPlaceHolder>" ; } rowCount ( java . util . List , java . util . List , java . util . Date , java . util . Date , java . lang . String ) { return ( ( java . lang . Long ) ( getHibernateTemplate ( ) . execute ( new org . springframework . orm . hibernate4 . HibernateCallback ( ) { public java . lang . Object doInHibernate ( org . hibernate . Session session ) throws org . hibernate . HibernateException { org . hibernate . Criteria criteria = session . createCriteria ( org . ikasan . exclusion . model . ExclusionEventImpl . class ) ; if ( ( moduleName != null ) && ( ( moduleName . size ( ) ) > 0 ) ) { criteria . add ( org . hibernate . criterion . Restrictions . in ( "moduleName" , moduleName ) ) ; } if ( ( flowName != null ) && ( ( flowName . size ( ) ) > 0 ) ) { criteria . add ( org . hibernate . criterion . Restrictions . in ( "flowName" , flowName ) ) ; } if ( ( identifier != null ) && ( ( identifier . length ( ) ) > 0 ) ) { criteria . add ( org . hibernate . criterion . Restrictions . eq ( "identifier" , identifier ) ) ; } if ( startDate != null ) { criteria . add ( org . hibernate . criterion . Restrictions . gt ( "timestamp" , startDate . getTime ( ) ) ) ; } if ( endDate != null ) { criteria . add ( org . hibernate . criterion . Restrictions . lt ( "timestamp" , endDate . getTime ( ) ) ) ; } criteria . setProjection ( org . hibernate . criterion . Projections . rowCount ( ) ) ; java . lang . Long rowCount = new java . lang . Long ( 0 ) ; java . util . List < java . lang . Long > rowCountList = criteria . list ( ) ; if ( ! ( rowCountList . isEmpty ( ) ) ) { rowCount = rowCountList . get ( 0 ) ; } return rowCount ; } } ) ) ) ; }
|
org . junit . Assert . assertTrue ( ( count == 3 ) )
|
cancelStreamShouldCreateAndThenFailBufferedStream ( ) { receiveMaxConcurrentStreams ( 0 ) ; enqueue ( io . grpc . netty . NettyClientHandlerTest . newCreateStreamCommand ( grpcHeaders , streamTransportState ) ) ; "<AssertPlaceHolder>" ; cancelStream ( Status . CANCELLED ) ; verify ( streamListener ) . closed ( eq ( Status . CANCELLED ) , same ( io . grpc . netty . PROCESSED ) , any ( io . grpc . Metadata . class ) ) ; } id ( ) { return id ; }
|
org . junit . Assert . assertEquals ( 3 , streamTransportState . id ( ) )
|
testPropertyExistsUsingNullKeyReturnsFalse ( ) { org . apache . qpid . jms . message . facade . JmsMessageFacade amqpMessageFacade = createNewMessageFacade ( ) ; "<AssertPlaceHolder>" ; } propertyExists ( java . lang . String ) { return messageProperties . containsKey ( name ) ; }
|
org . junit . Assert . assertFalse ( amqpMessageFacade . propertyExists ( null ) )
|
testReporter ( ) { com . etsy . statsd . profiler . reporter . MockReporter mockReporter = new com . etsy . statsd . profiler . reporter . MockReporter ( ) ; com . etsy . statsd . profiler . profilers . MockReportingProfiler profiler = new com . etsy . statsd . profiler . profilers . MockReportingProfiler ( mockReporter ) ; profiler . profile ( ) ; profiler . flushData ( ) ; java . util . Map < java . lang . String , java . lang . Long > expected = new java . util . HashMap ( ) ; expected . put ( "profile" , 1L ) ; expected . put ( "flushData" , 1L ) ; "<AssertPlaceHolder>" ; } getOutput ( ) { return output ; }
|
org . junit . Assert . assertEquals ( expected , mockReporter . getOutput ( ) )
|
testPathExtraction ( ) { java . lang . String regex = "/([^/]+)/" ; org . apache . druid . query . extraction . ExtractionFn extractionFn = new org . apache . druid . query . extraction . RegexDimExtractionFn ( regex , false , null ) ; java . util . Set < java . lang . String > extracted = new java . util . LinkedHashSet ( ) ; for ( java . lang . String path : org . apache . druid . query . extraction . RegexDimExtractionFnTest . paths ) { extracted . add ( extractionFn . apply ( path ) ) ; } java . util . Set < java . lang . String > expected = com . google . common . collect . Sets . newLinkedHashSet ( com . google . common . collect . ImmutableList . of ( "druid" , "dash" ) ) ; "<AssertPlaceHolder>" ; } of ( java . lang . String , java . lang . Object [ ] ) { return org . apache . druid . java . util . common . Intervals . of ( org . apache . druid . java . util . common . StringUtils . format ( format , formatArgs ) ) ; }
|
org . junit . Assert . assertEquals ( expected , extracted )
|
testInAugmentLeafOverride ( ) { final org . opendaylight . yangtools . yang . data . api . schema . LeafNode < java . lang . Object > lastLeaf = org . opendaylight . yangtools . yang . data . impl . schema . Builders . leafBuilder ( ) . withNodeIdentifier ( augmentedLeaf ) . withValue ( "randomValue" ) . build ( ) ; final org . opendaylight . yangtools . yang . data . api . schema . ContainerNode expectedFilter = org . opendaylight . yangtools . yang . data . impl . schema . Builders . containerBuilder ( ) . withNodeIdentifier ( rootContainer ) . withChild ( org . opendaylight . yangtools . yang . data . impl . schema . Builders . containerBuilder ( ) . withNodeIdentifier ( outerContainer ) . withChild ( org . opendaylight . yangtools . yang . data . impl . schema . Builders . augmentationBuilder ( ) . withNodeIdentifier ( augmentation ) . withChild ( lastLeaf ) . build ( ) ) . build ( ) ) . build ( ) ; final org . opendaylight . yangtools . yang . data . api . schema . NormalizedNode < ? , ? > filter = org . opendaylight . yangtools . yang . data . impl . schema . ImmutableNodes . fromInstanceId ( org . opendaylight . yangtools . yang . data . impl . schema . InstanceIdToNodesTest . ctx , org . opendaylight . yangtools . yang . data . api . YangInstanceIdentifier . create ( rootContainer , outerContainer , augmentation , augmentedLeaf ) , lastLeaf ) ; "<AssertPlaceHolder>" ; } create ( org . opendaylight . yangtools . yang . data . api . schema . stream . NormalizedNodeStreamWriter , org . opendaylight . yangtools . yang . model . api . SchemaContext , org . opendaylight . yangtools . yang . model . api . SchemaNode , boolean ) { return org . opendaylight . yangtools . yang . data . codec . xml . XmlParserStream . create ( writer , org . opendaylight . yangtools . yang . data . codec . xml . XmlCodecFactory . create ( schemaContext ) , parentNode , strictParsing ) ; }
|
org . junit . Assert . assertEquals ( expectedFilter , filter )
|
testAcquireUsingWithIntValueKeyStringBuilderValue ( ) { net . openhft . chronicle . map . ChronicleMapBuilder < net . openhft . chronicle . map . IntValue , java . lang . StringBuilder > builder = net . openhft . chronicle . map . ChronicleMapBuilder . of ( net . openhft . chronicle . map . IntValue . class , net . openhft . chronicle . map . StringBuilder . class ) . entries ( 1 ) ; try ( net . openhft . chronicle . map . ChronicleMap < net . openhft . chronicle . map . IntValue , java . lang . StringBuilder > map = newInstance ( builder ) ) { net . openhft . chronicle . map . IntValue key = net . openhft . chronicle . values . Values . newHeapInstance ( net . openhft . chronicle . map . IntValue . class ) ; key . setValue ( 1 ) ; java . lang . StringBuilder using = new java . lang . StringBuilder ( ) ; try ( net . openhft . chronicle . core . io . Closeable c = map . acquireContext ( key , using ) ) { using . append ( "Hello" ) ; } "<AssertPlaceHolder>" ; mapChecks ( ) ; } } get ( java . lang . Object ) { return check ( new net . openhft . chronicle . map . ReplicationCheckingMap . Call < K , V > ( ) { @ net . openhft . chronicle . map . Override public java . lang . Object method ( java . util . concurrent . ConcurrentMap < K , V > map ) { return map . get ( key ) ; } } ) ; }
|
org . junit . Assert . assertEquals ( "Hello" , map . get ( key ) . toString ( ) )
|
shouldNotValidateWhenEdge ( ) { final uk . gov . gchq . gaffer . data . element . Element element = new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . group ( TestGroups . EDGE ) . build ( ) ; final boolean valid = new uk . gov . gchq . gaffer . data . IsEntityValidator ( ) . validate ( element ) ; "<AssertPlaceHolder>" ; } validate ( uk . gov . gchq . gaffer . data . element . Edge ) { return ( ( ( ( null != edge ) && ( validateFlags ( edge ) ) ) && ( validatePreAggregationFilter ( edge ) ) ) && ( validatePostAggregationFilter ( edge ) ) ) && ( validatePostTransformFilter ( edge ) ) ; }
|
org . junit . Assert . assertFalse ( valid )
|
testJTPSync6 ( ) { final java . util . concurrent . atomic . AtomicBoolean ok = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; org . jrebirth . af . core . concurrent . JRebirth . runIntoJTPSync ( "JTP_Sync<sp>test<sp>6" , PriorityLevel . Highest , ( ) -> { org . jrebirth . af . core . concurrent . ThreadTest . LOGGER . info ( ( "Running<sp>into<sp>" + ( java . lang . Thread . currentThread ( ) . getName ( ) ) ) ) ; ok . set ( org . jrebirth . af . core . concurrent . JRebirth . isJTPSlot ( ) ) ; } ) ; "<AssertPlaceHolder>" ; } get ( ) { return builder ( ) . get ( this ) ; }
|
org . junit . Assert . assertEquals ( true , ok . get ( ) )
|
testConstructor ( ) { instance = new edu . illinois . library . cantaloupe . image . Info ( ) ; "<AssertPlaceHolder>" ; } getImages ( ) { return images ; }
|
org . junit . Assert . assertEquals ( 1 , instance . getImages ( ) . size ( ) )
|
testScalarMaxOp ( ) { org . nd4j . linalg . api . ndarray . INDArray scalarMax = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 6 , 6 , DataType . DOUBLE ) . negi ( ) ; org . nd4j . linalg . api . ndarray . INDArray postMax = org . nd4j . linalg . factory . Nd4j . ones ( DataType . DOUBLE , 6 ) ; org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . exec ( new org . nd4j . linalg . api . ops . impl . scalar . ScalarMax ( scalarMax , 1 ) ) ; "<AssertPlaceHolder>" ; } getFailureMessage ( ) { return ( ( "Failed<sp>with<sp>backend<sp>" + ( backend . getClass ( ) . getName ( ) ) ) + "<sp>and<sp>ordering<sp>" ) + ( ordering ( ) ) ; }
|
org . junit . Assert . assertEquals ( getFailureMessage ( ) , scalarMax , postMax )
|
testClassUnloading ( ) { org . apache . catalina . core . DefaultInstanceManager instanceManager = doClassUnloadingPrep ( ) ; getUrl ( ( ( "http://localhost:" + ( getPort ( ) ) ) + "/test/annotations.jsp" ) ) ; getUrl ( ( ( "http://localhost:" + ( getPort ( ) ) ) + "/test/bug36923.jsp" ) ) ; int count = instanceManager . getAnnotationCacheSize ( ) ; getUrl ( ( ( "http://localhost:" + ( getPort ( ) ) ) + "/test/bug5nnnn/bug51544.jsp" ) ) ; java . lang . System . gc ( ) ; int loop = 0 ; while ( loop < 10 ) { if ( ( instanceManager . getAnnotationCacheSize ( ) ) == count ) { break ; } java . lang . Thread . sleep ( 100 ) ; loop ++ ; } "<AssertPlaceHolder>" ; } getAnnotationCacheSize ( ) { synchronized ( annotationCache ) { return annotationCache . size ( ) ; } }
|
org . junit . Assert . assertEquals ( count , instanceManager . getAnnotationCacheSize ( ) )
|
testNullEquals ( ) { org . apache . beam . sdk . coders . SerializableCoder < org . apache . beam . sdk . coders . SerializableCoderTest . MyRecord > coder = org . apache . beam . sdk . coders . SerializableCoder . of ( org . apache . beam . sdk . coders . SerializableCoderTest . MyRecord . class ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { return ( other instanceof org . apache . beam . sdk . coders . CustomCoderTest . MyCustomCoder ) && ( key . equals ( ( ( org . apache . beam . sdk . coders . CustomCoderTest . MyCustomCoder ) ( other ) ) . key ) ) ; }
|
org . junit . Assert . assertFalse ( coder . equals ( null ) )
|
dropEntityThatDoesNotExistTest ( ) { com . feedzai . commons . sql . abstraction . ddl . DbEntity removeEntity = engine . removeEntity ( "TABLETHATDOESNOTEXIST" ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertNull ( removeEntity )
|
getHoldsThatNodeRefIsNotHeldBy ( ) { doReturn ( holds ) . when ( mockedHoldService ) . heldBy ( record , false ) ; java . util . Map < java . lang . String , java . lang . String > parameters = buildParameters ( "store_type" , filePlan . getStoreRef ( ) . getProtocol ( ) , "store_id" , filePlan . getStoreRef ( ) . getIdentifier ( ) , "id" , filePlan . getId ( ) , "itemNodeRef" , record . toString ( ) , "includedInHold" , "false" ) ; org . json . JSONObject json = executeJSONWebScript ( parameters ) ; "<AssertPlaceHolder>" ; testForBothHolds ( json ) ; } toString ( ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( super . toString ( ) ) ; builder . append ( "<sp>(nodeRef='" ) . append ( nodeRef ) . append ( "',<sp>user='" ) . append ( user ) . append ( "',<sp>dateFrom='" ) . append ( dateFrom ) . append ( "',<sp>dateTo='" ) . append ( dateTo ) . append ( "',<sp>maxEntries='" ) . append ( maxEntries ) . append ( "',<sp>event='" ) . append ( event ) . append ( "',<sp>property='" ) . append ( property ) . append ( "')" ) ; return builder . toString ( ) ; }
|
org . junit . Assert . assertNotNull ( json )
|
readWrite_anyType ( ) { replay ( log ) ; session . setAttribute ( "aaa" , 123 ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { java . lang . Object value = context . get ( name ) ; if ( value == null ) { value = getRequest ( ) . getAttribute ( name ) ; } return value ; }
|
org . junit . Assert . assertEquals ( 123 , session . getAttribute ( "aaa" ) )
|
normalizesRelativePathWithJustDotsTest ( ) { com . beijunyi . parallelgit . filesystem . GitPath path = gfs . getPath ( "./." ) ; com . beijunyi . parallelgit . filesystem . GitPath result = path . normalize ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { if ( ( stringValue ) == null ) stringValue = decode ( com . beijunyi . parallelgit . filesystem . CHARSET , path ) ; return stringValue ; }
|
org . junit . Assert . assertEquals ( "" , result . toString ( ) )
|
reportsMeasurementDoneNoWithData ( ) { final java . util . List < com . hartwig . hmftools . common . ecrf . datamodel . ValidationFinding > findings = com . hartwig . hmftools . patientdb . validators . PatientValidatorTest . validateNonFirstResponse ( com . hartwig . hmftools . patientdb . validators . PatientValidatorTest . PATIENT_IDENTIFIER , com . hartwig . hmftools . patientdb . validators . PatientValidatorTest . RESPONSE_MEASUREMENT_NO_WITH_DATA ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( maxheap . size ( ) ) + ( minheap . size ( ) ) ; }
|
org . junit . Assert . assertEquals ( 2 , findings . size ( ) )
|
testCglibProxy ( ) { System . out . println ( service . getClass ( ) ) ; java . lang . String result = service . doSomething ( ) ; System . out . println ( result ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertNotNull ( result )
|
testDefaultThrowOnErrorWithSetSystemProperty ( ) { java . lang . String testSqoopRethrowProperty = "" ; java . lang . System . setProperty ( org . apache . sqoop . Sqoop . SQOOP_RETHROW_PROPERTY , testSqoopRethrowProperty ) ; org . apache . sqoop . SqoopOptions opts = new org . apache . sqoop . SqoopOptions ( ) ; "<AssertPlaceHolder>" ; } isThrowOnError ( ) { return throwOnError ; }
|
org . junit . Assert . assertTrue ( opts . isThrowOnError ( ) )
|
testAssignableType ( ) { com . orientechnologies . orient . core . metadata . schema . ArrayList < java . lang . Object > aList = new com . orientechnologies . orient . core . metadata . schema . ArrayList < java . lang . Object > ( ) ; aList . add ( 1 ) ; aList . add ( "2" ) ; java . lang . Object result = com . orientechnologies . orient . core . metadata . schema . OType . convert ( aList , com . orientechnologies . orient . core . metadata . schema . List . class ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . Object , java . lang . Class ) { if ( iValue == null ) return null ; if ( iTargetClass == null ) return iValue ; if ( iValue . getClass ( ) . equals ( iTargetClass ) ) return iValue ; if ( iTargetClass . isAssignableFrom ( iValue . getClass ( ) ) ) return iValue ; try { if ( ( iValue instanceof com . orientechnologies . common . types . OBinary ) && ( iTargetClass . isAssignableFrom ( byte [ ] . class ) ) ) return ( ( com . orientechnologies . common . types . OBinary ) ( iValue ) ) . toByteArray ( ) ; else if ( byte [ ] . class . isAssignableFrom ( iTargetClass ) ) { return com . orientechnologies . orient . core . serialization . serializer . OStringSerializerHelper . getBinaryContent ( iValue ) ; } else if ( byte [ ] . class . isAssignableFrom ( iValue . getClass ( ) ) ) { return iValue ; } else if ( iTargetClass . isEnum ( ) ) { if ( iValue instanceof java . lang . Number ) return ( ( java . lang . Class < java . lang . Enum > ) ( iTargetClass ) ) . getEnumConstants ( ) [ ( ( java . lang . Number ) ( iValue ) ) . intValue ( ) ] ; return java . lang . Enum . valueOf ( ( ( java . lang . Class < java . lang . Enum > ) ( iTargetClass ) ) , iValue . toString ( ) ) ; } else if ( ( iTargetClass . equals ( Byte . TYPE ) ) || ( iTargetClass . equals ( com . orientechnologies . orient . core . metadata . schema . Byte . class ) ) ) { if ( iValue instanceof java . lang . Byte ) return iValue ; else if ( iValue instanceof java . lang . String ) return java . lang . Byte . parseByte ( ( ( java . lang . String ) ( iValue ) ) ) ; else return ( ( java . lang . Number ) ( iValue ) ) . byteValue ( ) ; } else if ( ( iTargetClass . equals ( Short . TYPE ) ) || ( iTargetClass . equals ( com . orientechnologies . orient . core . metadata . schema . Short . class ) ) ) { if ( iValue instanceof java . lang . Short ) return iValue ; else if ( iValue instanceof java . lang . String ) return java . lang . Short . parseShort ( ( ( java . lang . String ) ( iValue ) ) ) ; else return ( ( java . lang . Number ) ( iValue ) ) . shortValue ( ) ; } else if ( ( iTargetClass . equals ( Integer . TYPE ) ) || ( iTargetClass . equals ( com . orientechnologies . orient . core . metadata . schema . Integer . class ) ) ) { if ( iValue instanceof java . lang . Integer ) return iValue ; else if ( iValue instanceof java . lang . String ) { if ( iValue . toString ( ) . equals ( "" ) ) { return null ; } return java . lang . Integer . parseInt ( ( ( java . lang . String ) ( iValue ) ) ) ; } else return ( ( java . lang . Number ) ( iValue ) ) . intValue ( ) ; } else if ( ( iTargetClass . equals ( Long . TYPE ) ) || ( iTargetClass . equals ( com . orientechnologies . orient . core . metadata . schema . Long . class ) ) ) { if ( iValue instanceof java . lang . Long ) return iValue ; else if ( iValue instanceof java . lang . String ) return java . lang . Long . parseLong ( ( ( java . lang . String ) ( iValue ) ) ) ; else if ( iValue instanceof java . util . Date ) return ( ( java . util . Date ) ( iValue ) ) . getTime ( ) ; else return ( ( java . lang . Number ) ( iValue ) ) . longValue ( ) ; } else if ( ( iTargetClass . equals ( Float . TYPE ) ) || ( iTargetClass . equals ( com . orientechnologies . orient . core . metadata . schema . Float . class ) ) ) { if ( iValue instanceof java . lang . Float ) return iValue ; else if ( iValue instanceof java . lang . String ) return java . lang . Float . parseFloat ( ( ( java . lang . String ) ( iValue ) ) ) ; else return ( ( java . lang . Number ) ( iValue ) ) . floatValue ( ) ; } else if ( iTargetClass . equals ( java . math . BigDecimal . class ) ) { if ( iValue instanceof java . lang . String ) return new java . math . BigDecimal ( ( ( java . lang
|
org . junit . Assert . assertEquals ( result , aList )
|
whenLongPolling_ShouldObserveItemsFromLabelColorConditions ( ) { new java . lang . Thread ( ( ) -> { try { java . lang . Thread . sleep ( org . eclipse . smarthome . io . rest . sitemap . internal . SitemapResourceTest . STATE_UPDATE_WAIT_TIME ) ; labelColorItem . setState ( new org . eclipse . smarthome . core . library . types . DecimalType ( BigDecimal . ONE ) ) ; } catch ( e ) { } } ) . start ( ) ; when ( headers . getRequestHeader ( org . eclipse . smarthome . io . rest . sitemap . internal . SitemapResourceTest . HTTP_HEADER_X_ATMOSPHERE_TRANSPORT ) ) . thenReturn ( java . util . Collections . emptyList ( ) ) ; javax . ws . rs . core . Response response = sitemapResource . getPageData ( headers , null , org . eclipse . smarthome . io . rest . sitemap . internal . SitemapResourceTest . SITEMAP_MODEL_NAME , org . eclipse . smarthome . io . rest . sitemap . internal . SitemapResourceTest . SITEMAP_NAME , null ) ; org . eclipse . smarthome . io . rest . sitemap . internal . PageDTO pageDTO = ( ( org . eclipse . smarthome . io . rest . sitemap . internal . PageDTO ) ( response . getEntity ( ) ) ) ; "<AssertPlaceHolder>" ; } getPageData ( javax . ws . rs . core . HttpHeaders , java . lang . String , java . lang . String , java . lang . String , java . lang . String ) { final java . util . Locale locale = localeService . getLocale ( language ) ; logger . debug ( "Received<sp>HTTP<sp>GET<sp>request<sp>from<sp>IP<sp>{}<sp>at<sp>'{}'" , request . getRemoteAddr ( ) , uriInfo . getPath ( ) ) ; if ( subscriptionId != null ) { try { subscriptions . setPageId ( subscriptionId , sitemapname , pageId ) ; } catch ( java . lang . IllegalArgumentException e ) { return org . eclipse . smarthome . io . rest . JSONResponse . createErrorResponse ( Response . Status . BAD_REQUEST , e . getMessage ( ) ) ; } } boolean timeout = false ; if ( ( headers . getRequestHeader ( "X-Atmosphere-Transport" ) ) != null ) { timeout = blockUnlessChangeOccurs ( sitemapname , pageId ) ; } org . eclipse . smarthome . io . rest . sitemap . internal . PageDTO responseObject = getPageBean ( sitemapname , pageId , uriInfo . getBaseUriBuilder ( ) . build ( ) , locale , timeout ) ; return javax . ws . rs . core . Response . ok ( responseObject ) . build ( ) ; }
|
org . junit . Assert . assertThat ( pageDTO . timeout , org . hamcrest . CoreMatchers . is ( false ) )
|
test11 ( ) { org . openl . rules . tbasic . TestForEach . TestAlgorithm a = org . openl . rules . TestUtils . create ( "test/rules/tbasic1/FOR_EACH_P5.xls" , org . openl . rules . tbasic . TestForEach . TestAlgorithm . class ) ; java . lang . Integer result = a . calc ( ) ; "<AssertPlaceHolder>" ; } intValue ( ) { return value ; }
|
org . junit . Assert . assertEquals ( 3 , result . intValue ( ) )
|
testGenerateSequenceIdentifier ( ) { org . apache . cxf . ws . rm . RMManager mgr = control . createMock ( org . apache . cxf . ws . rm . RMManager . class ) ; org . easymock . EasyMock . expect ( rme . getManager ( ) ) . andReturn ( mgr ) ; org . apache . cxf . ws . rm . SequenceIdentifierGenerator generator = control . createMock ( org . apache . cxf . ws . rm . SequenceIdentifierGenerator . class ) ; org . easymock . EasyMock . expect ( mgr . getIdGenerator ( ) ) . andReturn ( generator ) ; org . apache . cxf . ws . rm . v200702 . Identifier id = control . createMock ( org . apache . cxf . ws . rm . v200702 . Identifier . class ) ; org . easymock . EasyMock . expect ( generator . generateSequenceIdentifier ( ) ) . andReturn ( id ) ; control . replay ( ) ; org . apache . cxf . ws . rm . AbstractEndpoint tested = new org . apache . cxf . ws . rm . AbstractEndpoint ( rme ) ; "<AssertPlaceHolder>" ; control . verify ( ) ; } generateSequenceIdentifier ( ) { return reliableEndpoint . getManager ( ) . getIdGenerator ( ) . generateSequenceIdentifier ( ) ; }
|
org . junit . Assert . assertSame ( id , tested . generateSequenceIdentifier ( ) )
|
shareAnalysisSubmissionWithProject ( ) { ca . corefacility . bioinformatics . irida . model . workflow . submission . AnalysisSubmission read = analysisSubmissionService . read ( 3L ) ; ca . corefacility . bioinformatics . irida . model . project . Project project2 = projectService . read ( 2L ) ; ca . corefacility . bioinformatics . irida . model . workflow . submission . ProjectAnalysisSubmissionJoin shareAnalysisSubmissionWithProject = analysisSubmissionService . shareAnalysisSubmissionWithProject ( read , project2 ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
|
org . junit . Assert . assertNotNull ( shareAnalysisSubmissionWithProject . getId ( ) )
|
testGetSetEncryptionVersion ( ) { java . lang . String expectedEncryptionVersion = "1.5" ; com . microsoft . windowsazure . services . media . models . TaskInfo taskInfo = new com . microsoft . windowsazure . services . media . models . TaskInfo ( null , new com . microsoft . windowsazure . services . media . implementation . content . TaskType ( ) . setEncryptionVersion ( expectedEncryptionVersion ) ) ; java . lang . String actualEncryptionVersion = taskInfo . getEncryptionVersion ( ) ; "<AssertPlaceHolder>" ; } getEncryptionVersion ( ) { return encryptionVersion ; }
|
org . junit . Assert . assertEquals ( expectedEncryptionVersion , actualEncryptionVersion )
|
testIncorrectAppliesTo ( ) { org . talend . esb . policy . samenabling . SamEnablingInterceptorProvider provider = new org . talend . esb . policy . samenabling . SamEnablingInterceptorProvider ( ) ; provider . getOutInterceptors ( ) ; try { createSamlAssertion ( "notExistigAppliesTo" ) ; org . junit . Assert . fail ( "Exception<sp>not<sp>thrown" ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } createSamlAssertion ( java . lang . String ) { java . util . List < org . apache . neethi . Assertion > assertions = new java . util . ArrayList < org . apache . neethi . Assertion > ( ) ; javax . xml . parsers . DocumentBuilderFactory dbf = javax . xml . parsers . DocumentBuilderFactory . newInstance ( ) ; javax . xml . parsers . DocumentBuilder builder = dbf . newDocumentBuilder ( ) ; org . w3c . dom . Document doc = builder . newDocument ( ) ; org . w3c . dom . Element element = doc . createElement ( "root" ) ; doc . appendChild ( element ) ; element . setAttribute ( "appliesTo" , appliesTo ) ; assertions . add ( new org . talend . esb . policy . samenabling . SamEnablingPolicy ( element ) ) ; return assertions ; }
|
org . junit . Assert . assertTrue ( ( e instanceof java . lang . IllegalArgumentException ) )
|
getJsonWebTokenPrincipal_MpJsonWebToken ( ) { javax . security . auth . Subject subject = new javax . security . auth . Subject ( ) ; com . ibm . ws . security . mp . jwt . impl . utils . JsonWebTokenUtilImpl jwtui = new com . ibm . ws . security . mp . jwt . impl . utils . JsonWebTokenUtilImpl ( ) ; "<AssertPlaceHolder>" ; } getJsonWebTokenPrincipal ( javax . security . auth . Subject ) { if ( subject != null ) { java . util . Set < org . eclipse . microprofile . jwt . JsonWebToken > jsonWebTokenPrincipal = subject . getPrincipals ( org . eclipse . microprofile . jwt . JsonWebToken . class ) ; if ( ! ( jsonWebTokenPrincipal . isEmpty ( ) ) ) { org . eclipse . microprofile . jwt . JsonWebToken jwtPrincipal = jsonWebTokenPrincipal . iterator ( ) . next ( ) ; if ( jwtPrincipal != null ) { return jwtPrincipal . getRawToken ( ) ; } } } return null ; }
|
org . junit . Assert . assertNull ( jwtui . getJsonWebTokenPrincipal ( subject ) )
|
getValueFromJsonObject_value_null ( ) { java . lang . String jsonString = "{\"deviceId\":\"xxx-device\",\"generationId\":null,\"etag\":\"MA==\",\"connectionState\":\"Disconnected\",\"status\":\"Disabled\",\"statusReason\":null,\"connectionStateUpdatedTime\":\"0001-01-01T00:00:00\",\"statusUpdatedTime\":\"0001-01-01T00:00:00\",\"lastActivityTime\":\"0001-01-01T00:00:00\",\"cloudToDeviceMessageCount\":0,\"authentication\":{\"symmetricKey\":{\"primaryKey\":\"AAABBBCCC111222333444000\",\"secondaryKey\":\"111222333444555AAABBBCCC\"}}}" ; java . io . StringReader stringReader = new java . io . StringReader ( jsonString ) ; javax . json . JsonReader jsonReader = javax . json . Json . createReader ( stringReader ) ; javax . json . JsonObject jsonObject = jsonReader . readObject ( ) ; java . lang . String key = "generationId" ; java . lang . String expResult = "" ; java . lang . String result = com . microsoft . azure . sdk . iot . service . Tools . getValueFromJsonObject ( jsonObject , key ) ; "<AssertPlaceHolder>" ; } getValueFromJsonObject ( javax . json . JsonObject , java . lang . String ) { java . lang . String retVal ; if ( ( ( ( jsonObject == null ) || ( jsonObject == ( javax . json . JsonObject . NULL ) ) ) || ( key == null ) ) || ( ( key . length ( ) ) == 0 ) ) { retVal = "" ; } else { javax . json . JsonValue jsonValue = jsonObject . get ( key ) ; if ( jsonValue != ( javax . json . JsonValue . NULL ) ) { retVal = com . microsoft . azure . sdk . iot . service . Tools . getValueFromJsonString ( jsonObject . getJsonString ( key ) ) ; } else { retVal = "" ; } } return retVal ; }
|
org . junit . Assert . assertEquals ( expResult , result )
|
testUnequalySizedLists ( ) { java . util . List < java . lang . String > s1 = new java . util . ArrayList < java . lang . String > ( ) ; s1 . add ( "a" ) ; s1 . add ( "b" ) ; java . util . List < java . lang . String > s2 = new java . util . ArrayList < java . lang . String > ( ) ; s2 . add ( "c" ) ; java . util . List < java . lang . String > s3 = new java . util . ArrayList < java . lang . String > ( ) ; s3 . add ( "e" ) ; s3 . add ( "f" ) ; java . util . List < java . util . List < java . lang . String > > l = new java . util . ArrayList < java . util . List < java . lang . String > > ( ) ; l . add ( s1 ) ; l . add ( s2 ) ; l . add ( s3 ) ; java . util . List < java . util . ArrayList < java . lang . String > > cp = eu . abc4trust . util . CartesianProduct . cartesianProduct ( l ) ; java . util . List < java . util . List < java . lang . String > > resultSet = new java . util . ArrayList < java . util . List < java . lang . String > > ( ) ; java . util . List < java . lang . String > rl = new java . util . ArrayList < java . lang . String > ( ) ; rl . add ( "a" ) ; rl . add ( "c" ) ; rl . add ( "e" ) ; resultSet . add ( rl ) ; rl = new java . util . ArrayList < java . lang . String > ( ) ; rl . add ( "a" ) ; rl . add ( "c" ) ; rl . add ( "f" ) ; resultSet . add ( rl ) ; rl = new java . util . ArrayList < java . lang . String > ( ) ; rl . add ( "b" ) ; rl . add ( "c" ) ; rl . add ( "e" ) ; resultSet . add ( rl ) ; rl = new java . util . ArrayList < java . lang . String > ( ) ; rl . add ( "b" ) ; rl . add ( "c" ) ; rl . add ( "f" ) ; resultSet . add ( rl ) ; "<AssertPlaceHolder>" ; } cartesianProduct ( java . util . List ) { final java . math . BigInteger MAX_LIST_SIZE = java . math . BigInteger . valueOf ( 100000 ) ; java . math . BigInteger productSize = java . math . BigInteger . ONE ; for ( java . util . List < T > set : sets ) { productSize = productSize . multiply ( java . math . BigInteger . valueOf ( set . size ( ) ) ) ; } if ( ( productSize . compareTo ( MAX_LIST_SIZE ) ) == 1 ) { throw new java . lang . Exception ( ( ( ( ( ( "Will<sp>not<sp>generate<sp>carthesian<sp>product<sp>for<sp>more<sp>than<sp>" + MAX_LIST_SIZE ) + "<sp>elements<sp>" ) + "(size<sp>would<sp>be<sp>" ) + productSize ) + ").<sp>Not<sp>proceeding." ) ) ; } java . util . List < java . util . ArrayList < T > > cartesianProduct = new java . util . ArrayList < java . util . ArrayList < T > > ( productSize . intValue ( ) ) ; for ( int i = 0 ; i < ( productSize . intValue ( ) ) ; i ++ ) { cartesianProduct . add ( new java . util . ArrayList < T > ( sets . size ( ) ) ) ; } if ( productSize . equals ( BigInteger . ZERO ) ) { return cartesianProduct ; } int loopSize = productSize . intValue ( ) ; for ( int i = 0 ; i < ( sets . size ( ) ) ; i ++ ) { java . util . List < T > set = sets . get ( i ) ; loopSize /= set . size ( ) ; java . util . Iterator < T > it = set . iterator ( ) ; T e = null ; for ( int j = 0 ; j < ( productSize . intValue ( ) ) ; j ++ ) { if ( ( j % loopSize ) == 0 ) { if ( it . hasNext ( ) ) { e = it . next ( ) ; } else { it = set . iterator ( ) ; e = it . next ( ) ; } } cartesianProduct . get ( j ) . add ( e ) ; } } return cartesianProduct ; }
|
org . junit . Assert . assertEquals ( resultSet , cp )
|
testComplementMap1 ( ) { int [ ] expected = new int [ ] { 3 , 4 , 5 } ; int [ ] input = new int [ ] { 0 , 1 , 2 } ; int size = ( expected . length ) + ( input . length ) ; int [ ] complement = com . splicemachine . utils . IntArrays . complementMap ( input , size ) ; "<AssertPlaceHolder>" ; } printArrays ( int [ ] , int , int [ ] , int [ ] ) { return ( ( ( ( ( ( ( "FilterMap:<sp>" + ( java . util . Arrays . toString ( input ) ) ) + "<sp>Size:<sp>" ) + size ) + "\nResult:<sp>" ) + ( java . util . Arrays . toString ( expected ) ) ) + "\nActual:<sp>" ) + ( java . util . Arrays . toString ( actual ) ) ) + "\n" ; }
|
org . junit . Assert . assertArrayEquals ( printArrays ( input , size , expected , complement ) , expected , complement )
|
testNoSim ( ) { org . eclipse . debug . core . ILaunchConfigurationWorkingCopy wc = initConfig ( ) ; dynamicTab . getCacheButton ( ) . setSelection ( false ) ; tab . performApply ( wc ) ; wc . doSave ( ) ; "<AssertPlaceHolder>" ; } isValid ( org . eclipse . debug . core . ILaunchConfiguration ) { setErrorMessage ( null ) ; boolean result = false ; try { int alignment = launchConfig . getAttribute ( MemcheckLaunchConstants . ATTR_MEMCHECK_ALIGNMENT_VAL , MemcheckLaunchConstants . DEFAULT_MEMCHECK_ALIGNMENT_VAL ) ; result = ( alignment & ( alignment - 1 ) ) == 0 ; if ( ! result ) { setErrorMessage ( org . eclipse . linuxtools . internal . valgrind . memcheck . Messages . getString ( "MemcheckToolPage.Alignment_must_be_power_2" ) ) ; } else { if ( ( ( valgrindVersion ) == null ) || ( ( valgrindVersion . compareTo ( org . eclipse . linuxtools . internal . valgrind . memcheck . MemcheckToolPage . VER_3_4_0 ) ) >= 0 ) ) { boolean trackOrigins = launchConfig . getAttribute ( MemcheckLaunchConstants . ATTR_MEMCHECK_TRACKORIGINS , MemcheckLaunchConstants . DEFAULT_MEMCHECK_TRACKORIGINS ) ; if ( trackOrigins ) { result = launchConfig . getAttribute ( MemcheckLaunchConstants . ATTR_MEMCHECK_UNDEF , MemcheckLaunchConstants . DEFAULT_MEMCHECK_UNDEF ) ; if ( ! result ) { setErrorMessage ( org . eclipse . osgi . util . NLS . bind ( org . eclipse . linuxtools . internal . valgrind . memcheck . Messages . getString ( "MemcheckToolPage.Track_origins_needs_undef" ) , org . eclipse . linuxtools . internal . valgrind . memcheck . Messages . getString ( "MemcheckToolPage.Track_origins" ) , org . eclipse . linuxtools . internal . valgrind . memcheck . Messages . getString ( "MemcheckToolPage.undef_value_errors" ) ) ) ; } } } } } catch ( org . eclipse . core . runtime . CoreException e ) { ex = e ; } if ( ( ex ) != null ) { setErrorMessage ( ex . getLocalizedMessage ( ) ) ; } return result ; }
|
org . junit . Assert . assertFalse ( tab . isValid ( config ) )
|
todoWithoutDescription ( ) { com . airhacks . doit . business . reminders . entity . ToDo valid = new com . airhacks . doit . business . reminders . entity . ToDo ( "implement" , null , 10 ) ; "<AssertPlaceHolder>" ; } isValid ( ) { if ( ( this . priority ) <= 10 ) { return true ; } return ( ( this . description ) != null ) && ( ! ( this . description . isEmpty ( ) ) ) ; }
|
org . junit . Assert . assertTrue ( valid . isValid ( ) )
|
testPost_withNoInput_doesNothing ( ) { "<AssertPlaceHolder>" ; } postAndRemoveEvent ( org . edx . mobile . util . Version , java . util . Date , boolean ) { final de . greenrobot . event . EventBus eventBus = org . edx . mobile . event . NewVersionAvailableEventTest . getEventBus ( ) ; eventBus . removeStickyEvent ( org . edx . mobile . event . NewVersionAvailableEvent . class ) ; final org . edx . mobile . event . NewVersionAvailableEvent event = org . edx . mobile . event . NewVersionAvailableEventTest . postEvent ( newVersion , lastSupportedDate , isUnsupported ) ; if ( event != null ) { org . junit . Assert . assertTrue ( eventBus . removeStickyEvent ( event ) ) ; } return event ; }
|
org . junit . Assert . assertNull ( org . edx . mobile . event . NewVersionAvailableEventTest . postAndRemoveEvent ( null , null , false ) )
|
testReplaceAll ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "lexer<sp>grammar<sp>t;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; org . antlr . runtime . CharStream input = new org . antlr . runtime . ANTLRStringStream ( "abcccba" ) ; org . antlr . tool . Interpreter lexEngine = new org . antlr . tool . Interpreter ( g , input ) ; org . antlr . runtime . TokenRewriteStream tokens = new org . antlr . runtime . TokenRewriteStream ( lexEngine ) ; tokens . fill ( ) ; tokens . replace ( 0 , 6 , "x" ) ; java . lang . String result = tokens . toString ( ) ; java . lang . String expecting = "x" ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ( "[" + ( grammar . name ) ) + "." ) + ( name ) ) + ",index=" ) + ( index ) ) + ",line=" ) + ( tree . getToken ( ) . getLine ( ) ) ) + "]" ; }
|
org . junit . Assert . assertEquals ( expecting , result )
|
testGridWithEmptyLengthANDEmptyDelimiter_fail ( ) { expected = "Length<sp>Or<sp>Delimiter<sp>is<sp>mandatory" ; mixedSchemeGridRule . validate ( getSchema ( "" , "" ) , "schema" ) ; "<AssertPlaceHolder>" ; } getErrorMessage ( ) { return errorMessage ; }
|
org . junit . Assert . assertEquals ( expected , mixedSchemeGridRule . getErrorMessage ( ) )
|
testIsEmpty003 ( ) { javax . naming . ldap . LdapName ln = new javax . naming . ldap . LdapName ( "" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return data . isEmpty ( ) ; }
|
org . junit . Assert . assertTrue ( ln . isEmpty ( ) )
|
collectNearest_overlap ( ) { com . asakusafw . utils . graph . Graph < java . lang . Integer > graph = com . asakusafw . utils . graph . Graphs . newInstance ( ) ; com . asakusafw . utils . graph . GraphsTest . addPath ( graph , 1 , ( - 2 ) , 3 , ( - 4 ) , 1 ) ; java . util . Set < java . lang . Integer > results = com . asakusafw . utils . graph . Graphs . collectNearest ( graph , set ( 1 , ( - 2 ) ) , ( object ) -> object < 0 ) ; "<AssertPlaceHolder>" ; } is ( java . lang . CharSequence , int , char ) { return ( string . charAt ( column ) ) == value ; }
|
org . junit . Assert . assertThat ( results , is ( set ( ( - 2 ) , 3 , ( - 4 ) ) ) )
|
testShouldIndicateWhenATextAreaIsDisabled ( ) { driver . get ( pages . formPage ) ; org . openqa . selenium . qtwebkit . hybridtests . WebElement textArea = driver . findElement ( org . openqa . selenium . qtwebkit . hybridtests . By . xpath ( "//textarea[@id='notWorkingArea']" ) ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { java . lang . Object value = execute ( DriverCommand . IS_ELEMENT_ENABLED , com . google . common . collect . ImmutableMap . of ( "id" , id ) ) . getValue ( ) ; try { return ( ( java . lang . Boolean ) ( value ) ) ; } catch ( java . lang . ClassCastException ex ) { throw new org . openqa . selenium . WebDriverException ( ( "Returned<sp>value<sp>cannot<sp>be<sp>converted<sp>to<sp>Boolean:<sp>" + value ) , ex ) ; } }
|
org . junit . Assert . assertThat ( textArea . isEnabled ( ) , org . hamcrest . Matchers . is ( false ) )
|
shouldAcceptCountryAbsentFromBlacklist ( ) { given ( settings . getProperty ( ProtectionSettings . COUNTRIES_WHITELIST ) ) . willReturn ( java . util . Collections . emptyList ( ) ) ; given ( settings . getProperty ( ProtectionSettings . COUNTRIES_BLACKLIST ) ) . willReturn ( asList ( "ch" , "it" ) ) ; java . lang . String ip = "127.0.0.1" ; given ( geoIpService . getCountryCode ( ip ) ) . willReturn ( "BR" ) ; boolean result = validationService . isCountryAdmitted ( ip ) ; "<AssertPlaceHolder>" ; verify ( geoIpService ) . getCountryCode ( ip ) ; } isCountryAdmitted ( java . lang . String ) { if ( ( settings . getProperty ( ProtectionSettings . COUNTRIES_WHITELIST ) . isEmpty ( ) ) && ( settings . getProperty ( ProtectionSettings . COUNTRIES_BLACKLIST ) . isEmpty ( ) ) ) { return true ; } java . lang . String countryCode = geoIpService . getCountryCode ( hostAddress ) ; boolean isCountryAllowed = validateWhitelistAndBlacklist ( countryCode , ProtectionSettings . COUNTRIES_WHITELIST , ProtectionSettings . COUNTRIES_BLACKLIST ) ; fr . xephi . authme . ConsoleLogger . debug ( "Country<sp>code<sp>`{0}`<sp>for<sp>`{1}`<sp>is<sp>allowed:<sp>{2}" , countryCode , hostAddress , isCountryAllowed ) ; return isCountryAllowed ; }
|
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) )
|
multipleReaders ( ) { org . apache . jackrabbit . oak . plugins . index . lucene . LuceneIndexWriterFactory factory = newDirectoryFactory ( ) ; org . apache . jackrabbit . oak . plugins . index . lucene . writer . LuceneIndexWriter writer = factory . newInstance ( defn , builder , true ) ; writer . updateDocument ( "/content/en" , org . apache . jackrabbit . oak . plugins . index . lucene . TestUtil . newDoc ( "/content/en" ) ) ; writer . updateDocument ( "/libs/config" , org . apache . jackrabbit . oak . plugins . index . lucene . TestUtil . newDoc ( "/libs/config" ) ) ; writer . close ( 0 ) ; org . apache . jackrabbit . oak . plugins . index . lucene . reader . LuceneIndexReaderFactory readerFactory = new org . apache . jackrabbit . oak . plugins . index . lucene . reader . DefaultIndexReaderFactory ( mip , null ) ; java . util . List < org . apache . jackrabbit . oak . plugins . index . lucene . reader . LuceneIndexReader > readers = readerFactory . createReaders ( defn , builder . getNodeState ( ) , "/foo" ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
|
org . junit . Assert . assertEquals ( 2 , readers . size ( ) )
|
deadNodeTest ( ) { cloud . orbit . actors . Stage stage1 = createStage ( ) ; cloud . orbit . actors . Stage stage2 = createStage ( ) ; cloud . orbit . actors . test . ObserverDownTest . SomeObserverImpl observer1 = new cloud . orbit . actors . test . ObserverDownTest . SomeObserverImpl ( ) ; final cloud . orbit . actors . runtime . KryoSerializer cloner = new cloud . orbit . actors . runtime . KryoSerializer ( ) ; cloud . orbit . actors . test . ObserverDownTest . SomeObserver observerRef = cloner . clone ( stage1 . registerObserver ( cloud . orbit . actors . test . ObserverDownTest . SomeObserver . class , observer1 ) ) ; stage2 . bind ( ) ; observerRef . receiveMessage ( "bla" ) . get ( 10 , TimeUnit . SECONDS ) ; stage1 . stop ( ) . join ( ) ; stage2 . bind ( ) ; final java . lang . Throwable exception = observerRef . receiveMessage ( "bla" ) . handle ( ( r , e ) -> e ) . get ( 10 , TimeUnit . SECONDS ) ; "<AssertPlaceHolder>" ; } get ( java . lang . reflect . Method , cloud . orbit . tuples . Pair ) { cloud . orbit . concurrent . Task < ? > result = null ; final com . github . benmanes . caffeine . cache . Cache < cloud . orbit . actors . Addressable , com . github . benmanes . caffeine . cache . Cache < java . lang . String , cloud . orbit . concurrent . Task > > methodCache = getIfPresent ( method ) ; if ( methodCache != null ) { final com . github . benmanes . caffeine . cache . Cache < java . lang . String , cloud . orbit . concurrent . Task > addressableCache = methodCache . getIfPresent ( key . getLeft ( ) ) ; result = ( addressableCache != null ) ? addressableCache . getIfPresent ( key . getRight ( ) ) : null ; } return result ; }
|
org . junit . Assert . assertNotNull ( exception )
|
testGetRendererFactory_tabris ( ) { environment . setClient ( mock ( com . eclipsesource . tabris . TabrisClient . class ) ) ; com . eclipsesource . tabris . internal . ui . UIDescriptor uiDescriptor = new com . eclipsesource . tabris . internal . ui . UIDescriptor ( ) ; "<AssertPlaceHolder>" ; } getRendererFactory ( ) { if ( ( org . eclipse . rap . rwt . RWT . getClient ( ) ) instanceof com . eclipsesource . tabris . TabrisClient ) { return com . eclipsesource . tabris . internal . ui . RemoteRendererFactory . getInstance ( ) ; } return com . eclipsesource . tabris . internal . ui . web . WebRendererFactory . getInstance ( ) ; }
|
org . junit . Assert . assertTrue ( ( ( uiDescriptor . getRendererFactory ( ) ) instanceof com . eclipsesource . tabris . internal . ui . RemoteRendererFactory ) )
|
test_collectionTypeTypes_invalidNoGenerics ( ) { org . joda . beans . MetaProperty < java . util . List < org . joda . beans . sample . Address > > test = org . joda . beans . sample . Person . meta ( ) . addressList ( ) ; java . util . List < java . lang . Class < ? > > expected = java . util . Collections . emptyList ( ) ; "<AssertPlaceHolder>" ; } collectionTypeTypes ( org . joda . beans . MetaProperty , java . lang . Class ) { java . lang . reflect . Type type = org . joda . beans . JodaBeanUtils . extractType ( targetClass , prop , 1 , 0 ) ; return org . joda . beans . JodaBeanUtils . extractTypeClasses ( targetClass , type ) ; }
|
org . junit . Assert . assertEquals ( org . joda . beans . JodaBeanUtils . collectionTypeTypes ( test , org . joda . beans . sample . Person . class ) , expected )
|
shouldReadBackMultiplePartitionsOnReload ( ) { uk . co . probablyfine . dirty . Store < uk . co . probablyfine . dirty . testobjects . SmallObject > store = uk . co . probablyfine . dirty . Store . of ( uk . co . probablyfine . dirty . testobjects . SmallObject . class ) . from ( storeFile . getPath ( ) ) ; java . util . List < uk . co . probablyfine . dirty . testobjects . SmallObject > collect = rangeClosed ( 0 , 1000000 ) . mapToObj ( SmallObject :: new ) . collect ( java . util . stream . Collectors . toList ( ) ) ; collect . forEach ( store :: put ) ; store = uk . co . probablyfine . dirty . Store . of ( uk . co . probablyfine . dirty . testobjects . SmallObject . class ) . from ( storeFile . getPath ( ) ) ; "<AssertPlaceHolder>" ; } all ( ) { return entryRange ( 0 , size ( ) , ( i ) -> i + 1 ) ; }
|
org . junit . Assert . assertThat ( store . all ( ) . collect ( java . util . stream . Collectors . toList ( ) ) . size ( ) , org . hamcrest . core . Is . is ( collect . size ( ) ) )
|
testParse ( ) { com . turn . shapeshifter . NamedSchema schema = com . turn . shapeshifter . NamedSchema . of ( com . turn . shapeshifter . testing . TestProtos . Union . getDescriptor ( ) , "Union" ) . addConstant ( "kind" , "shapeshifter.Union" ) ; com . turn . shapeshifter . testing . TestProtos . Union union = com . turn . shapeshifter . testing . TestProtos . Union . newBuilder ( ) . setBoolValue ( true ) . setEnumValue ( SomeEnum . FIRST ) . setInt32Value ( 42 ) . setInt64Value ( 42L ) . setStringValue ( "text" ) . build ( ) ; com . turn . shapeshifter . SchemaRegistry registry = new com . turn . shapeshifter . SchemaRegistry ( ) ; registry . register ( schema ) ; com . fasterxml . jackson . databind . JsonNode json = new com . turn . shapeshifter . NamedSchemaSerializer ( schema ) . serialize ( union , registry ) ; com . turn . shapeshifter . testing . TestProtos . Union parsedUnion = com . turn . shapeshifter . testing . TestProtos . Union . newBuilder ( ) . mergeFrom ( new com . turn . shapeshifter . NamedSchemaParser ( schema ) . parse ( json , registry ) ) . build ( ) ; "<AssertPlaceHolder>" ; } parse ( com . fasterxml . jackson . databind . JsonNode , com . turn . shapeshifter . ReadableSchemaRegistry ) { com . google . protobuf . Message . Builder builder = com . google . protobuf . DynamicMessage . newBuilder ( schema . getDescriptor ( ) ) ; for ( Map . Entry < java . lang . String , com . google . protobuf . Descriptors . FieldDescriptor > fieldEntry : schema . getFields ( ) . entrySet ( ) ) { java . lang . String fieldName = schema . getPropertyName ( fieldEntry . getKey ( ) ) ; com . google . protobuf . Descriptors . FieldDescriptor field = fieldEntry . getValue ( ) ; if ( ( node . has ( fieldName ) ) && ( ! ( node . get ( fieldName ) . isNull ( ) ) ) ) { com . fasterxml . jackson . databind . JsonNode valueNode = node . get ( fieldName ) ; if ( field . isRepeated ( ) ) { if ( schema . getMappings ( ) . containsKey ( field . getName ( ) ) ) { parseMappedField ( registry , builder , fieldName , field , valueNode ) ; } else { parseRepeatedField ( registry , builder , fieldName , field , valueNode ) ; } } else { java . lang . Object value = parseValue ( valueNode , field , registry ) ; if ( value != null ) { builder . setField ( field , value ) ; } } } } return builder . build ( ) ; }
|
org . junit . Assert . assertEquals ( union , parsedUnion )
|
autobindHostToDerivedPoolForGuest ( ) { java . lang . String engProdId = "928" ; java . util . List < org . candlepin . model . Pool > pools = createDerivedPool ( engProdId ) ; java . util . List < org . candlepin . model . PoolQuantity > bestPools = autobindRules . selectBestPools ( consumer , new java . lang . String [ ] { engProdId } , pools , compliance , null , new java . util . HashSet ( ) , true ) ; "<AssertPlaceHolder>" ; } size ( ) { return virtUuidToConsumerMap . keySet ( ) . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , bestPools . size ( ) )
|
testBuildWithDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . admin . unit . type . AdminUnitType context = new org . lnu . is . domain . admin . unit . type . AdminUnitType ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "name" , org . lnu . is . pagination . OrderByType . DESC ) ; org . lnu . is . pagination . OrderBy orderBy2 = new org . lnu . is . pagination . OrderBy ( "abbrName" , org . lnu . is . pagination . OrderByType . DESC ) ; java . util . List < org . lnu . is . pagination . OrderBy > orders = java . util . Arrays . asList ( orderBy1 , orderBy2 ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>AdminUnitType<sp>e<sp>ORDER<sp>BY<sp>e.name<sp>DESC,<sp>e.abbrName<sp>DESC" ; org . lnu . is . pagination . MultiplePagedSearch < org . lnu . is . domain . admin . unit . type . AdminUnitType > pagedSearch = new org . lnu . is . pagination . MultiplePagedSearch ( ) ; pagedSearch . setEntity ( context ) ; pagedSearch . setOrders ( orders ) ; java . lang . String actualQuery = unit . build ( pagedSearch ) ; "<AssertPlaceHolder>" ; } setOrders ( java . util . List ) { this . orders = orders ; }
|
org . junit . Assert . assertEquals ( expected , actualQuery )
|
testEquals ( ) { org . jfree . data . time . Quarter q1 = new org . jfree . data . time . Quarter ( 2 , 2002 ) ; org . jfree . data . time . Quarter q2 = new org . jfree . data . time . Quarter ( 2 , 2002 ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertEquals ( q1 , q2 )
|
testConstructorWithEmptyCollectionOverwrites ( ) { com . couchbase . client . java . document . JsonDocument preExisting = com . couchbase . client . java . document . JsonDocument . create ( uuid , com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "test" , "value" ) ) ; com . couchbase . client . java . datastructures . collections . CouchbaseArraySetTest . ctx . bucket ( ) . upsert ( preExisting ) ; java . util . Set < java . lang . String > set = new com . couchbase . client . java . datastructures . collections . CouchbaseArraySet ( uuid , com . couchbase . client . java . datastructures . collections . CouchbaseArraySetTest . ctx . bucket ( ) , java . util . Collections . emptySet ( ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return resultList . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , set . size ( ) )
|
testInvokeVarargsCoerce16 ( ) { javax . el . BeanELResolver resolver = new javax . el . BeanELResolver ( ) ; javax . el . ELContext context = new javax . el . StandardELContext ( javax . el . ELManager . getExpressionFactory ( ) ) ; java . lang . Object result = resolver . invoke ( context , new javax . el . TesterBean ( javax . el . TestBeanELResolver . BEAN_NAME ) , "getNameVarargs" , new java . lang . Class < ? > [ ] { java . lang . String . class , java . lang . String . class , java . lang . String . class } , new java . lang . Object [ ] { "10" , "11" , "12" } ) ; "<AssertPlaceHolder>" ; } getExpressionFactory ( ) { return javax . el . Util . getExpressionFactory ( ) ; }
|
org . junit . Assert . assertEquals ( javax . el . TestBeanELResolver . BEAN_NAME , result )
|
getCreationTimeShouldFailWhenStoreIsClosed ( ) { org . neo4j . kernel . impl . store . MetaDataStore metaDataStore = newMetaDataStore ( ) ; metaDataStore . close ( ) ; try { metaDataStore . getCreationTime ( ) ; 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 ) )
|
toJSON_widthIsDefault_themeSerializedWithoutWidth ( ) { com . vaadin . addon . charts . model . style . ButtonTheme buttonTheme = new com . vaadin . addon . charts . model . style . ButtonTheme ( ) ; java . lang . String json = toJSON ( buttonTheme ) ; java . lang . String expected = "{}" ; "<AssertPlaceHolder>" ; } toJSON ( com . vaadin . addon . charts . model . AbstractConfigurationObject ) { try { return com . vaadin . addon . charts . util . ChartSerialization . jsonWriter . writeValueAsString ( object ) ; } catch ( com . fasterxml . jackson . core . JsonProcessingException e ) { e . printStackTrace ( ) ; throw new java . lang . RuntimeException ( ( "Error<sp>while<sp>serializing<sp>" + ( object . getClass ( ) . getSimpleName ( ) ) ) , e ) ; } }
|
org . junit . Assert . assertEquals ( expected , json )
|
nullPassThrough ( ) { "<AssertPlaceHolder>" ; } bandPassFilter ( java . lang . String , int , int , int , java . util . HashSet ) { com . addthis . hydra . data . filter . value . ValueFilterBandPass vfbp = new com . addthis . hydra . data . filter . value . ValueFilterBandPass ( ) ; try { java . lang . reflect . Field minHitsField = vfbp . getClass ( ) . getDeclaredField ( "minHits" ) ; minHitsField . setAccessible ( true ) ; minHitsField . set ( vfbp , minHits ) ; java . lang . reflect . Field maxHitsField = vfbp . getClass ( ) . getDeclaredField ( "maxHits" ) ; maxHitsField . setAccessible ( true ) ; maxHitsField . set ( vfbp , maxHits ) ; java . lang . reflect . Field maxKeysField = vfbp . getClass ( ) . getDeclaredField ( "maxKeys" ) ; maxKeysField . setAccessible ( true ) ; maxKeysField . set ( vfbp , maxKeys ) ; java . lang . reflect . Field whitelistField = vfbp . getClass ( ) . getDeclaredField ( "whitelist" ) ; whitelistField . setAccessible ( true ) ; whitelistField . set ( vfbp , whitelist ) ; } catch ( java . lang . NoSuchFieldException e ) { } catch ( java . lang . IllegalAccessException e ) { } return vfbp . filter ( val ) ; }
|
org . junit . Assert . assertEquals ( null , bandPassFilter ( null , 0 , 0 , 0 , null ) )
|
testProofOfWork ( ) { com . google . litecoin . core . NetworkParameters params = com . google . litecoin . core . NetworkParameters . unitTests ( ) ; com . google . litecoin . core . Block block = new com . google . litecoin . core . Block ( params , com . google . litecoin . core . BlockTest . blockBytes ) ; block . setNonce ( 12346 ) ; try { block . verify ( ) ; org . junit . Assert . fail ( ) ; } catch ( com . google . litecoin . core . VerificationException e ) { } block . setDifficultyTarget ( Block . EASIEST_DIFFICULTY_TARGET ) ; block . verify ( ) ; block . setNonce ( 1 ) ; try { block . verify ( ) ; org . junit . Assert . fail ( ) ; } catch ( com . google . litecoin . core . VerificationException e ) { } block . solve ( ) ; block . verify ( ) ; "<AssertPlaceHolder>" ; } getNonce ( ) { maybeParseHeader ( ) ; return nonce ; }
|
org . junit . Assert . assertEquals ( block . getNonce ( ) , 5 )
|
testFuzzyWithIntKeys ( ) { org . apache . hadoop . hbase . client . Table table = getDefaultTable ( ) ; java . util . List < byte [ ] > keys = java . util . Collections . unmodifiableList ( java . util . Arrays . asList ( com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 10 , 126 , 5 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 10 , 127 , 5 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 10 , 128 , 5 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 10 , 129 , 5 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 11 , 126 , 7 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 11 , 127 , 7 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 11 , 128 , 7 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 11 , 129 , 7 ) ) ) ; java . util . List < org . apache . hadoop . hbase . client . Put > puts = new java . util . ArrayList ( ) ; for ( byte [ ] key : keys ) { puts . add ( new org . apache . hadoop . hbase . client . Put ( key ) . addColumn ( SharedTestEnvRule . COLUMN_FAMILY , org . apache . hadoop . hbase . util . Bytes . toBytes ( 0 ) , org . apache . hadoop . hbase . util . Bytes . toBytes ( 0 ) ) ) ; } table . put ( puts ) ; org . apache . hadoop . hbase . filter . FuzzyRowFilter filter = new org . apache . hadoop . hbase . filter . FuzzyRowFilter ( com . google . common . collect . ImmutableList . of ( org . apache . hadoop . hbase . util . Pair . newPair ( com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 0 , 126 , 0 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createFuzzyMask ( 0 , 1 , 0 , 1 ) ) , org . apache . hadoop . hbase . util . Pair . newPair ( com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 0 , 127 , 0 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createFuzzyMask ( 0 , 1 , 0 , 1 ) ) , org . apache . hadoop . hbase . util . Pair . newPair ( com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 0 , 128 , 0 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createFuzzyMask ( 0 , 1 , 0 , 1 ) ) , org . apache . hadoop . hbase . util . Pair . newPair ( com . google . cloud . bigtable . hbase . AbstractTestFilters . createKey ( 5 , 0 , 129 , 0 ) , com . google . cloud . bigtable . hbase . AbstractTestFilters . createFuzzyMask ( 0 , 1 , 0 , 1 ) ) ) ) ; org . apache . hadoop . hbase . client . Scan scan = new org . apache . hadoop . hbase . client . Scan ( ) . setFilter ( filter ) ; java . util . Set < java . lang . String > expectedKeys = new java . util . HashSet ( keys . size ( ) ) ; for ( byte [ ] key : keys ) { expectedKeys . add ( toFuzzyKeyString ( key ) ) ; } java . util . Set < java . lang . String > actualKeys = new java . util . HashSet ( keys . size ( ) ) ; try ( org . apache . hadoop . hbase . client . ResultScanner scanner = table . getScanner ( scan ) ) { for ( org . apache . hadoop . hbase . client . Result result : scanner ) { actualKeys . add ( toFuzzyKeyString ( org . apache . hadoop . hbase . CellUtil . cloneRow ( result . rawCells ( ) [ 0 ] ) ) ) ; } } actualKeys . remove ( "[]" ) ; "<AssertPlaceHolder>" ; } toFuzzyKeyString ( byte [ ] ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( "[" ) ; java . lang . String prefix = "" ; int nValues = ( bytes . length ) / 4 ; for ( int i = 0 ; i < nValues ; i ++ ) { sb . append ( prefix ) . append ( org . apache . hadoop . hbase . util . Bytes . toInt ( bytes , ( 4 * i ) ) ) ; prefix = ",<sp>" ; } return sb . append ( "]" ) . toString ( ) ; }
|
org . junit . Assert . assertEquals ( expectedKeys , actualKeys )
|
testGetInteger ( ) { config . setProperty ( "x" , "1" ) ; "<AssertPlaceHolder>" ; } getInt ( java . lang . String ) { if ( containsKey ( key ) ) { return org . candlepin . common . config . PropertyConverter . toInteger ( getProperty ( key ) ) ; } else { org . candlepin . common . config . AbstractConfiguration . log . warn ( missingMessage ( key ) ) ; throw new java . util . NoSuchElementException ( doesNotMapMessage ( key ) ) ; } }
|
org . junit . Assert . assertEquals ( 1 , config . getInt ( "x" ) )
|
testOutputOfSpoon ( ) { final java . io . File sourceOutput = new java . io . File ( "./target/spoon/test/output/" ) ; final spoon . SpoonAPI launcher = new spoon . Launcher ( ) ; launcher . addInputResource ( "./src/test/java/spoon/test/api/testclasses" ) ; launcher . setSourceOutputDirectory ( sourceOutput ) ; launcher . run ( ) ; "<AssertPlaceHolder>" ; } run ( ) { spoon . compiler . Environment env = modelBuilder . getFactory ( ) . getEnvironment ( ) ; env . reportProgressMessage ( getVersionMessage ( ) ) ; env . reportProgressMessage ( "running<sp>Spoon..." ) ; env . reportProgressMessage ( "start<sp>processing..." ) ; long tstart = java . lang . System . currentTimeMillis ( ) ; buildModel ( ) ; process ( ) ; prettyprint ( ) ; if ( env . shouldCompile ( ) ) { modelBuilder . compile ( spoon . SpoonModelBuilder . InputType . CTTYPES ) ; } long t = java . lang . System . currentTimeMillis ( ) ; env . debugMessage ( ( ( "program<sp>spooning<sp>done<sp>in<sp>" + ( t - tstart ) ) + "<sp>ms" ) ) ; env . reportEnd ( ) ; }
|
org . junit . Assert . assertTrue ( sourceOutput . exists ( ) )
|
testLockGenerate ( ) { "<AssertPlaceHolder>" ; java . util . concurrent . locks . Lock lock = lockGenerator . gen ( DLockType . CUSTOMER_LOCK , "12345" ) ; checkLock ( lock , lockGenerator . getLockConfigMap ( ) . get ( DLockType . CUSTOMER_LOCK ) . intValue ( ) ) ; lock = lockGenerator . gen ( DLockType . CUSTOMER_LOCK , "12345" , 500 ) ; checkLock ( lock , 500 ) ; lock = lockGenerator . gen ( "FAKE_LOCK" , "A_TARGET" , 1 , TimeUnit . SECONDS ) ; checkLock ( lock , 1 ) ; }
|
org . junit . Assert . assertNotNull ( lockGenerator )
|
testSetTextWhenTextIsNotBlank ( ) { final java . lang . String expectedText = "text" ; constraintsText . classList = mock ( elemental2 . dom . DOMTokenList . class ) ; constraintsText . textContent = "something" ; view . setText ( expectedText ) ; final java . lang . String actualText = constraintsText . textContent ; verify ( constraintsText . classList ) . remove ( "none" ) ; "<AssertPlaceHolder>" ; } remove ( C extends org . kie . workbench . common . command . client . Command ) { throw new java . lang . UnsupportedOperationException ( "Remove<sp>not<sp>implemented<sp>yet." ) ; }
|
org . junit . Assert . assertEquals ( expectedText , actualText )
|
read ( ) { final READER reader1 = givenReader ( ) ; "<AssertPlaceHolder>" ; reader . setResourceLocation ( "this-file-does-not-exist.yml" ) ; exception . expect ( io . klerch . alexa . tellask . util . resource . NullPointerException . class ) ; reader . read ( io . klerch . alexa . tellask . util . resource . UtteranceReaderTest . LOCALE ) ; } read ( java . lang . String ) { org . apache . commons . lang3 . Validate . notNull ( locale , "Locale<sp>must<sp>not<sp>be<sp>blank." ) ; final java . lang . String resourcePath = ( ( getLeadingPath ( ) ) + locale ) + ( getResourceLocation ( ) ) ; final com . amazonaws . services . s3 . model . S3Object s3Object = s3Client . getObject ( bucketName , resourcePath ) ; org . apache . commons . lang3 . Validate . notNull ( s3Object , ( ( ( "Resource<sp>" + resourcePath ) + "<sp>does<sp>not<sp>exist<sp>in<sp>bucket<sp>with<sp>name<sp>" ) + ( bucketName ) ) ) ; return s3Object . getObjectContent ( ) ; }
|
org . junit . Assert . assertNotNull ( reader . read ( io . klerch . alexa . tellask . util . resource . UtteranceReaderTest . LOCALE ) )
|
randomWalk ( ) { org . semanticweb . elk . reasoner . incremental . OnOffVector < org . semanticweb . elk . owl . interfaces . ElkAxiom > changingAxioms = new org . semanticweb . elk . reasoner . incremental . OnOffVector < org . semanticweb . elk . owl . interfaces . ElkAxiom > ( 128 ) ; java . util . List < org . semanticweb . elk . owl . interfaces . ElkAxiom > staticAxioms = new java . util . ArrayList < org . semanticweb . elk . owl . interfaces . ElkAxiom > ( ) ; org . semanticweb . elk . reasoner . Reasoner incrementalReasoner ; long seed = org . semanticweb . elk . RandomSeedProvider . VALUE ; org . semanticweb . elk . reasoner . incremental . BaseRandomWalkIncrementalCorrectnessTest . LOGGER_ . info ( "Initial<sp>load<sp>of<sp>test<sp>axioms" ) ; java . io . InputStream stream = manifest . getInput ( ) . getUrl ( ) . openStream ( ) ; org . semanticweb . elk . loading . AxiomLoader fileLoader = new org . semanticweb . elk . loading . Owl2StreamLoader . Factory ( new org . semanticweb . elk . owl . parsing . javacc . Owl2FunctionalStyleParserFactory ( ) , stream ) . getAxiomLoader ( DummyInterruptMonitor . INSTANCE ) ; org . semanticweb . elk . loading . TestAxiomLoader trackingLoader = getAxiomTrackingLoader ( fileLoader , changingAxioms , staticAxioms ) ; incrementalReasoner = org . semanticweb . elk . reasoner . TestReasonerUtils . createTestReasoner ( trackingLoader ) ; incrementalReasoner . setAllowIncrementalMode ( true ) ; try { getRandomWalkRunner ( org . semanticweb . elk . reasoner . incremental . BaseRandomWalkIncrementalCorrectnessTest . MAX_ROUNDS , org . semanticweb . elk . reasoner . incremental . BaseRandomWalkIncrementalCorrectnessTest . ITERATIONS ) . run ( incrementalReasoner , changingAxioms , staticAxioms , seed ) ; } catch ( java . lang . Exception e ) { throw new org . semanticweb . elk . exceptions . ElkRuntimeException ( ( "Seed<sp>" + seed ) , e ) ; } finally { stream . close ( ) ; "<AssertPlaceHolder>" ; } } shutdown ( ) { return shutdown ( 1 , TimeUnit . MINUTES ) ; }
|
org . junit . Assert . assertTrue ( incrementalReasoner . shutdown ( ) )
|
testAddValue ( ) { org . jfree . data . time . TimePeriodValues tpvs = new org . jfree . data . time . TimePeriodValues ( "Test" ) ; tpvs . add ( new org . jfree . data . time . Year ( 1999 ) , new java . lang . Integer ( 1 ) ) ; int value = tpvs . getValue ( 0 ) . intValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( java . lang . Comparable ) { int index = getIndex ( key ) ; if ( index < 0 ) { throw new org . jfree . data . UnknownKeyException ( ( "Key<sp>not<sp>found:<sp>" + key ) ) ; } return getValue ( index ) ; }
|
org . junit . Assert . assertEquals ( 1 , value )
|
testDelegationException ( ) { com . documents4j . api . IInputStreamConsumer inputStreamConsumer = mock ( com . documents4j . api . IInputStreamConsumer . class ) ; java . io . File source = makeFile ( true ) ; com . documents4j . api . IFileConsumer fileConsumer = new com . documents4j . job . InputStreamConsumerToFileConsumer ( inputStreamConsumer ) ; java . lang . Exception exception = new java . lang . Exception ( ) ; fileConsumer . onException ( source , exception ) ; verify ( inputStreamConsumer , times ( 1 ) ) . onException ( exception ) ; verifyNoMoreInteractions ( inputStreamConsumer ) ; "<AssertPlaceHolder>" ; } onException ( java . io . File , java . lang . Exception ) { java . lang . String message = java . lang . String . format ( "Could<sp>not<sp>convert<sp>file<sp>'%s'.<sp>Did<sp>you<sp>provide<sp>a<sp>valid<sp>MS<sp>Word<sp>file<sp>as<sp>input?<sp>[%s:<sp>%s]" , inputName , e . getClass ( ) . getSimpleName ( ) , e . getMessage ( ) ) ; feedbackMessage = new org . apache . wicket . feedback . FeedbackMessage ( this , message , org . apache . wicket . feedback . FeedbackMessage . ERROR ) ; com . documents4j . demo . DemoPage . LOGGER . error ( message , e ) ; }
|
org . junit . Assert . assertFalse ( source . exists ( ) )
|
testWrite ( ) { org . apache . distributedlog . DLSN dlsn = mock ( org . apache . distributedlog . DLSN . class ) ; org . apache . distributedlog . LogRecord record = mock ( org . apache . distributedlog . LogRecord . class ) ; when ( underlying . write ( any ( org . apache . distributedlog . LogRecord . class ) ) ) . thenReturn ( java . util . concurrent . CompletableFuture . completedFuture ( dlsn ) ) ; "<AssertPlaceHolder>" ; verify ( underlying , times ( 1 ) ) . write ( eq ( record ) ) ; } result ( com . twitter . util . Future ) { return org . apache . distributedlog . util . FutureUtils . result ( result , com . twitter . util . Duration . Top ( ) ) ; }
|
org . junit . Assert . assertEquals ( dlsn , org . apache . distributedlog . util . FutureUtils . result ( writer . write ( record ) ) )
|
testMultipleWordQueryInTextFieldUsingScan2 ( ) { java . util . ArrayList < java . lang . String > names = new java . util . ArrayList < java . lang . String > ( java . util . Arrays . asList ( "tall<sp>fair" ) ) ; edu . uci . ics . texera . dataflow . dictionarymatcher . Dictionary dictionary = new edu . uci . ics . texera . dataflow . dictionarymatcher . Dictionary ( names ) ; java . util . List < edu . uci . ics . texera . api . span . Span > list1 = new java . util . ArrayList < edu . uci . ics . texera . api . span . Span > ( ) ; edu . uci . ics . texera . api . span . Span span1 = new edu . uci . ics . texera . api . span . Span ( "description" , 0 , 9 , "tall<sp>fair" , "Tall<sp>Fair" ) ; list1 . add ( span1 ) ; edu . uci . ics . texera . api . schema . Attribute [ ] schemaAttributes = new edu . uci . ics . texera . api . schema . Attribute [ ( TestConstants . ATTRIBUTES_PEOPLE . length ) + 1 ] ; for ( int count = 0 ; count < ( ( schemaAttributes . length ) - 1 ) ; count ++ ) { schemaAttributes [ count ] = edu . uci . ics . texera . api . constants . test . TestConstants . ATTRIBUTES_PEOPLE [ count ] ; } schemaAttributes [ ( ( schemaAttributes . length ) - 1 ) ] = edu . uci . ics . texera . dataflow . dictionarymatcher . DictionaryMatcherTest . RESULTS_ATTRIBUTE ; edu . uci . ics . texera . api . field . IField [ ] fields2 = new edu . uci . ics . texera . api . field . IField [ ] { new edu . uci . ics . texera . api . field . StringField ( "christian<sp>john<sp>wayne" ) , new edu . uci . ics . texera . api . field . StringField ( "rock<sp>bale" ) , new edu . uci . ics . texera . api . field . IntegerField ( 42 ) , new edu . uci . ics . texera . api . field . DoubleField ( 5.99 ) , new edu . uci . ics . texera . api . field . DateField ( new java . text . SimpleDateFormat ( "MM-dd-yyyy" ) . parse ( "01-13-1974" ) ) , new edu . uci . ics . texera . api . field . TextField ( "Tall<sp>Fair" ) , new edu . uci . ics . texera . api . field . ListField < edu . uci . ics . texera . api . span . Span > ( list1 ) } ; edu . uci . ics . texera . api . tuple . Tuple tuple2 = new edu . uci . ics . texera . api . tuple . Tuple ( new edu . uci . ics . texera . api . schema . Schema ( schemaAttributes ) , fields2 ) ; java . util . List < edu . uci . ics . texera . api . tuple . Tuple > expectedResults = new java . util . ArrayList < edu . uci . ics . texera . api . tuple . Tuple > ( ) ; expectedResults . add ( tuple2 ) ; java . util . List < java . lang . String > attributeNames = java . util . Arrays . asList ( TestConstants . FIRST_NAME , TestConstants . LAST_NAME , TestConstants . DESCRIPTION ) ; java . util . List < edu . uci . ics . texera . api . tuple . Tuple > returnedResults = edu . uci . ics . texera . dataflow . dictionarymatcher . DictionaryMatcherTestHelper . getQueryResults ( edu . uci . ics . texera . dataflow . dictionarymatcher . DictionaryMatcherTest . PEOPLE_TABLE , dictionary , attributeNames , KeywordMatchingType . SUBSTRING_SCANBASED ) ; boolean contains = edu . uci . ics . texera . api . utils . TestUtils . equals ( expectedResults , returnedResults ) ; "<AssertPlaceHolder>" ; } equals ( java . util . List , java . util . List ) { expectedResults = Tuple . Builder . removeIfExists ( expectedResults , SchemaConstants . _ID , SchemaConstants . PAYLOAD ) ; exactResults = Tuple . Builder . removeIfExists ( exactResults , SchemaConstants . _ID , SchemaConstants . PAYLOAD ) ; if ( ( expectedResults . size ( ) ) != ( exactResults . size ( ) ) ) return false ; return ( expectedResults . containsAll ( exactResults ) ) && ( exactResults . containsAll ( expectedResults ) ) ; }
|
org . junit . Assert . assertTrue ( contains )
|
testNoPrettify ( ) { java . lang . String input = "<html><head></head>\n" + ( ( ( ( ( ( ( ( ( ( ( "<body>\n" + "<table<sp>border=\"1\">\n" ) + ">\n" 0 ) + "<tr>\n" ) + "<td><sp><b>TEXT</b><sp></td>\n" ) + "<td><sp><b>TEXT</b><pre>\n" ) + "line\n" ) + ">\n" 2 ) + ">\n" 2 ) + "</pre>\n" ) + "</td>\n" ) + ">\n" 1 ) ; java . lang . String output = new hudson . plugins . emailext . plugins . CssInliner ( ) . process ( input ) ; "<AssertPlaceHolder>" ; } process ( java . lang . String ) { return clean ( new hudson . plugins . emailext . plugins . CssInliner ( ) . process ( input ) ) ; }
|
org . junit . Assert . assertEquals ( input , output )
|
testColumnStatsMerge ( ) { try ( org . apache . hadoop . hbase . client . Admin admin = com . splicemachine . hbase . StatisticsColumnMergeIT . connection . getAdmin ( ) ) { org . apache . hadoop . hbase . HRegionInfo regionInfo = com . splicemachine . hbase . StatisticsColumnMergeIT . regionInfoList . get ( 1 ) ; admin . splitRegion ( regionInfo . getEncodedNameAsBytes ( ) ) ; com . splicemachine . hbase . StatisticsColumnMergeIT . regionInfoList = admin . getTableRegions ( com . splicemachine . hbase . StatisticsColumnMergeIT . hTableName ) ; long totalWaitingTime = 1000 * 60 ; long waitUnit = 2000 ; while ( ( ( com . splicemachine . hbase . StatisticsColumnMergeIT . regionInfoList . size ( ) ) == 2 ) && ( totalWaitingTime > 0 ) ) { totalWaitingTime -= waitUnit ; java . lang . Thread . sleep ( waitUnit ) ; com . splicemachine . hbase . StatisticsColumnMergeIT . regionInfoList = admin . getTableRegions ( com . splicemachine . hbase . StatisticsColumnMergeIT . hTableName ) ; } com . splicemachine . hbase . PreparedStatement ps = com . splicemachine . hbase . StatisticsColumnMergeIT . methodWatcher . prepareStatement ( "explain<sp>select<sp>*<sp>from<sp>t<sp>a,<sp>t<sp>b<sp>where<sp>a.c2=b.c2" ) ; com . splicemachine . hbase . ResultSet rs = ps . executeQuery ( ) ; int count = 0 ; while ( rs . next ( ) ) { count ++ ; } "<AssertPlaceHolder>" ; } } next ( ) { return stepNext ( true ) ; }
|
org . junit . Assert . assertTrue ( ( count > 0 ) )
|
testLastHandlerEmptyPipeline ( ) { io . netty . channel . ChannelPipeline pipeline = new io . netty . channel . local . LocalChannel ( ) . pipeline ( ) ; "<AssertPlaceHolder>" ; } last ( ) { io . netty . channel . AbstractChannelHandlerContext last = tail . prev ; if ( last == ( head ) ) { return null ; } return last . handler ( ) ; }
|
org . junit . Assert . assertNull ( pipeline . last ( ) )
|
testResultUndefinedExceptionObjectScript ( ) { com . eclipsesource . v8 . V8Object result = v8 . executeObjectScript ( "" ) ; "<AssertPlaceHolder>" ; } isUndefined ( ) { return v8Object . executeBooleanFunction ( com . eclipsesource . v8 . debug . mirror . Mirror . IS_UNDEFINED , null ) ; }
|
org . junit . Assert . assertTrue ( result . isUndefined ( ) )
|
objectsReturnsItsArguments ( ) { java . lang . Object [ ] expected = new java . lang . Object [ ] { "x" , new nl . jqno . equalsverifier . testhelpers . types . Point ( 1 , 2 ) } ; java . lang . Object [ ] actual = nl . jqno . equalsverifier . internal . reflection . Util . objects ( "x" , new nl . jqno . equalsverifier . testhelpers . types . Point ( 1 , 2 ) ) ; "<AssertPlaceHolder>" ; } objects ( java . lang . Object , java . lang . Object , java . lang . Object ) { return new java . lang . Object [ ] { first , second , third } ; }
|
org . junit . Assert . assertArrayEquals ( expected , actual )
|
should_return_false_if_array_has_at_least_one_element_not_null ( ) { java . lang . String [ ] array = new java . lang . String [ ] { null , "Frodo" , null } ; "<AssertPlaceHolder>" ; } hasOnlyNullElements ( T [ ] ) { org . fest . util . Preconditions . checkNotNull ( array ) ; if ( ! ( org . fest . util . Arrays . hasElements ( array ) ) ) { return false ; } for ( T o : array ) { if ( o != null ) { return false ; } } return true ; }
|
org . junit . Assert . assertFalse ( org . fest . util . Arrays . hasOnlyNullElements ( array ) )
|
addSample ( ) { net . sourceforge . seqware . pipeline . runner . PluginRunner runner = new net . sourceforge . seqware . pipeline . runner . PluginRunner ( ) ; java . lang . String [ ] addSample = new java . lang . String [ ] { "sample" 0 , "net.sourceforge.seqware.pipeline.plugins.Metadata" , "--" , "--table" , "sample" , "--create" , "--field" , "title::New<sp>Test<sp>Sample" , "--field" , "description::This<sp>is<sp>a<sp>test<sp>description" , "--field" , "experiment_accession::29831" , "--field" , "organism_id::26" } ; runner . run ( addSample ) ; "<AssertPlaceHolder>" ; } run ( java . lang . String [ ] ) { setupOptions ( ) ; try { options = parser . parse ( args ) ; } catch ( joptsimple . OptionException e ) { getSyntax ( parser , e . getMessage ( ) ) ; } checkArguments ( ) ; setupConfig ( ) ; setupMetadata ( ) ; listPlugins ( ) ; setupPlugin ( ) ; invokePluginMethods ( ) ; }
|
org . junit . Assert . assertTrue ( true )
|
rendersSortOfProjectedFieldCorrectly ( ) { org . springframework . data . mongodb . core . aggregation . TypeBasedAggregationOperationContext context = getContext ( org . springframework . data . mongodb . core . aggregation . MeterData . class ) ; org . springframework . data . mongodb . core . aggregation . TypedAggregation < org . springframework . data . mongodb . core . aggregation . MeterData > agg = newAggregation ( org . springframework . data . mongodb . core . aggregation . MeterData . class , project ( ) . and ( "counterName" ) . as ( "counter" ) , sort ( Direction . ASC , "counter" ) ) ; org . bson . Document dbo = agg . toDocument ( "meterData" , context ) ; org . bson . Document sort = org . springframework . data . mongodb . core . aggregation . TypeBasedAggregationOperationContextUnitTests . getPipelineElementFromAggregationAt ( dbo , 1 ) ; org . bson . Document definition = ( ( org . bson . Document ) ( sort . get ( "$sort" ) ) ) ; "<AssertPlaceHolder>" ; } getPipelineElementFromAggregationAt ( org . bson . Document , int ) { return ( ( java . util . List < org . bson . Document > ) ( agg . get ( "pipeline" ) ) ) . get ( index ) ; }
|
org . junit . Assert . assertThat ( definition . get ( "counter" ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 1 ) ) )
|
testConstructManual ( ) { edu . cmu . tetrad . test . Graph graph = edu . cmu . tetrad . test . GraphConverter . convert ( "X1-->X2,X1-->X3,X2-->X4,X3-->X4" ) ; edu . cmu . tetrad . test . Graph dag = new edu . cmu . tetrad . test . Dag ( graph ) ; edu . cmu . tetrad . bayes . BayesPm bayesPm = new edu . cmu . tetrad . bayes . BayesPm ( dag ) ; edu . cmu . tetrad . bayes . BayesIm bayesIm = new edu . cmu . tetrad . bayes . MlBayesIm ( bayesPm ) ; edu . cmu . tetrad . test . Graph dag1 = bayesIm . getBayesPm ( ) . getDag ( ) ; edu . cmu . tetrad . test . Graph dag2 = edu . cmu . tetrad . test . GraphUtils . replaceNodes ( dag1 , graph . getNodes ( ) ) ; "<AssertPlaceHolder>" ; } getNodes ( ) { return getGraph ( ) . getNodes ( ) ; }
|
org . junit . Assert . assertEquals ( dag2 , graph )
|
testIsLocked ( ) { fleetManager . lock ( v1 ) ; "<AssertPlaceHolder>" ; } isLocked ( com . graphhopper . jsprit . core . problem . vehicle . Vehicle ) { return false ; }
|
org . junit . Assert . assertTrue ( fleetManager . isLocked ( v1 ) )
|
testPartLaunchWithSplashScreen ( ) { org . uberfire . mvp . PlaceRequest oz = new org . uberfire . mvp . impl . DefaultPlaceRequest ( "oz" ) ; org . uberfire . client . workbench . panels . impl . WorkbenchScreenActivity ozActivity = mock ( org . uberfire . client . workbench . panels . impl . WorkbenchScreenActivity . class ) ; when ( activityManager . getActivities ( oz ) ) . thenReturn ( singleton ( ( ( org . uberfire . client . workbench . panels . impl . Activity ) ( ozActivity ) ) ) ) ; when ( ozActivity . isType ( ActivityResourceType . SCREEN . name ( ) ) ) . thenReturn ( true ) ; final org . uberfire . client . workbench . panels . impl . SplashScreenActivity lollipopGuildActivity = mock ( org . uberfire . client . workbench . panels . impl . SplashScreenActivity . class ) ; when ( activityManager . getSplashScreenInterceptor ( oz ) ) . thenReturn ( lollipopGuildActivity ) ; when ( lollipopGuildActivity . isType ( ActivityResourceType . SPLASH . name ( ) ) ) . thenReturn ( true ) ; placeManager . goTo ( oz , ( ( org . uberfire . client . workbench . panels . impl . PanelDefinition ) ( null ) ) ) ; "<AssertPlaceHolder>" ; verify ( lollipopGuildActivity , never ( ) ) . onStartup ( any ( org . uberfire . mvp . PlaceRequest . class ) ) ; org . uberfire . client . workbench . panels . impl . InOrder inOrder = inOrder ( lollipopGuildActivity , newSplashScreenActiveEvent ) ; inOrder . verify ( lollipopGuildActivity ) . onOpen ( ) ; inOrder . verify ( newSplashScreenActiveEvent ) . fire ( any ( org . uberfire . client . workbench . panels . impl . NewSplashScreenActiveEvent . class ) ) ; } getActiveSplashScreens ( ) { throw new java . lang . UnsupportedOperationException ( "Not<sp>implemented." ) ; }
|
org . junit . Assert . assertTrue ( placeManager . getActiveSplashScreens ( ) . contains ( lollipopGuildActivity ) )
|
testComplexMembers ( ) { java . util . List < org . biopax . paxtools . pattern . Match > list = org . biopax . paxtools . pattern . Searcher . search ( model . getByID ( "http://pid.nci.nih.gov/biopaxpid_35409" ) , new org . biopax . paxtools . pattern . Pattern ( org . biopax . paxtools . pattern . constraint . Complex . class , org . biopax . paxtools . pattern . constraint . ConBox . complexMembers ( ) , "Complex" , "member" ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( lastIndex ) + 1 ; }
|
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 4 ) )
|
testHardwareAddressToBytes ( ) { byte [ ] result = org . eclipse . kura . core . util . NetUtil . hardwareAddressToBytes ( "01:23:45:67:89:AB" ) ; byte [ ] expected = new byte [ ] { 1 , 35 , 69 , 103 , ( ( byte ) ( 137 ) ) , ( ( byte ) ( 171 ) ) } ; "<AssertPlaceHolder>" ; } hardwareAddressToBytes ( java . lang . String ) { if ( ( macAddress == null ) || ( macAddress . isEmpty ( ) ) ) { return new byte [ ] { 0 , 0 , 0 , 0 , 0 , 0 } ; } java . lang . String [ ] items = macAddress . split ( "\\:" ) ; if ( ( items . length ) != 6 ) { throw new java . lang . IllegalArgumentException ( ( "mac<sp>is<sp>invalid:<sp>" + macAddress ) ) ; } byte [ ] bytes = new byte [ 6 ] ; for ( int i = 0 ; i < 6 ; i ++ ) { java . lang . String item = items [ i ] ; if ( ( item . isEmpty ( ) ) || ( ( item . length ( ) ) > 2 ) ) { throw new java . lang . IllegalArgumentException ( ( "mac<sp>is<sp>invalid:<sp>" + macAddress ) ) ; } try { bytes [ i ] = ( ( byte ) ( java . lang . Integer . parseInt ( items [ i ] , 16 ) ) ) ; } catch ( java . lang . NumberFormatException e ) { throw new java . lang . IllegalArgumentException ( ( "mac<sp>is<sp>invalid:<sp>" + macAddress ) , e ) ; } } return bytes ; }
|
org . junit . Assert . assertArrayEquals ( expected , result )
|
testRead_skipsWhitespace ( ) { org . eclipse . rap . rwt . internal . resources . ClientFilesReader reader = org . eclipse . rap . rwt . internal . resources . ClientFilesReader_Test . createReader ( "<sp>foo\t<sp>\n<sp>\tbar<sp>\n<sp>#<sp>comment<sp>" ) ; reader . read ( ) ; "<AssertPlaceHolder>" ; } getFiles ( ) { if ( ( files ) == null ) { files = new org . eclipse . ui . model . AdaptableList ( 0 ) ; } return files ; }
|
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "foo" , "bar" ) , reader . getFiles ( ) )
|
testComplement3 ( ) { org . antlr . v4 . runtime . misc . IntervalSet s = org . antlr . v4 . runtime . misc . IntervalSet . of ( 1 , 96 ) ; s . add ( 99 , Lexer . MAX_CHAR_VALUE ) ; java . lang . String expecting = "{97..98}" ; java . lang . String result = s . complement ( 1 , Lexer . MAX_CHAR_VALUE ) . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( getTarget ( ) ) + ":" ) + ( getTestName ( ) ) ; }
|
org . junit . Assert . assertEquals ( expecting , result )
|
getDdidTest ( ) { cloud . artik . model . ActionOut actionOut = new cloud . artik . model . ActionOut ( ) ; "<AssertPlaceHolder>" ; } getDdid ( ) { return ddid ; }
|
org . junit . Assert . assertNull ( actionOut . getDdid ( ) )
|
shouldReturnTrueForNullFromDate ( ) { com . qcadoo . commons . dateTime . DateRange dateRange = new com . qcadoo . commons . dateTime . DateRange ( null , new java . util . Date ( ) ) ; given ( orderDatesService . getCalculatedDates ( order ) ) . willReturn ( dateRange ) ; boolean result = orderHooks . checkOrderDates ( orderDD , order ) ; "<AssertPlaceHolder>" ; } checkOrderDates ( com . qcadoo . model . api . DataDefinition , com . qcadoo . model . api . Entity ) { com . qcadoo . commons . dateTime . DateRange orderDateRange = orderDatesService . getCalculatedDates ( order ) ; java . util . Date dateFrom = orderDateRange . getFrom ( ) ; java . util . Date dateTo = orderDateRange . getTo ( ) ; if ( ( ( dateFrom == null ) || ( dateTo == null ) ) || ( dateTo . after ( dateFrom ) ) ) { return true ; } order . addError ( orderDD . getField ( OrderFields . FINISH_DATE ) , "orders.validate.global.error.datesOrder" ) ; return false ; }
|
org . junit . Assert . assertTrue ( result )
|
parseCursorForLoop681 ( ) { java . lang . String code = loadTestResource ( "CursorForLoop681.pls" ) ; net . sourceforge . pmd . lang . plsql . ast . ASTInput input = parsePLSQL ( code ) ; "<AssertPlaceHolder>" ; } parsePLSQL ( java . lang . String ) { return parsePLSQL ( net . sourceforge . pmd . lang . LanguageRegistry . getLanguage ( PLSQLLanguageModule . NAME ) . getDefaultVersion ( ) , code ) ; }
|
org . junit . Assert . assertNotNull ( input )
|
testNieuweSituatieMetNederlandseNationaliteit ( ) { nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = bouwPersoonMetNationaliteit ( 987654321 , StatischeObjecttypeBuilder . NATIONALITEIT_NEDERLANDS . getWaarde ( ) ) ; java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > berichtEntiteiten = brby0163 . voerRegelUit ( null , nieuweSituatie , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , berichtEntiteiten . size ( ) )
|
testTrivialTwoWay_leftDFconflict2 ( ) { final org . eclipse . jgit . dircache . DirCache treeB = db . readDirCache ( ) ; final org . eclipse . jgit . dircache . DirCache treeO = db . readDirCache ( ) ; final org . eclipse . jgit . dircache . DirCache treeT = db . readDirCache ( ) ; { final org . eclipse . jgit . dircache . DirCacheBuilder b = treeB . builder ( ) ; final org . eclipse . jgit . dircache . DirCacheBuilder o = treeO . builder ( ) ; final org . eclipse . jgit . dircache . DirCacheBuilder t = treeT . builder ( ) ; b . add ( createEntry ( "d" , FileMode . REGULAR_FILE ) ) ; o . add ( createEntry ( "d" , FileMode . REGULAR_FILE , "o<sp>!" ) ) ; t . add ( createEntry ( "d/o" , FileMode . REGULAR_FILE ) ) ; b . finish ( ) ; o . finish ( ) ; t . finish ( ) ; } final org . eclipse . jgit . lib . ObjectInserter ow = db . newObjectInserter ( ) ; final org . eclipse . jgit . lib . ObjectId b = org . eclipse . jgit . merge . SimpleMergeTest . commit ( ow , treeB , new org . eclipse . jgit . lib . ObjectId [ ] { } ) ; final org . eclipse . jgit . lib . ObjectId o = org . eclipse . jgit . merge . SimpleMergeTest . commit ( ow , treeO , new org . eclipse . jgit . lib . ObjectId [ ] { b } ) ; final org . eclipse . jgit . lib . ObjectId t = org . eclipse . jgit . merge . SimpleMergeTest . commit ( ow , treeT , new org . eclipse . jgit . lib . ObjectId [ ] { b } ) ; org . eclipse . jgit . merge . Merger ourMerger = MergeStrategy . SIMPLE_TWO_WAY_IN_CORE . newMerger ( db ) ; boolean merge = ourMerger . merge ( new org . eclipse . jgit . lib . ObjectId [ ] { o , t } ) ; "<AssertPlaceHolder>" ; } merge ( boolean , org . eclipse . jgit . lib . AnyObjectId [ ] ) { sourceObjects = new org . eclipse . jgit . revwalk . RevObject [ tips . length ] ; for ( int i = 0 ; i < ( tips . length ) ; i ++ ) sourceObjects [ i ] = walk . parseAny ( tips [ i ] ) ; sourceCommits = new org . eclipse . jgit . revwalk . RevCommit [ sourceObjects . length ] ; for ( int i = 0 ; i < ( sourceObjects . length ) ; i ++ ) { try { sourceCommits [ i ] = walk . parseCommit ( sourceObjects [ i ] ) ; } catch ( org . eclipse . jgit . errors . IncorrectObjectTypeException err ) { sourceCommits [ i ] = null ; } } sourceTrees = new org . eclipse . jgit . revwalk . RevTree [ sourceObjects . length ] ; for ( int i = 0 ; i < ( sourceObjects . length ) ; i ++ ) sourceTrees [ i ] = walk . parseTree ( sourceObjects [ i ] ) ; try { boolean ok = mergeImpl ( ) ; if ( ok && flush ) inserter . flush ( ) ; return ok ; } finally { if ( flush ) inserter . close ( ) ; reader . close ( ) ; } }
|
org . junit . Assert . assertFalse ( merge )
|
testRender ( ) { com . liferay . dynamic . data . mapping . model . DDMForm ddmForm = com . liferay . dynamic . data . mapping . test . util . DDMFormTestUtil . createDDMForm ( ) ; com . liferay . dynamic . data . mapping . model . DDMFormField ddmFormField = com . liferay . dynamic . data . mapping . test . util . DDMFormTestUtil . createDDMFormField ( "Radio" , "Radio" , "radio" , "string" , false , false , false ) ; com . liferay . dynamic . data . mapping . model . DDMFormFieldOptions ddmFormFieldOptions = ddmFormField . getDDMFormFieldOptions ( ) ; ddmFormFieldOptions . addOptionLabel ( "value<sp>1" , LocaleUtil . US , "option<sp>1" ) ; ddmFormFieldOptions . addOptionLabel ( "value<sp>2" , LocaleUtil . US , "option<sp>2" ) ; ddmForm . addDDMFormField ( ddmFormField ) ; com . liferay . dynamic . data . mapping . storage . DDMFormValues ddmFormValues = com . liferay . dynamic . data . mapping . test . util . DDMFormValuesTestUtil . createDDMFormValues ( ddmForm ) ; com . liferay . dynamic . data . mapping . storage . DDMFormFieldValue ddmFormFieldValue = com . liferay . dynamic . data . mapping . test . util . DDMFormValuesTestUtil . createDDMFormFieldValue ( "Radio" , new com . liferay . dynamic . data . mapping . model . UnlocalizedValue ( "value<sp>1" ) ) ; ddmFormValues . addDDMFormFieldValue ( ddmFormFieldValue ) ; com . liferay . dynamic . data . mapping . form . field . type . radio . internal . RadioDDMFormFieldValueRenderer radioDDMFormFieldValueRenderer = createRadioDDMFormFieldValueRenderer ( ) ; "<AssertPlaceHolder>" ; } render ( javax . portlet . RenderRequest , javax . portlet . RenderResponse ) { try { return doRender ( renderRequest ) ; } catch ( com . liferay . portal . kernel . exception . PortalException pe ) { throw new javax . portlet . PortletException ( pe ) ; } }
|
org . junit . Assert . assertEquals ( "option<sp>1" , radioDDMFormFieldValueRenderer . render ( ddmFormFieldValue , LocaleUtil . US ) )
|
getValueForNonPublicClass ( ) { org . slim3 . util . aaa . Aaa aaa = org . slim3 . util . aaa . AaaFactory . newInstance ( ) ; aaa . setAaa ( "111" ) ; org . slim3 . util . PropertyDesc pd = new org . slim3 . util . PropertyDesc ( "aaa" , java . lang . String . class , aaa . getClass ( ) ) ; java . lang . reflect . Method m = aaa . getClass ( ) . getMethod ( "getAaa" ) ; pd . setReadMethod ( m ) ; "<AssertPlaceHolder>" ; } getValue ( java . lang . String ) { return getAttribute ( name ) ; }
|
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( pd . getValue ( aaa ) ) ) , org . hamcrest . CoreMatchers . is ( "111" ) )
|
testConstantExpressionAsDefaultValue ( ) { methodWatcher . executeUpdate ( "<sp>4<sp>|<sp>4<sp>|<sp>4<sp>|999<sp>|2017-11-06<sp>|" 2 ) ; sql = format ( "select<sp>*<sp>from<sp>t1<sp>--splice-properties<sp>useSpark=%s\n<sp>where<sp>e1<>DATE<sp>(\'2017-11-05\')" , useSparkString ) ; expected = "A1<sp>|B1<sp>|C1<sp>|D1<sp>|<sp>E1<sp>|\n" + ( ( ( ( "-----------------------------\n" + "<sp>4<sp>|<sp>4<sp>|<sp>4<sp>|999<sp>|2017-11-06<sp>|" 0 ) + "<sp>2<sp>|<sp>2<sp>|<sp>2<sp>|999<sp>|2017-11-06<sp>|\n" ) + "<sp>3<sp>|<sp>3<sp>|<sp>3<sp>|999<sp>|2017-11-06<sp>|\n" ) + "<sp>4<sp>|<sp>4<sp>|<sp>4<sp>|999<sp>|2017-11-06<sp>|" ) ; rs = methodWatcher . executeQuery ( sql ) ; "<AssertPlaceHolder>" ; rs . close ( ) ; } toString ( com . splicemachine . homeless . ResultSet ) { return com . splicemachine . homeless . TestUtils . FormattedResult . ResultFactory . convert ( "" , rs ) . toString ( ) . trim ( ) ; }
|
org . junit . Assert . assertEquals ( expected , TestUtils . FormattedResult . ResultFactory . toString ( rs ) )
|
empty ( ) { io . fabric8 . maven . docker . access . BuildOptions opts = new io . fabric8 . maven . docker . access . BuildOptions ( ) ; "<AssertPlaceHolder>" ; } getOptions ( ) { return options ; }
|
org . junit . Assert . assertEquals ( 0 , opts . getOptions ( ) . size ( ) )
|
sort ( ) { java . util . List < java . lang . String > paths = new java . util . ArrayList < java . lang . String > ( ) ; paths . add ( "/foo" ) ; paths . add ( "/foo/bar" ) ; paths . add ( "/bar/qux" ) ; paths . add ( "/" ) ; paths . add ( "/bar" ) ; java . util . Collections . sort ( paths , PathComparator . INSTANCE ) ; java . util . List < java . lang . String > expected = com . google . common . collect . Lists . newArrayList ( "/bar/qux" , "/foo/bar" , "/bar" , "/foo" , "/" ) ; "<AssertPlaceHolder>" ; } add ( org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeBits ) { if ( ( d ) instanceof org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeBits . ModifiableData ) { ( ( org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeBits . ModifiableData ) ( d ) ) . add ( other . d ) ; return this ; } else { throw new java . lang . UnsupportedOperationException ( "immutable<sp>privilege<sp>bits" ) ; } }
|
org . junit . Assert . assertEquals ( expected , paths )
|
testFind ( ) { testPersistentCreate ( ) ; org . powermock . api . easymock . PowerMock . resetAll ( ) ; datawave . webservice . mr . state . MapReduceStatePersisterTest . id = java . util . UUID . randomUUID ( ) . toString ( ) ; testPersistentCreate ( ) ; org . powermock . api . easymock . PowerMock . resetAll ( ) ; datawave . webservice . mr . state . MapReduceStatePersisterTest . id = java . util . UUID . randomUUID ( ) . toString ( ) ; testPersistentCreate ( ) ; org . powermock . api . easymock . PowerMock . resetAll ( ) ; org . easymock . EasyMock . expect ( ctx . getCallerPrincipal ( ) ) . andReturn ( principal ) ; java . util . HashMap < java . lang . String , java . lang . String > trackingMap = new java . util . HashMap ( ) ; expect ( connectionFactory . getTrackingMap ( org . easymock . EasyMock . anyObject ( ) ) ) . andReturn ( trackingMap ) ; expect ( connectionFactory . getConnection ( org . easymock . EasyMock . eq ( AccumuloConnectionFactory . Priority . ADMIN ) , org . easymock . EasyMock . eq ( trackingMap ) ) ) . andReturn ( connection ) ; connectionFactory . returnConnection ( connection ) ; replayAll ( ) ; datawave . webservice . results . mr . MapReduceInfoResponseList result = bean . find ( ) ; verifyAll ( ) ; "<AssertPlaceHolder>" ; } getResults ( ) { return results ; }
|
org . junit . Assert . assertEquals ( 3 , result . getResults ( ) . size ( ) )
|
mockConcreteClass ( ) { java . util . LinkedList < java . lang . String > mockedList = mock ( java . util . LinkedList . class ) ; when ( mockedList . get ( 0 ) ) . thenReturn ( "first" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { int count = jdbcTemplate . queryForInt ( "select<sp>count(1)<sp>from<sp>product_import<sp>where<sp>import_id<sp>=<sp>?" , importId ) ; if ( count == 0 ) { throw new org . springframework . dao . EmptyResultDataAccessException ( ( "No<sp>import<sp>with<sp>this<sp>ID:<sp>" + importId ) , 1 ) ; } java . lang . String status = "PENDING" ; java . lang . Long instanceId = jdbcTemplate . queryForLong ( "select<sp>job_instance_id<sp>from<sp>product_import<sp>where<sp>import_id<sp>=<sp>?" , importId ) ; org . springframework . batch . core . JobInstance jobInstance = jobExplorer . getJobInstance ( instanceId ) ; if ( jobInstance != null ) { org . springframework . batch . core . JobExecution lastJobExecution = jobExplorer . getJobExecutions ( jobInstance ) . get ( 0 ) ; status = lastJobExecution . getStatus ( ) . toString ( ) ; } return new com . manning . sbia . ch11 . integration . ProductImport ( importId , status ) ; }
|
org . junit . Assert . assertEquals ( "first" , mockedList . get ( 0 ) )
|
shouldEndWithEol ( ) { com . github . zafarkhaja . semver . expr . Token [ ] expected = new com . github . zafarkhaja . semver . expr . Token [ ] { new com . github . zafarkhaja . semver . expr . Token ( NUMERIC , "1" , 0 ) , new com . github . zafarkhaja . semver . expr . Token ( DOT , "." , 1 ) , new com . github . zafarkhaja . semver . expr . Token ( NUMERIC , "2" , 2 ) , new com . github . zafarkhaja . semver . expr . Token ( DOT , "." , 3 ) , new com . github . zafarkhaja . semver . expr . Token ( NUMERIC , "3" , 4 ) , new com . github . zafarkhaja . semver . expr . Token ( EOI , null , 5 ) } ; com . github . zafarkhaja . semver . expr . Lexer lexer = new com . github . zafarkhaja . semver . expr . Lexer ( ) ; com . github . zafarkhaja . semver . util . Stream < com . github . zafarkhaja . semver . expr . Token > stream = lexer . tokenize ( "1.2.3" ) ; "<AssertPlaceHolder>" ; } tokenize ( java . lang . String ) { java . util . List < com . github . zafarkhaja . semver . expr . Lexer . Token > tokens = new java . util . ArrayList < com . github . zafarkhaja . semver . expr . Lexer . Token > ( ) ; int tokenPos = 0 ; while ( ! ( input . isEmpty ( ) ) ) { boolean matched = false ; for ( com . github . zafarkhaja . semver . expr . Lexer . Token . Type tokenType : com . github . zafarkhaja . semver . expr . Lexer . Token . Type . values ( ) ) { java . util . regex . Matcher matcher = tokenType . pattern . matcher ( input ) ; if ( matcher . find ( ) ) { matched = true ; input = matcher . replaceFirst ( "" ) ; if ( tokenType != ( com . github . zafarkhaja . semver . expr . Lexer . Token . Type . WHITESPACE ) ) { tokens . add ( new com . github . zafarkhaja . semver . expr . Lexer . Token ( tokenType , matcher . group ( ) , tokenPos ) ) ; } tokenPos += matcher . end ( ) ; break ; } } if ( ! matched ) { throw new com . github . zafarkhaja . semver . expr . LexerException ( input ) ; } } tokens . add ( new com . github . zafarkhaja . semver . expr . Lexer . Token ( com . github . zafarkhaja . semver . expr . Lexer . Token . Type . EOI , null , tokenPos ) ) ; return new com . github . zafarkhaja . semver . util . Stream < com . github . zafarkhaja . semver . expr . Lexer . Token > ( tokens . toArray ( new com . github . zafarkhaja . semver . expr . Lexer . Token [ tokens . size ( ) ] ) ) ; }
|
org . junit . Assert . assertArrayEquals ( expected , stream . toArray ( ) )
|
testSystemTopics ( ) { io . cdap . cdap . common . conf . CConfiguration cConf = io . cdap . cdap . common . conf . CConfiguration . create ( ) ; cConf . set ( Constants . MessagingSystem . SYSTEM_TOPICS , "<sp>topic-1,<sp>topic_2<sp>,prefix:10,invalid.name" ) ; java . util . Set < io . cdap . cdap . proto . id . TopicId > topics = io . cdap . cdap . messaging . MessagingServiceUtils . getSystemTopics ( cConf , true ) ; java . util . Set < io . cdap . cdap . proto . id . TopicId > expected = new java . util . LinkedHashSet ( ) ; expected . add ( NamespaceId . SYSTEM . topic ( "topic-1" ) ) ; expected . add ( NamespaceId . SYSTEM . topic ( "topic_2" ) ) ; for ( int i = 0 ; i < 10 ; i ++ ) { expected . add ( NamespaceId . SYSTEM . topic ( ( "prefix" + i ) ) ) ; } "<AssertPlaceHolder>" ; } topic ( java . lang . String ) { return new io . cdap . cdap . proto . id . TopicId ( namespace , topic ) ; }
|
org . junit . Assert . assertEquals ( expected , topics )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.