input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testCheckBusinessObjectDataAvailabilityCollection ( ) { org . finra . herd . model . api . xml . BusinessObjectDataAvailabilityCollectionRequest businessObjectDataAvailabilityCollectionRequest = new org . finra . herd . model . api . xml . BusinessObjectDataAvailabilityCollectionRequest ( ) ; org . finra . herd . model . api . xml . BusinessObjectDataAvailabilityCollectionResponse businessObjectDataAvailabilityCollectionResponse = new org . finra . herd . model . api . xml . BusinessObjectDataAvailabilityCollectionResponse ( ) ; when ( businessObjectDataService . checkBusinessObjectDataAvailabilityCollection ( businessObjectDataAvailabilityCollectionRequest ) ) . thenReturn ( businessObjectDataAvailabilityCollectionResponse ) ; org . finra . herd . model . api . xml . BusinessObjectDataAvailabilityCollectionResponse result = businessObjectDataRestController . checkBusinessObjectDataAvailabilityCollection ( businessObjectDataAvailabilityCollectionRequest ) ; verify ( businessObjectDataService ) . checkBusinessObjectDataAvailabilityCollection ( businessObjectDataAvailabilityCollectionRequest ) ; verifyNoMoreInteractionsHelper ( ) ; "<AssertPlaceHolder>" ; } verifyNoMoreInteractionsHelper ( ) { verifyNoMoreInteractions ( awsHelper , javaPropertiesHelper , retryPolicyFactory , s3Operations ) ; } | org . junit . Assert . assertEquals ( businessObjectDataAvailabilityCollectionResponse , result ) |
test_splitByLiteral_fail1 ( ) { java . lang . String s = "a" + ( ( ( "-" + "b" ) + "-" ) + "c" ) ; java . util . List < java . lang . String > tokensExpected = java . util . Arrays . asList ( "a" , "b" , "c" , "d" ) ; java . util . List < java . lang . String > tokensPresent = bb . util . StringUtil . splitByLiteral ( s , "-" , 1 , false ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( tokensExpected , tokensPresent ) |
testFailWithMessage ( ) { try { specification . fail ( "msg" ) ; } catch ( final jdave . ExpectationFailedException e ) { "<AssertPlaceHolder>" ; } } fail ( java . lang . String ) { throw new jdave . ExpectationFailedException ( message ) ; } | org . junit . Assert . assertEquals ( "msg" , e . getMessage ( ) ) |
testPOS ( ) { edu . emory . clir . clearnlp . reader . TSVReader reader = new edu . emory . clir . clearnlp . reader . TSVReader ( 1 , 3 ) ; reader . open ( new java . io . FileInputStream ( "src/test/resources/dependency/dependency.cnlp" ) ) ; edu . emory . clir . clearnlp . dependency . DEPTree tree = reader . next ( ) ; java . lang . String str = tree . toString ( DEPNode :: toStringPOS ) ; reader = new edu . emory . clir . clearnlp . reader . TSVReader ( 0 , 1 ) ; reader . open ( new java . io . ByteArrayInputStream ( str . getBytes ( ) ) ) ; tree = reader . next ( ) ; "<AssertPlaceHolder>" ; } toString ( java . lang . String ) { java . lang . StringBuilder build = new java . lang . StringBuilder ( ) ; for ( edu . emory . clir . clearnlp . lexicon . verbnet . VNPredicate predicate : l_predicates ) { build . append ( delim ) ; build . append ( predicate . toString ( ) ) ; } return build . substring ( delim . length ( ) ) ; } | org . junit . Assert . assertEquals ( str , tree . toString ( DEPNode :: toStringPOS ) ) |
nonExistingFile ( ) { try { org . switchyard . extensions . wsdl . WSDLService . fromWSDL ( "unknown.wsdl" , "hello" ) ; } catch ( org . switchyard . extensions . wsdl . WSDLReaderException e ) { boolean exceptionMatches = e . getMessage ( ) . contains ( "SWITCHYARD012802" ) ; "<AssertPlaceHolder>" ; } } getMessage ( ) { return _message ; } | org . junit . Assert . assertTrue ( exceptionMatches ) |
shipmentViolationAtAct6_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . analysis . SolutionAnalyser analyser = new com . graphhopper . jsprit . core . analysis . SolutionAnalyser ( vrp , solution , vrp . getTransportCosts ( ) ) ; com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute route = solution . getRoutes ( ) . iterator ( ) . next ( ) ; java . lang . Boolean violation = analyser . hasBackhaulConstraintViolationAtActivity ( route . getActivities ( ) . get ( 5 ) , route ) ; "<AssertPlaceHolder>" ; } get ( com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute ) { com . graphhopper . jsprit . core . problem . constraint . List < com . graphhopper . jsprit . core . problem . constraint . Vehicle > vehicles = new com . graphhopper . jsprit . core . problem . constraint . ArrayList < com . graphhopper . jsprit . core . problem . constraint . Vehicle > ( ) ; vehicles . add ( route . getVehicle ( ) ) ; vehicles . addAll ( fleetManager . getAvailableVehicles ( route . getVehicle ( ) ) ) ; return vehicles ; } | org . junit . Assert . assertFalse ( violation ) |
testAddPhase ( ) { project . addPhase ( new com . lassekoskela . maven . bean . Phase ( "phase" , new java . util . ArrayList < com . lassekoskela . maven . bean . Goal > ( ) ) ) ; "<AssertPlaceHolder>" ; } getPhases ( ) { return phases ; } | org . junit . Assert . assertEquals ( project . getPhases ( ) . size ( ) , 1 ) |
saveConcept_shouldPassWhenSavingAConceptAfterRemovingAName ( ) { executeDataSet ( "org/openmrs/api/include/ConceptServiceTest-names.xml" ) ; org . openmrs . Concept concept = conceptService . getConcept ( 3000 ) ; concept . addDescription ( new org . openmrs . ConceptDescription ( "some<sp>description" , null ) ) ; "<AssertPlaceHolder>" ; concept . removeName ( concept . getSynonyms ( ) . iterator ( ) . next ( ) ) ; conceptService . saveConcept ( concept ) ; } getSynonyms ( ) { return getNames ( ) . stream ( ) . filter ( ConceptName :: isSynonym ) . collect ( java . util . stream . Collectors . toSet ( ) ) ; } | org . junit . Assert . assertFalse ( concept . getSynonyms ( ) . isEmpty ( ) ) |
connectWithoutShardInfo ( ) { redis . clients . jedis . Jedis jedis = new redis . clients . jedis . Jedis ( java . net . URI . create ( "rediss://localhost:6390" ) ) ; jedis . auth ( "foobared" ) ; "<AssertPlaceHolder>" ; jedis . close ( ) ; } ping ( ) { java . lang . String status = jedis . ping ( ) ; org . junit . Assert . assertEquals ( "PONG" , status ) ; } | org . junit . Assert . assertEquals ( "PONG" , jedis . ping ( ) ) |
shouldNotIncraseSizeWhenAddedNullCollection ( ) { int size = multipart . size ( ) ; multipart . addAll ( null ) ; "<AssertPlaceHolder>" ; } size ( ) { return parts . size ( ) ; } | org . junit . Assert . assertThat ( multipart . size ( ) , org . hamcrest . CoreMatchers . is ( size ) ) |
testNoRounds ( ) { System . out . println ( "No<sp>rounds:" ) ; log . print ( "Something<sp>happened" ) ; log . conclude ( ) ; java . lang . String output = log . getOutput ( ) ; System . out . println ( output ) ; "<AssertPlaceHolder>" ; } getOutput ( ) { return "Nothing,<sp>output<sp>was<sp>printed<sp>to<sp>screen." ; } | org . junit . Assert . assertEquals ( 3 , output . split ( "\n" ) . length ) |
shouldReturnFeatureEnabledGivenSpringExpressionWithBeanReferenceEvaluatesToTrue ( ) { java . lang . reflect . Method method = org . flips . fixture . TestClientFlipAnnotationsWithSpringExpressionAnnotations . class . getMethod ( "featureWithSpringExpressionBasedOnBeanReference" ) ; boolean result = flipAnnotationsStore . isFeatureEnabled ( method ) ; "<AssertPlaceHolder>" ; } isFeatureEnabled ( java . lang . reflect . Method ) { return store . getOrDefault ( method , flipConditionEvaluatorFactory . getEmptyFlipConditionEvaluator ( ) ) . evaluate ( ) ; } | org . junit . Assert . assertEquals ( true , result ) |
testInstance ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( unit ) |
testInlineRemoval ( ) { spimedb . util . geom . geodesic . Position p0 = new spimedb . util . geom . geodesic . Position ( 4 , 28 ) ; spimedb . util . geom . geodesic . Position p1 = new spimedb . util . geom . geodesic . Position ( ( - 17 ) , 42 ) ; double azimuth = p0 . getAzimuth ( p1 ) ; double distance = p0 . getAngularDistance ( p1 ) ; spimedb . util . geom . geodesic . Position pa = p0 . offset ( azimuth , ( 0.25 * distance ) ) ; spimedb . util . geom . geodesic . Position pb = p0 . offset ( azimuth , ( 0.5 * distance ) ) ; spimedb . util . geom . geodesic . Position pc = p0 . offset ( azimuth , ( 0.75 * distance ) ) ; spimedb . util . geom . geodesic . PositionCalculationParameters params = new spimedb . util . geom . geodesic . PositionCalculationParameters ( PositionCalculationType . Geodetic , 1.0E-12 , 1.0E-12 , false ) ; spimedb . util . geom . geodesic . Track track = new spimedb . util . geom . geodesic . tracks . GeodeticTrack ( params , p0 , pa , pb , pc , p1 ) ; "<AssertPlaceHolder>" ; } getPoints ( ) { return _points ; } | org . junit . Assert . assertEquals ( 2 , track . getPoints ( ) . size ( ) ) |
testDebugChemObject_IChemObject ( ) { org . openscience . cdk . interfaces . IChemObject chemObject1 = new org . openscience . cdk . debug . DebugChemObject ( ) ; org . openscience . cdk . interfaces . IChemObject chemObject = new org . openscience . cdk . debug . DebugChemObject ( chemObject1 ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( chemObject ) |
unapply_A$Tuple2 ( ) { com . m3 . scalaflavor4j . Pair < java . lang . String , java . lang . Integer > tuple = com . m3 . scalaflavor4j . Pair . apply ( "1" , 2 ) ; com . m3 . scalaflavor4j . Option < com . m3 . scalaflavor4j . Tuple2 < java . lang . String , java . lang . Integer > > actual = com . m3 . scalaflavor4j . Pair . unapply ( tuple ) ; "<AssertPlaceHolder>" ; } isDefined ( ) { return false ; } | org . junit . Assert . assertThat ( actual . isDefined ( ) , org . hamcrest . CoreMatchers . is ( true ) ) |
average_from_list_of_numbers_with_google_guava ( ) { double average = com . google . common . math . DoubleMath . mean ( com . levelup . java . collections . AverageFromList . NUMBERS_FOR_AVERAGE ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 10 , average , 0 ) |
fromObjectIntProcedure ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Integer > result = org . eclipse . collections . impl . list . mutable . FastList . newList ( ) ; org . eclipse . collections . api . block . procedure . primitive . ObjectIntProcedure < java . lang . Integer > objectIntProcedure = org . eclipse . collections . impl . block . factory . ObjectIntProcedures . fromProcedure ( result :: add ) ; objectIntProcedure . value ( 1 , 0 ) ; "<AssertPlaceHolder>" ; } newListWith ( E [ ] ) { return new org . eclipse . collections . impl . list . mutable . FastList < > ( elements ) ; } | org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1 ) , result ) |
testChemObject ( ) { org . openscience . cdk . interfaces . IChemObject chemObject = new org . openscience . cdk . ChemObject ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( chemObject ) |
testVoerRegelUitMetLandOverlijdenCodeAndersDanNederland ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = maakNieuweSituatie ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . overlijden . BRBY0906Test . BUITENLAND ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > resultaat = brby0906 . voerRegelUit ( null , nieuweSituatie , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) ) |
extractLastName_1 ( ) { final java . lang . String actual = org . erlide . util . Util . extractLastName ( "aaa.ddd.ccc" ) ; final java . lang . String expected = "ccc" ; "<AssertPlaceHolder>" ; } extractLastName ( java . lang . String ) { final int i = qualifiedName . lastIndexOf ( '.' ) ; if ( i == ( - 1 ) ) { return qualifiedName ; } return qualifiedName . substring ( ( i + 1 ) ) ; } | org . junit . Assert . assertEquals ( expected , actual ) |
getTransportFromPickResult_dropPickResult_failFast ( ) { io . grpc . Status status = io . grpc . Status . UNAVAILABLE ; io . grpc . LoadBalancer . PickResult pickResult = io . grpc . LoadBalancer . PickResult . withDrop ( status ) ; io . grpc . internal . ClientTransport transport = io . grpc . internal . GrpcUtil . getTransportFromPickResult ( pickResult , false ) ; "<AssertPlaceHolder>" ; io . grpc . internal . ClientStream stream = transport . newStream ( io . grpc . testing . TestMethodDescriptors . voidMethod ( ) , new io . grpc . Metadata ( ) , CallOptions . DEFAULT ) ; io . grpc . internal . ClientStreamListener listener = mock ( io . grpc . internal . ClientStreamListener . class ) ; stream . start ( listener ) ; verify ( listener ) . closed ( eq ( status ) , eq ( RpcProgress . DROPPED ) , any ( io . grpc . Metadata . class ) ) ; } getTransportFromPickResult ( io . grpc . LoadBalancer . PickResult , boolean ) { final io . grpc . internal . ClientTransport transport ; io . grpc . LoadBalancer . Subchannel subchannel = result . getSubchannel ( ) ; if ( subchannel != null ) { transport = ( ( io . grpc . internal . AbstractSubchannel ) ( subchannel ) ) . obtainActiveTransport ( ) ; } else { transport = null ; } if ( transport != null ) { final io . grpc . ClientStreamTracer . Factory streamTracerFactory = result . getStreamTracerFactory ( ) ; if ( streamTracerFactory == null ) { return transport ; } return new io . grpc . internal . ClientTransport ( ) { @ io . grpc . internal . Override public io . grpc . internal . ClientStream newStream ( io . grpc . MethodDescriptor < ? , ? > method , io . grpc . Metadata headers , io . grpc . CallOptions callOptions ) { return transport . newStream ( method , headers , callOptions . withStreamTracerFactory ( streamTracerFactory ) ) ; } @ io . grpc . internal . Override public void ping ( io . grpc . internal . PingCallback callback , java . util . concurrent . Executor executor ) { transport . ping ( callback , executor ) ; } @ io . grpc . internal . Override public io . grpc . InternalLogId getLogId ( ) { return transport . getLogId ( ) ; } @ io . grpc . internal . Override public com . google . common . util . concurrent . ListenableFuture < io . grpc . InternalChannelz . SocketStats > getStats ( ) { return transport . getStats ( ) ; } } ; } if ( ! ( result . getStatus ( ) . isOk ( ) ) ) { if ( result . isDrop ( ) ) { return new io . grpc . internal . FailingClientTransport ( result . getStatus ( ) , io . grpc . internal . ClientStreamListener . RpcProgress . DROPPED ) ; } if ( ! isWaitForReady ) { return new io . grpc . internal . FailingClientTransport ( result . getStatus ( ) , io . grpc . internal . ClientStreamListener . RpcProgress . PROCESSED ) ; } } return null ; } | org . junit . Assert . assertNotNull ( transport ) |
testGutsRecord_bug45640 ( ) { org . apache . poi . hssf . model . InternalSheet sheet = org . apache . poi . hssf . model . InternalSheet . createSheet ( ) ; sheet . addRow ( new org . apache . poi . hssf . record . RowRecord ( 0 ) ) ; sheet . addRow ( new org . apache . poi . hssf . record . RowRecord ( 1 ) ) ; sheet . groupRowRange ( 0 , 1 , true ) ; sheet . toString ( ) ; java . util . List < org . apache . poi . hssf . record . RecordBase > recs = sheet . getRecords ( ) ; int count = 0 ; for ( int i = 0 ; i < ( recs . size ( ) ) ; i ++ ) { if ( ( recs . get ( i ) ) instanceof org . apache . poi . hssf . record . GutsRecord ) { count ++ ; } } if ( count == 2 ) { throw new junit . framework . AssertionFailedError ( "Identified<sp>bug<sp>45640" ) ; } "<AssertPlaceHolder>" ; } get ( org . apache . poi . hssf . usermodel . HSSFSheet ) { org . apache . poi . hssf . model . TestDrawingAggregate . DrawingAggregateInfo info = null ; org . apache . poi . hssf . model . InternalSheet isheet = org . apache . poi . hssf . usermodel . HSSFTestHelper . getSheetForTest ( sheet ) ; java . util . List < org . apache . poi . hssf . record . RecordBase > records = isheet . getRecords ( ) ; for ( int i = 0 ; i < ( records . size ( ) ) ; i ++ ) { org . apache . poi . hssf . record . RecordBase rb = records . get ( i ) ; if ( ( rb instanceof org . apache . poi . hssf . record . DrawingRecord ) && ( info == null ) ) { info = new org . apache . poi . hssf . model . TestDrawingAggregate . DrawingAggregateInfo ( ) ; info . startRecordIndex = i ; info . endRecordIndex = i ; } else if ( ( info != null ) && ( ( ( ( ( rb instanceof org . apache . poi . hssf . record . DrawingRecord ) || ( rb instanceof org . apache . poi . hssf . record . ObjRecord ) ) || ( rb instanceof org . apache . poi . hssf . record . TextObjectRecord ) ) || ( rb instanceof org . apache . poi . hssf . record . ContinueRecord ) ) || ( rb instanceof org . apache . poi . hssf . record . NoteRecord ) ) ) { info . endRecordIndex = i ; } else { if ( rb instanceof org . apache . poi . hssf . record . EscherAggregate ) throw new java . lang . IllegalStateException ( ( "Drawing<sp>data<sp>already<sp>aggregated.<sp>" + "You<sp>should<sp>cal<sp>this<sp>method<sp>before<sp>the<sp>first<sp>invocation<sp>of<sp>HSSFSheet#getDrawingPatriarch()" ) ) ; if ( info != null ) break ; } } if ( info != null ) { info . aggRecords = new java . util . ArrayList ( records . subList ( info . startRecordIndex , ( ( info . endRecordIndex ) + 1 ) ) ) ; } return info ; } | org . junit . Assert . assertEquals ( 1 , count ) |
testTypeMutabilityCreateDuplicate ( ) { org . apache . chemistry . opencmis . inmemory . RepositoryServiceMutabilityTest . log . info ( "" ) ; org . apache . chemistry . opencmis . inmemory . RepositoryServiceMutabilityTest . log . info ( "starting<sp>testTypeMutabilityCreateDuplicate()<sp>..." ) ; org . apache . chemistry . opencmis . commons . definitions . TypeDefinition typeDefRef = createTypeForAddingAtRuntime ( ) ; java . lang . String repositoryId = getRepositoryId ( ) ; fRepSvc . createType ( repositoryId , typeDefRef , null ) ; checkAddingType ( repositoryId , typeDefRef , org . apache . chemistry . opencmis . commons . exceptions . CmisInvalidArgumentException . class ) ; org . apache . chemistry . opencmis . commons . definitions . TypeDefinition type = fRepSvc . getTypeDefinition ( repositoryId , typeDefRef . getId ( ) , null ) ; "<AssertPlaceHolder>" ; org . apache . chemistry . opencmis . inmemory . RepositoryServiceMutabilityTest . log . info ( "...<sp>testTypeMutabilityCreateDuplicate()<sp>finished." ) ; } getId ( ) { return getPropertyValue ( PropertyIds . OBJECT_ID ) ; } | org . junit . Assert . assertEquals ( typeDefRef . getId ( ) , type . getId ( ) ) |
testHashCode ( ) { java . lang . Object x = new java . lang . Object ( ) ; int actual = unit . hashCode ( x ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; result = ( prime * result ) + ( ( markExchange ) == null ? 0 : markExchange . hashCode ( ) ) ; result = ( prime * result ) + ( ( markMax ) == null ? 0 : markMax . hashCode ( ) ) ; result = ( prime * result ) + ( ( markMin ) == null ? 0 : markMin . hashCode ( ) ) ; result = ( prime * result ) + ( ( markScaleExchangeId ) == null ? 0 : markScaleExchangeId . hashCode ( ) ) ; result = ( prime * result ) + ( ( markScaleExchangeValueId ) == null ? 0 : markScaleExchangeValueId . hashCode ( ) ) ; result = ( prime * result ) + ( ( markScaleId ) == null ? 0 : markScaleId . hashCode ( ) ) ; result = ( prime * result ) + ( ( markScaleValueId ) == null ? 0 : markScaleValueId . hashCode ( ) ) ; return result ; } | org . junit . Assert . assertEquals ( x . hashCode ( ) , actual ) |
feedReturnsNewlyCreatedOrder ( ) { com . ewolff . microservice . order . logic . Order order = new com . ewolff . microservice . order . logic . Order ( ) ; order . setCustomer ( customerRepository . findAll ( ) . iterator ( ) . next ( ) ) ; orderRepository . save ( order ) ; com . rometools . rome . feed . atom . Feed feed = retrieveFeed ( ) ; boolean foundLinkToCreatedOrder = false ; java . util . List < com . rometools . rome . feed . atom . Entry > entries = feed . getEntries ( ) ; for ( com . rometools . rome . feed . atom . Entry entry : entries ) { for ( com . rometools . rome . feed . atom . Content content : entry . getContents ( ) ) { if ( content . getSrc ( ) . contains ( java . lang . Long . toString ( order . getId ( ) ) ) ) { foundLinkToCreatedOrder = true ; } } } "<AssertPlaceHolder>" ; } getId ( ) { return id ; } | org . junit . Assert . assertTrue ( foundLinkToCreatedOrder ) |
testPerspectiveReuseNoRecursiveIssue ( ) { when ( navigationServices . loadNavTree ( ) ) . thenReturn ( new org . dashbuilder . navigation . impl . NavTreeBuilder ( ) . group ( "groupC" , "" , "" , true ) . item ( "layout" , "" , "" , true , org . dashbuilder . navigation . workbench . NavWorkbenchCtx . perspective ( "B" ) ) . endGroup ( ) . build ( ) ) ; org . dashbuilder . navigation . layout . LayoutRecursionIssue info = layoutTemplateAnalyzer . analyzeRecursion ( layoutC ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return refList . isEmpty ( ) ; } | org . junit . Assert . assertTrue ( info . isEmpty ( ) ) |
testSetPkgId ( ) { System . out . println ( "Testing<sp>CKANCache.setPkgId" ) ; cache . setPkgId ( orgName , pkgName , pkgId ) ; "<AssertPlaceHolder>" ; } getPkgId ( java . lang . String , java . lang . String ) { return pkgMap . get ( ( ( orgName + "_" ) + pkgName ) ) ; } | org . junit . Assert . assertEquals ( pkgId , cache . getPkgId ( orgName , pkgName ) ) |
test23 ( ) { byte [ ] expected = new byte [ ] { ( ( byte ) ( 97 ) ) , ( ( byte ) ( 98 ) ) } ; java . lang . String str = new java . lang . String ( "ab" ) ; "<AssertPlaceHolder>" ; } build_eop_str ( java . lang . String ) { return com . github . mpjct . jmpjct . mysql . proto . Proto . build_eop_str ( str , false ) ; } | org . junit . Assert . assertArrayEquals ( expected , com . github . mpjct . jmpjct . mysql . proto . Proto . build_eop_str ( str ) ) |
jiwigoImageToPicture ( ) { fr . mael . jiwigo . om . Image jiwigoImage = new fr . mael . jiwigo . om . Image ( ) ; jiwigoImage . setName ( "Title" ) ; jiwigoImage . setFile ( "Title.jpg" ) ; jiwigoImage . setIdentifier ( 10214 ) ; jiwigoImage . setThumbnailUrl ( "http://piwigo.org/index.php?/path/to/picture/10214&miniature=true" ) ; jiwigoImage . setWidth ( 768 ) ; jiwigoImage . setHeight ( 1024 ) ; jiwigoImage . setUrl ( "http://piwigo.org/index.php?/path/to/picture/10214" ) ; net . dahanne . gallery . commons . model . Picture picture = net . dahanne . gallery . jiwigo . converter . JiwigoConvertUtils . jiwigoImageToPicture ( jiwigoImage ) ; net . dahanne . gallery . commons . model . Picture expectedPicture = new net . dahanne . gallery . commons . model . Picture ( ) ; expectedPicture . setId ( 10214L ) ; expectedPicture . setTitle ( "Title" ) ; expectedPicture . setFileName ( "Title.jpg" ) ; expectedPicture . setFileUrl ( "http://piwigo.org/index.php?/path/to/picture/10214" ) ; expectedPicture . setPublicUrl ( "http://piwigo.org/index.php?/path/to/picture/10214" ) ; expectedPicture . setWidth ( 768 ) ; expectedPicture . setHeight ( 1024 ) ; expectedPicture . setThumbUrl ( "http://piwigo.org/index.php?/path/to/picture/10214&miniature=true" ) ; "<AssertPlaceHolder>" ; } setThumbUrl ( java . lang . String ) { this . thumbUrl = thumUrl ; } | org . junit . Assert . assertEquals ( expectedPicture , picture ) |
validateId_Empty ( ) { "<AssertPlaceHolder>" ; } validateId ( java . lang . CharSequence ) { if ( ( id == null ) || ( ( id . length ( ) ) == 0 ) ) { return false ; } for ( int i = 0 , len = id . length ( ) ; i < len ; i ++ ) { char ch = id . charAt ( i ) ; if ( org . pentaho . metadata . util . Util . isUnacceptableCharacter ( ch ) ) { return false ; } } return true ; } | org . junit . Assert . assertFalse ( org . pentaho . metadata . util . Util . validateId ( "" ) ) |
getSingerType ( ) { com . aliyuncs . auth . BearerTokenSigner signer = new com . aliyuncs . auth . BearerTokenSigner ( ) ; "<AssertPlaceHolder>" ; } getSignerType ( ) { return "BEARERTOKEN" ; } | org . junit . Assert . assertEquals ( "BEARERTOKEN" , signer . getSignerType ( ) ) |
testRoundingUpTimestampInWhere ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . sql . ResultSet rs = conn . createStatement ( ) . executeQuery ( "SELECT<sp>*<sp>FROM<sp>t1<sp>WHERE<sp>ROUND(ts,<sp>'second')<sp>=<sp>to_date('2012-01-01<sp>14:25:29')" ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java . util . NoSuchElementException ( ) ; } return children . get ( ( ( position ) ++ ) ) ; } | org . junit . Assert . assertTrue ( rs . next ( ) ) |
testSerializeHeaderDelegate ( ) { javax . ws . rs . ext . RuntimeDelegate rd = javax . ws . rs . ext . RuntimeDelegate . getInstance ( ) ; javax . ws . rs . ext . RuntimeDelegate . HeaderDelegate < java . util . Date > dateHeaderDelegate = rd . createHeaderDelegate ( java . util . Date . class ) ; if ( dateHeaderDelegate == null ) { org . junit . Assert . fail ( "Date<sp>header<sp>delegate<sp>is<sp>not<sp>regestered<sp>in<sp>RuntimeDelegateImpl" ) ; } java . lang . String expectedDate = org . apache . wink . common . internal . providers . header . DateHeaderDelegateTest . RFC1123_DATE ; try { java . text . SimpleDateFormat dateFormat = new java . text . SimpleDateFormat ( org . apache . wink . common . internal . providers . header . DateHeaderDelegateTest . RFC1123_DATE_FORMAT_PATTERN , java . util . Locale . US ) ; java . util . Date expectedDate_RFC1123 = dateFormat . parse ( org . apache . wink . common . internal . providers . header . DateHeaderDelegateTest . RFC1123_DATE ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( ( "Failed<sp>to<sp>write<sp>date<sp>" + ( org . apache . wink . common . internal . providers . header . DateHeaderDelegateTest . RFC1123_DATE ) ) ) ; } try { dateHeaderDelegate . toString ( null ) ; org . junit . Assert . fail ( "Date<sp>is<sp>null-<sp>IllegalArgumentException<sp>must<sp>be<sp>thrown" ) ; } catch ( java . lang . IllegalArgumentException e ) { } } toString ( int ) { return write ( indentDepth ) ; } | org . junit . Assert . assertEquals ( expectedDate , dateHeaderDelegate . toString ( expectedDate_RFC1123 ) ) |
testSerialization ( ) { org . jfree . chart . renderer . category . GanttRenderer r1 = new org . jfree . chart . renderer . category . GanttRenderer ( ) ; r1 . setCompletePaint ( new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . red , 3.0F , 4.0F , java . awt . Color . blue ) ) ; r1 . setIncompletePaint ( new java . awt . GradientPaint ( 4.0F , 3.0F , java . awt . Color . red , 2.0F , 1.0F , java . awt . Color . blue ) ) ; org . jfree . chart . renderer . category . GanttRenderer r2 = ( ( org . jfree . chart . renderer . category . GanttRenderer ) ( org . jfree . chart . TestUtilities . serialised ( r1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ) { java . lang . Object result = null ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out ; try { out = new java . io . ObjectOutputStream ( buffer ) ; out . writeObject ( original ) ; out . close ( ) ; java . io . ObjectInput in = new java . io . ObjectInputStream ( new java . io . ByteArrayInputStream ( buffer . toByteArray ( ) ) ) ; result = in . readObject ( ) ; in . close ( ) ; } catch ( java . io . IOException e ) { throw new java . lang . RuntimeException ( e ) ; } catch ( java . lang . ClassNotFoundException e ) { throw new java . lang . RuntimeException ( e ) ; } return result ; } | org . junit . Assert . assertEquals ( r1 , r2 ) |
testBackWardSearchWholeWordsBeginDocument ( ) { java . lang . String findWhat = "Test1" ; java . lang . String docText = "Test1<sp>" ; int [ ] finds = find ( new org . netbeans . modules . editor . search . DocumentFinderTest . SearchBuilder ( ) . setWholeWordsBwdSearch ( findWhat ) , docText , docText . length ( ) , docText . length ( ) ) ; final int [ ] expectedFinds = new int [ ] { 0 , findWhat . length ( ) } ; "<AssertPlaceHolder>" ; } length ( ) { return toString ( ) . length ( ) ; } | org . junit . Assert . assertArrayEquals ( expectedFinds , finds ) |
testAddTextChunkIntTextChunk ( ) { technology . tabula . Line line = new technology . tabula . Line ( ) ; technology . tabula . TextElement tElement = new technology . tabula . TextElement ( 0 , 0 , 0 , 0 , org . apache . pdfbox . pdmodel . font . PDType1Font . HELVETICA_BOLD , 10 , "test" , 5 ) ; technology . tabula . TextChunk tChunk = new technology . tabula . TextChunk ( tElement ) ; line . addTextChunk ( 3 , tChunk ) ; "<AssertPlaceHolder>" ; } getTextElements ( ) { return textChunks ; } | org . junit . Assert . assertEquals ( "test" , line . getTextElements ( ) . get ( 3 ) . getText ( ) ) |
testGreaterOrEquals ( ) { createGreaterThanDataSet ( ) ; java . lang . String ejbql = "SELECT<sp>p<sp>FROM<sp>Painting<sp>p<sp>WHERE<sp>p.estimatedPrice<sp>>=<sp>:estimatedPrice" ; org . apache . cayenne . query . EJBQLQuery query = new org . apache . cayenne . query . EJBQLQuery ( ejbql ) ; query . setParameter ( "estimatedPrice" , new java . math . BigDecimal ( 4000 ) ) ; java . util . List < ? > objects = context . performQuery ( query ) ; "<AssertPlaceHolder>" ; } size ( ) { return neighbors . size ( ) ; } | org . junit . Assert . assertEquals ( 4 , objects . size ( ) ) |
getLabel_EmptyName ( ) { vMp1 . setName ( "" ) ; java . lang . String label = umpb . getLabel ( vMp1 ) ; "<AssertPlaceHolder>" ; } getMarketplaceId ( ) { return marketplaceId ; } | org . junit . Assert . assertEquals ( vMp1 . getMarketplaceId ( ) , label ) |
testListaConteudoDiretorioNotExist ( ) { try { this . obj . listaConteudoDiretorio ( ( ( br . com . senacrs . alp . aulas . trabalho13 . ListaDiretorioTest . FULL_TEST_DIR ) + "asdf" ) ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } } listaConteudoDiretorio ( java . lang . String ) { return null ; } | org . junit . Assert . assertTrue ( true ) |
given2DifferentValueTypesBuilder_whenNotEqual_thenCorrect ( ) { com . baeldung . autovalue . AutoValueMoneyWithBuilder m1 = com . baeldung . autovalue . AutoValueMoneyWithBuilder . builder ( ) . setAmount ( 5000 ) . setCurrency ( "USD" ) . build ( ) ; com . baeldung . autovalue . AutoValueMoneyWithBuilder m2 = com . baeldung . autovalue . AutoValueMoneyWithBuilder . builder ( ) . setAmount ( 5000 ) . setCurrency ( "GBP" ) . build ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ! ( obj instanceof com . baeldung . jackson . entities . MyPair ) ) { return false ; } com . baeldung . jackson . entities . MyPair other = ( ( com . baeldung . jackson . entities . MyPair ) ( obj ) ) ; if ( ( first ) == null ) { if ( ( other . first ) != null ) { return false ; } } else if ( ! ( first . equals ( other . first ) ) ) { return false ; } if ( ( second ) == null ) { if ( ( other . second ) != null ) { return false ; } } else if ( ! ( second . equals ( other . second ) ) ) { return false ; } return true ; } | org . junit . Assert . assertFalse ( m1 . equals ( m2 ) ) |
testParseNegativeBoth ( ) { java . lang . String source = ( ( ( "-1" + ( getDecimalCharacter ( ) ) ) + "2323<sp>-<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "4343i" ; org . apache . commons . math . complex . Complex expected = new org . apache . commons . math . complex . Complex ( ( - 1.2323 ) , ( - 1.4343 ) ) ; org . apache . commons . math . complex . Complex actual = complexFormat . parse ( source ) ; "<AssertPlaceHolder>" ; } parse ( com . google . javascript . jscomp . AbstractCompiler ) { try { com . google . javascript . jscomp . JsAst . logger_ . fine ( ( "Parsing:<sp>" + ( sourceFile . getName ( ) ) ) ) ; com . google . javascript . jscomp . parsing . ParserRunner . ParseResult result = com . google . javascript . jscomp . parsing . ParserRunner . parse ( sourceFile , sourceFile . getCode ( ) , compiler . getParserConfig ( ) , compiler . getDefaultErrorReporter ( ) , com . google . javascript . jscomp . JsAst . logger_ ) ; root = result . ast ; compiler . setOldParseTree ( sourceFile . getName ( ) , result . oldAst ) ; } catch ( java . io . IOException e ) { compiler . report ( com . google . javascript . jscomp . JSError . make ( AbstractCompiler . READ_ERROR , sourceFile . getName ( ) ) ) ; } if ( ( ( root ) == null ) || ( compiler . hasHaltingErrors ( ) ) ) { root = com . google . javascript . rhino . IR . script ( ) ; } else { compiler . prepareAst ( root ) ; } root . setStaticSourceFile ( sourceFile ) ; } | org . junit . Assert . assertEquals ( expected , actual ) |
test1 ( ) { org . test4j . fortest . beans . User user1 = new org . test4j . fortest . beans . User ( 1 , "John" , "Doe" ) ; org . test4j . fortest . beans . User user2 = new org . test4j . fortest . beans . User ( 1 , "John" , "Doe" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( user1 , user2 ) |
testClone ( ) { com . streamsets . pipeline . api . impl . IntegerTypeSupport ts = new com . streamsets . pipeline . api . impl . IntegerTypeSupport ( ) ; int o = 1 ; "<AssertPlaceHolder>" ; } clone ( java . lang . Object ) { java . util . List list = null ; if ( value != null ) { list = com . streamsets . pipeline . api . impl . ListTypeSupport . deepCopy ( ( ( java . util . List < com . streamsets . pipeline . api . Field > ) ( value ) ) ) ; } return list ; } | org . junit . Assert . assertSame ( o , ts . clone ( o ) ) |
testIDInvalid ( ) { tested . getDiagramSet ( ) . setId ( new org . kie . workbench . common . stunner . bpmn . definition . property . diagram . Id ( org . kie . workbench . common . stunner . cm . definition . CaseManagementDiagramTest . ID_INVALID ) ) ; java . util . Set < javax . validation . ConstraintViolation < org . kie . workbench . common . stunner . cm . definition . CaseManagementDiagram > > violations = this . validator . validate ( tested ) ; "<AssertPlaceHolder>" ; } size ( ) { return index . size ( ) ; } | org . junit . Assert . assertEquals ( 1 , violations . size ( ) ) |
shouldInjectAdvancedGeoSort ( ) { com . couchbase . client . java . search . SearchQuery p = new com . couchbase . client . java . search . SearchQuery ( null , null ) . sort ( sortGeoDistance ( 1.0 , 2.0 , "fname" ) . unit ( "km" ) . descending ( true ) ) ; com . couchbase . client . java . document . json . JsonObject result = com . couchbase . client . java . document . json . JsonObject . empty ( ) ; p . injectParams ( result ) ; com . couchbase . client . java . document . json . JsonObject expected = com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "sort" , com . couchbase . client . java . document . json . JsonArray . from ( com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "by" , "geo_distance" ) . put ( "field" , "fname" ) . put ( "desc" , true ) . put ( "unit" , "km" ) . put ( "location" , com . couchbase . client . java . document . json . JsonArray . from ( 1.0 , 2.0 ) ) ) ) ; "<AssertPlaceHolder>" ; } from ( com . couchbase . client . java . document . SerializableDocument , long ) { return com . couchbase . client . java . document . SerializableDocument . create ( doc . id ( ) , doc . expiry ( ) , doc . content ( ) , cas , doc . mutationToken ( ) ) ; } | org . junit . Assert . assertEquals ( expected , result ) |
testSuccessfulAnalysisReturnsNoJobErrors ( ) { databaseSetupGalaxyITService . setupSubmissionInDatabase ( 1L , sequenceFilePath , referenceFilePath , validIridaWorkflowId , false ) ; ca . corefacility . bioinformatics . irida . model . workflow . submission . AnalysisSubmission submission = runAnalysis ( ) ; java . util . List < ca . corefacility . bioinformatics . irida . model . workflow . analysis . JobError > errors = galaxyJobErrorsService . createNewJobErrors ( submission ) ; "<AssertPlaceHolder>" ; } createNewJobErrors ( ca . corefacility . bioinformatics . irida . model . workflow . submission . AnalysisSubmission ) { java . lang . String historyId = analysisSubmission . getRemoteAnalysisId ( ) ; com . github . jmchilton . blend4j . galaxy . beans . HistoryDetails historyDetails = historiesClient . showHistory ( historyId ) ; java . util . List < java . lang . String > erroredDatasetIds = historyDetails . getStateIds ( ) . get ( GalaxyWorkflowState . ERROR . toString ( ) ) ; java . util . List < com . github . jmchilton . blend4j . galaxy . beans . HistoryContentsProvenance > provenances = erroredDatasetIds . stream ( ) . map ( ( x ) -> historiesClient . showProvenance ( historyId , x ) ) . collect ( java . util . stream . Collectors . toList ( ) ) ; java . util . Map < java . lang . String , java . util . List < com . github . jmchilton . blend4j . galaxy . beans . HistoryContentsProvenance > > jobIdProvenancesMap = provenances . stream ( ) . collect ( java . util . stream . Collectors . groupingBy ( HistoryContentsProvenance :: getJobId ) ) ; java . util . List < ca . corefacility . bioinformatics . irida . model . workflow . analysis . JobError > jobErrors = new java . util . ArrayList ( ) ; for ( Map . Entry < java . lang . String , java . util . List < com . github . jmchilton . blend4j . galaxy . beans . HistoryContentsProvenance > > entry : jobIdProvenancesMap . entrySet ( ) ) { java . lang . String jobId = entry . getKey ( ) ; com . github . jmchilton . blend4j . galaxy . beans . JobDetails jobDetails = jobsClient . showJob ( jobId ) ; com . github . jmchilton . blend4j . galaxy . beans . HistoryContentsProvenance p = entry . getValue ( ) . iterator ( ) . next ( ) ; com . github . jmchilton . blend4j . galaxy . beans . Tool tool = toolsClient . showTool ( p . getToolId ( ) ) ; jobErrors . add ( new ca . corefacility . bioinformatics . irida . model . workflow . analysis . JobError ( analysisSubmission , jobDetails , p , tool ) ) ; } return jobErrors ; } | org . junit . Assert . assertTrue ( errors . isEmpty ( ) ) |
falseIfNull ( ) { "<AssertPlaceHolder>" ; } notEmpty ( java . lang . String ) { return ! ( com . khartec . waltz . common . StringUtilities . isEmpty ( x ) ) ; } | org . junit . Assert . assertFalse ( com . khartec . waltz . common . StringUtilities . notEmpty ( null ) ) |
testTakeWhileN_no_match ( ) { final net . hydromatic . linq4j . test . Queryable < net . hydromatic . linq4j . test . Linq4jTest . Department > queryableDepts = net . hydromatic . linq4j . test . Linq4j . asEnumerable ( net . hydromatic . linq4j . test . Linq4jTest . depts ) . asQueryable ( ) ; net . hydromatic . linq4j . test . Predicate2 < net . hydromatic . linq4j . test . Linq4jTest . Department , java . lang . Integer > function2 = net . hydromatic . linq4j . test . Functions . falsePredicate2 ( ) ; final net . hydromatic . linq4j . test . List < net . hydromatic . linq4j . test . Linq4jTest . Department > deptList = net . hydromatic . linq4j . test . QueryableDefaults . takeWhileN ( queryableDepts , net . hydromatic . linq4j . test . Expressions . lambda ( function2 ) ) . toList ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; } | org . junit . Assert . assertEquals ( 0 , deptList . size ( ) ) |
testListAccessorGroupAuthorized ( ) { org . sagebionetworks . repo . model . dataaccess . AccessorGroupRequest request = new org . sagebionetworks . repo . model . dataaccess . AccessorGroupRequest ( ) ; java . util . List < org . sagebionetworks . repo . model . dataaccess . AccessorGroup > result = new java . util . LinkedList < org . sagebionetworks . repo . model . dataaccess . AccessorGroup > ( ) ; when ( mockAuthorizationManager . isACTTeamMemberOrAdmin ( userInfo ) ) . thenReturn ( true ) ; when ( mockAccessApprovalDAO . listAccessorGroup ( null , null , null , ( ( org . sagebionetworks . repo . model . NextPageToken . DEFAULT_LIMIT ) + 1 ) , NextPageToken . DEFAULT_OFFSET ) ) . thenReturn ( result ) ; org . sagebionetworks . repo . model . dataaccess . AccessorGroupResponse response = manager . listAccessorGroup ( userInfo , request ) ; "<AssertPlaceHolder>" ; } getResults ( ) { return results ; } | org . junit . Assert . assertEquals ( result , response . getResults ( ) ) |
testOpenFile ( ) { org . esa . snap . dataio . envisat . EnvisatOrbitReader reader = new org . esa . snap . dataio . envisat . EnvisatOrbitReader ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( reader ) |
codeVitamCodeValidation ( ) { boolean error = false ; char c ; for ( final fr . gouv . vitam . common . error . VitamCode vitamCode : fr . gouv . vitam . common . error . VitamCode . values ( ) ) { if ( ( vitamCode . getItem ( ) . length ( ) ) != 2 ) { error = true ; fr . gouv . vitam . common . error . CodeTest . LOGGER . error ( ( ( fr . gouv . vitam . common . error . CodeTest . ERROR_CODE_VITAM ) + ( java . lang . String . format ( fr . gouv . vitam . common . error . CodeTest . MESSAGE_CODE_LENGTH , vitamCode . name ( ) , vitamCode . getItem ( ) ) ) ) ) ; } for ( int i = 0 ; i < ( vitamCode . getItem ( ) . length ( ) ) ; i ++ ) { c = vitamCode . getItem ( ) . charAt ( i ) ; if ( ( ( c < 48 ) || ( c > 57 ) ) && ( ( c < 65 ) || ( c > 90 ) ) ) { error = true ; fr . gouv . vitam . common . error . CodeTest . LOGGER . error ( ( ( fr . gouv . vitam . common . error . CodeTest . ERROR_CODE_VITAM ) + ( java . lang . String . format ( fr . gouv . vitam . common . error . CodeTest . MESSAGE_CODE_RANGE , vitamCode . getItem ( ) , vitamCode . name ( ) ) ) ) ) ; break ; } } } "<AssertPlaceHolder>" ; } name ( ) { return name ; } | org . junit . Assert . assertFalse ( error ) |
getVoGroupsCount ( ) { System . out . println ( ( ( cz . metacentrum . perun . core . entry . GroupsManagerEntryIntegrationTest . CLASS_NAME ) + "getVoGroupsCount" ) ) ; vo = setUpVo ( ) ; setUpGroup ( vo ) ; int count = groupsManager . getGroupsCount ( sess , vo ) ; "<AssertPlaceHolder>" ; } getGroupsCount ( cz . metacentrum . perun . core . api . PerunSession , cz . metacentrum . perun . core . api . Vo ) { return getGroupsManagerImpl ( ) . getGroupsCount ( sess , vo ) ; } | org . junit . Assert . assertEquals ( 2 , count ) |
itDelegatesToTheServiceManager ( ) { com . mixer . api . services . AbstractMixerService service = org . mockito . Mockito . mock ( com . mixer . api . services . AbstractMixerService . class ) ; com . mixer . api . MixerAPI mixer = new com . mixer . api . MixerAPI ( "clientId" ) ; mixer . register ( service ) ; "<AssertPlaceHolder>" ; } use ( java . lang . Class ) { return this . services . get ( service ) ; } | org . junit . Assert . assertEquals ( mixer . use ( service . getClass ( ) ) , service ) |
testTrustedHeaderLogin ( ) { java . util . HashMap < java . lang . String , java . lang . String > sharedState = new java . util . HashMap ( ) ; java . util . HashMap < java . lang . String , java . lang . String > options = new java . util . HashMap ( ) ; options . put ( "trustedHeaderLogin" , Boolean . TRUE . toString ( ) ) ; loginModule = new datawave . security . login . DatawaveCertRolesLoginModule ( ) ; loginModule . initialize ( new javax . security . auth . Subject ( ) , callbackHandler , sharedState , options ) ; boolean success = loginModule . login ( ) ; "<AssertPlaceHolder>" ; } login ( ) { boolean success = super . login ( ) ; int roleCount = 0 ; java . security . acl . Group [ ] roleSets = getRoleSets ( ) ; if ( roleSets != null ) { for ( java . security . acl . Group roleSet : roleSets ) { for ( java . util . Enumeration < ? extends java . security . Principal > e = roleSet . members ( ) ; e . hasMoreElements ( ) ; e . nextElement ( ) ) { ++ roleCount ; } } } if ( roleCount == 0 ) { loginOk = false ; success = false ; } return success ; } | org . junit . Assert . assertFalse ( success ) |
validate_statusIsNull_returnsFalse ( ) { boolean isValid = confirmation . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; } | org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( false ) ) |
testReplaceStringAndEncodeQueryParamFromBuild ( ) { java . lang . String expected = "http://localhost:8080?name1=x&name2=%20&name3=x+y&name4=23&name5=x%20y" ; java . net . URI uri = javax . ws . rs . core . UriBuilder . fromPath ( "http://localhost:8080" ) . queryParam ( "name" , "x=" , "y?" , "x<sp>y" , "&" ) . replaceQuery ( "name1=x&name2=%20&name3=x+y&name4=23&name5=x<sp>y" ) . build ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return name ; } | org . junit . Assert . assertEquals ( expected , uri . toString ( ) ) |
shouldTargetAWindowWhichMatchesTheUrlMatcher ( ) { com . redhat . darcy . webdriver . internal . WebDriverTarget target = com . redhat . darcy . webdriver . internal . WebDriverTargets . windowByUrl ( org . hamcrest . Matchers . equalTo ( "foo" ) ) ; org . openqa . selenium . WebDriver found = target . switchTo ( locator ) ; "<AssertPlaceHolder>" ; } getCurrentUrl ( ) { return attemptAndGet ( driver :: getCurrentUrl ) ; } | org . junit . Assert . assertThat ( found . getCurrentUrl ( ) , org . hamcrest . Matchers . is ( "foo" ) ) |
testGetFieldValueDoesntExist ( ) { java . lang . String value = fRootField . getFieldValue ( java . lang . String . class , "no-field" ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNull ( value ) |
testHTMLSuiteCanBeSet ( ) { configuration . setHTMLSuite ( true ) ; "<AssertPlaceHolder>" ; } isHTMLSuite ( ) { return htmlSuite ; } | org . junit . Assert . assertTrue ( configuration . isHTMLSuite ( ) ) |
testAlreadyVisitedPagesNotCrawable ( ) { try { java . net . URL url = new java . net . URL ( "http://jcertif.com/qui-sommes-nous" ) ; "<AssertPlaceHolder>" ; } catch ( java . net . MalformedURLException ex ) { java . util . logging . Logger . getLogger ( com . jcertif . offlinebox . web . crawling . CrawlingStrategyTest . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; org . junit . Assert . fail ( "Failed<sp>to<sp>instanciate<sp>the<sp>url<sp>tou<sp>test." ) ; } } isCrawable ( java . net . URL , int ) { if ( ( ( ( url != null ) && ( ! ( visitedUrls . contains ( url ) ) ) ) && ( isCrawlingAllowed ( url ) ) ) && ( depth < ( crawlerMaxDepth ) ) ) { visitedUrls . add ( url ) ; if ( url . getPath ( ) . endsWith ( "/" ) ) { try { visitedUrls . add ( new java . net . URL ( url . toString ( ) . substring ( 0 , ( ( url . toString ( ) . length ( ) ) - 1 ) ) ) ) ; } catch ( java . net . MalformedURLException ex ) { java . util . logging . Logger . getLogger ( com . jcertif . offlinebox . web . crawling . CrawlingStrategy . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } } return true ; } return false ; } | org . junit . Assert . assertTrue ( strategy . isCrawable ( url , 2 ) ) |
shouldEchoServerSendBinaryFrameWithPayloadNotFragmented ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; final java . util . List < java . nio . ByteBuffer > bufferList = new java . util . ArrayList ( ) ; context . checking ( new org . kaazing . gateway . transport . test . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any ( org . kaazing . mina . core . session . IoSessionEx . class ) ) ) ; oneOf ( handler ) . sessionOpened ( with ( any ( org . kaazing . mina . core . session . IoSessionEx . class ) ) ) ; oneOf ( handler ) . sessionClosed ( with ( any ( org . kaazing . mina . core . session . IoSessionEx . class ) ) ) ; allowing ( handler ) . messageReceived ( with ( any ( org . kaazing . mina . core . session . IoSessionEx . class ) ) , with ( any ( java . lang . Object . class ) ) ) ; will ( new org . jmock . lib . action . CustomAction ( "Capture<sp>messageReceived()<sp>parameters" ) { @ org . kaazing . gateway . transport . wsn . specification . ws . connector . Override public java . lang . Object invoke ( org . jmock . api . Invocation invocation ) throws java . lang . Throwable { java . lang . Object message = invocation . getParameter ( 1 ) ; org . kaazing . mina . core . buffer . IoBufferEx ioBuffer = ( ( org . kaazing . mina . core . buffer . IoBufferEx ) ( message ) ) ; bufferList . add ( ioBuffer . buf ( ) ) ; if ( ( bufferList . size ( ) ) == 1 ) { org . kaazing . gateway . transport . wsn . WsnSession wsnConnectSession = ( ( org . kaazing . gateway . transport . wsn . WsnSession ) ( invocation . getParameter ( 0 ) ) ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( 4096 ) ; for ( java . nio . ByteBuffer bb : bufferList ) { buffer . put ( bb ) ; } buffer . flip ( ) ; org . kaazing . mina . core . buffer . IoBufferAllocatorEx < ? extends org . kaazing . gateway . transport . ws . bridge . filter . WsBuffer > allocator = wsnConnectSession . getBufferAllocator ( ) ; org . kaazing . gateway . transport . ws . bridge . filter . WsBuffer wsBuffer = allocator . wrap ( buffer , IoBufferEx . FLAG_SHARED ) ; wsBuffer . setKind ( WsBuffer . Kind . BINARY ) ; wsnConnectSession . write ( wsBuffer ) ; } return null ; } } ) ; atMost ( 1 ) . of ( handler ) . exceptionCaught ( with ( any ( org . kaazing . mina . core . session . IoSessionEx . class ) ) , with ( org . hamcrest . core . AllOf . allOf ( any ( java . io . IOException . class ) , org . junit . internal . matchers . ThrowableMessageMatcher . hasMessage ( equal ( LoggingUtils . EARLY_TERMINATION_OF_IOSESSION_MESSAGE ) ) ) ) ) ; } } ) ; final org . apache . mina . core . future . ConnectFuture connectFuture = connector . connect ( "ws://localhost:8080/echo" , null , handler ) ; connectFuture . awaitUninterruptibly ( ) ; "<AssertPlaceHolder>" ; k3po . finish ( ) ; } isConnected ( ) { return channel . isConnected ( ) ; } | org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) ) |
testReadEmptyArray ( ) { byte [ ] expected = new byte [ ] { } ; java . io . DataInputStream in = new java . io . DataInputStream ( new java . io . ByteArrayInputStream ( expected ) ) ; com . amazonaws . proprot . TlvRaw tlv = adapter . read ( new com . amazonaws . proprot . InputAssist ( in , false ) , 0 ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertArrayEquals ( new byte [ ] { } , tlv . getValue ( ) ) |
testSetPriority ( ) { defaultIsisInterface . setPriority ( 1 ) ; resultInt = defaultIsisInterface . priority ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; } | org . junit . Assert . assertThat ( resultInt , org . hamcrest . CoreMatchers . is ( 1 ) ) |
testAssociateTenantVDCEdgeDhcpPolicy ( ) { boolean response = com . cloud . network . cisco . CiscoVnmcConnectionTest . connection . associateTenantVDCEdgeDhcpPolicy ( com . cloud . network . cisco . CiscoVnmcConnectionTest . tenantName , "Edge_Inside" ) ; "<AssertPlaceHolder>" ; } associateTenantVDCEdgeDhcpPolicy ( java . lang . String , java . lang . String ) { java . lang . String xml = com . cloud . network . cisco . CiscoVnmcConnectionImpl . VnmcXml . RESOLVE_EDGE_DHCP_POLICY . getXml ( ) ; java . lang . String service = com . cloud . network . cisco . CiscoVnmcConnectionImpl . VnmcXml . RESOLVE_EDGE_DHCP_POLICY . getService ( ) ; xml = replaceXmlValue ( xml , "cookie" , _cookie ) ; xml = replaceXmlValue ( xml , "dhcpdn" , getDnForDhcpPolicy ( tenantName , intfName ) ) ; xml = replaceXmlValue ( xml , "insideintf" , intfName ) ; java . lang . String response = sendRequest ( service , xml ) ; return verifySuccess ( response ) ; } | org . junit . Assert . assertTrue ( response ) |
testCastTimestampToLong ( ) { long [ ] longValues = new long [ 500 ] ; org . apache . hadoop . hive . ql . exec . vector . VectorizedRowBatch b = org . apache . hadoop . hive . ql . exec . vector . expressions . TestVectorMathFunctions . getVectorizedRowBatchTimestampInLongOut ( longValues ) ; org . apache . hadoop . hive . ql . exec . vector . TimestampColumnVector inV = ( ( org . apache . hadoop . hive . ql . exec . vector . TimestampColumnVector ) ( b . cols [ 0 ] ) ) ; org . apache . hadoop . hive . ql . exec . vector . LongColumnVector resultV = ( ( org . apache . hadoop . hive . ql . exec . vector . LongColumnVector ) ( b . cols [ 1 ] ) ) ; b . cols [ 0 ] . noNulls = true ; org . apache . hadoop . hive . ql . exec . vector . expressions . VectorExpression expr = new org . apache . hadoop . hive . ql . exec . vector . expressions . CastTimestampToLong ( 0 , 1 ) ; expr . setOutputTypeInfo ( TypeInfoFactory . longTypeInfo ) ; expr . setOutputDataTypePhysicalVariation ( DataTypePhysicalVariation . NONE ) ; expr . transientInit ( ) ; expr . evaluate ( b ) ; for ( int i = 0 ; i < ( longValues . length ) ; i ++ ) { long actual = resultV . vector [ i ] ; long timestampLong = inV . getTimestampAsLong ( i ) ; if ( actual != timestampLong ) { "<AssertPlaceHolder>" ; } } } getTimestampAsLong ( java . sql . Timestamp ) { return org . apache . hadoop . hive . ql . exec . vector . TimestampColumnVector . millisToSeconds ( timestamp . getTime ( ) ) ; } | org . junit . Assert . assertTrue ( false ) |
UponLeaving_EnteringActionsNotExecuted ( ) { com . github . oxo42 . stateless4j . StateRepresentation < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > stateRepresentation = CreateRepresentation ( State . B ) ; com . github . oxo42 . stateless4j . transitions . Transition < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > transition = new com . github . oxo42 . stateless4j . transitions . Transition ( State . A , State . B , Trigger . X ) ; actualTransition = null ; stateRepresentation . addEntryAction ( new com . github . oxo42 . stateless4j . delegates . Action2 < com . github . oxo42 . stateless4j . transitions . Transition < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > , java . lang . Object [ ] > ( ) { @ com . github . oxo42 . stateless4j . Override public void doIt ( com . github . oxo42 . stateless4j . transitions . Transition < com . github . oxo42 . stateless4j . State , com . github . oxo42 . stateless4j . Trigger > t , java . lang . Object [ ] a ) { actualTransition = t ; } } ) ; stateRepresentation . exit ( transition ) ; "<AssertPlaceHolder>" ; } exit ( com . github . oxo42 . stateless4j . transitions . Transition ) { assert transition != null : com . github . oxo42 . stateless4j . StateRepresentation . TRANSITION_IS_NULL ; if ( transition . isReentry ( ) ) { executeExitActions ( transition ) ; } else if ( ! ( includes ( transition . getDestination ( ) ) ) ) { executeExitActions ( transition ) ; if ( ( superstate ) != null ) { superstate . exit ( transition ) ; } } } | org . junit . Assert . assertNull ( actualTransition ) |
shutdown ( ) { final net . opentsdb . search . ElasticSearch plugin = new net . opentsdb . search . ElasticSearch ( ) ; plugin . initialize ( tsdb ) ; "<AssertPlaceHolder>" ; verify ( client , times ( 1 ) ) . close ( ) ; doThrow ( new java . io . IOException ( "Boo!" ) ) . when ( client ) . close ( ) ; com . stumbleupon . async . Deferred < java . lang . Object > deferred = plugin . shutdown ( ) ; try { deferred . join ( ) ; org . junit . Assert . fail ( "Expected<sp>IOException" ) ; } catch ( java . io . IOException e ) { } } shutdown ( ) { try { if ( ( http_client ) != null ) { http_client . close ( ) ; } return com . stumbleupon . async . Deferred . fromResult ( null ) ; } catch ( java . io . IOException e ) { return com . stumbleupon . async . Deferred . fromError ( e ) ; } } | org . junit . Assert . assertNull ( plugin . shutdown ( ) . join ( ) ) |
test ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; java . util . List < org . tests . model . basic . Order > allOrders = io . ebean . Ebean . find ( org . tests . model . basic . Order . class ) . findList ( ) ; io . ebean . Filter < org . tests . model . basic . Order > filter = io . ebean . Ebean . filter ( org . tests . model . basic . Order . class ) ; java . util . List < org . tests . model . basic . Order > newOrders = filter . eq ( "status" , Order . Status . NEW ) . filter ( allOrders ) ; "<AssertPlaceHolder>" ; } filter ( java . lang . Class ) { return null ; } | org . junit . Assert . assertNotNull ( newOrders ) |
testDefaultConstructor ( ) { net . holmes . core . backend . response . ConfigurationFolder folder = new net . holmes . core . backend . response . ConfigurationFolder ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( folder ) |
shouldLoadAllValuePropertiesWhenGetProperty ( ) { final java . lang . String group = uk . gov . gchq . gaffer . commonutil . TestGroups . EDGE ; final org . apache . accumulo . core . data . Key key = mock ( org . apache . accumulo . core . data . Key . class ) ; final org . apache . accumulo . core . data . Value value = mock ( org . apache . accumulo . core . data . Value . class ) ; final uk . gov . gchq . gaffer . accumulostore . key . AccumuloElementConverter converter = mock ( uk . gov . gchq . gaffer . accumulostore . key . AccumuloElementConverter . class ) ; final uk . gov . gchq . gaffer . store . schema . Schema schema = createSchema ( ) ; final uk . gov . gchq . gaffer . accumulostore . data . element . AccumuloEdgeValueLoader loader = new uk . gov . gchq . gaffer . accumulostore . data . element . AccumuloEdgeValueLoader ( group , key , value , converter , schema , false ) ; final uk . gov . gchq . gaffer . data . element . LazyProperties lazyProperties = mock ( uk . gov . gchq . gaffer . data . element . LazyProperties . class ) ; final uk . gov . gchq . gaffer . data . element . Properties properties = mock ( uk . gov . gchq . gaffer . data . element . Properties . class ) ; given ( converter . getPropertiesFromValue ( group , value ) ) . willReturn ( properties ) ; given ( properties . get ( TestPropertyNames . PROP_3 ) ) . willReturn ( "propValue3" ) ; final java . lang . Object property = loader . getProperty ( TestPropertyNames . PROP_3 , lazyProperties ) ; "<AssertPlaceHolder>" ; verify ( lazyProperties ) . putAll ( properties ) ; verify ( converter , never ( ) ) . getElementId ( key , false ) ; verify ( converter , never ( ) ) . getPropertiesFromColumnVisibility ( org . mockito . Mockito . eq ( group ) , org . mockito . Mockito . any ( byte [ ] . class ) ) ; verify ( converter , never ( ) ) . getPropertiesFromTimestamp ( org . mockito . Mockito . eq ( group ) , org . mockito . Mockito . anyLong ( ) ) ; verify ( converter , never ( ) ) . getPropertiesFromColumnQualifier ( org . mockito . Mockito . eq ( group ) , org . mockito . Mockito . any ( byte [ ] . class ) ) ; } getProperty ( java . lang . String , uk . gov . gchq . gaffer . data . element . Properties ) { if ( null == ( eDef ) ) { eDef = schema . getElement ( group ) ; if ( null == ( eDef ) ) { throw new java . lang . IllegalArgumentException ( ( ( "Element<sp>definition<sp>for<sp>" + ( group ) ) + "<sp>could<sp>not<sp>be<sp>found<sp>in<sp>the<sp>schema" ) ) ; } } final uk . gov . gchq . gaffer . data . element . Properties props ; if ( eDef . getGroupBy ( ) . contains ( name ) ) { props = elementConverter . getPropertiesFromColumnQualifier ( group , key . getColumnQualifierData ( ) . getBackingArray ( ) ) ; } else if ( name . equals ( schema . getVisibilityProperty ( ) ) ) { props = elementConverter . getPropertiesFromColumnVisibility ( group , key . getColumnVisibilityData ( ) . getBackingArray ( ) ) ; } else if ( name . equals ( timestampProperty ) ) { props = elementConverter . getPropertiesFromTimestamp ( group , key . getTimestamp ( ) ) ; } else { props = elementConverter . getPropertiesFromValue ( group , value ) ; } lazyProperties . putAll ( props ) ; return props . get ( name ) ; } | org . junit . Assert . assertEquals ( "propValue3" , property ) |
testSimpleNoDecimals ( ) { org . hipparchus . geometry . euclidean . threed . Vector3D c = new org . hipparchus . geometry . euclidean . threed . Vector3D ( 1 , 1 , 1 ) ; java . lang . String expected = "{1;<sp>1;<sp>1}" ; java . lang . String actual = vector3DFormat . format ( c ) ; "<AssertPlaceHolder>" ; } format ( org . hipparchus . geometry . Vector ) { return format ( vector , new java . lang . StringBuffer ( ) , new java . text . FieldPosition ( 0 ) ) . toString ( ) ; } | org . junit . Assert . assertEquals ( expected , actual ) |
testInsertData ( ) { int result = 0 ; java . lang . String queryString = "CONSTRUCT<sp>{?s<sp>?p<sp>?o}<sp>WHERE<sp>{?s<sp>?p<sp>?o}" ; try ( org . eclipse . rdf4j . repository . RepositoryConnection con = it . unibz . inf . ontop . rdf4j . repository . RDF4JConstructDescribeTest . REPOSITORY . getConnection ( ) ) { org . eclipse . rdf4j . query . GraphQuery graphQuery = con . prepareGraphQuery ( QueryLanguage . SPARQL , queryString ) ; org . eclipse . rdf4j . query . GraphQueryResult gresult = graphQuery . evaluate ( ) ; while ( gresult . hasNext ( ) ) { it . unibz . inf . ontop . rdf4j . repository . Statement s = gresult . next ( ) ; result ++ ; System . out . println ( s . toString ( ) ) ; } "<AssertPlaceHolder>" ; } } toString ( ) { return ( ( ( ( head ) + "<sp><-<sp>" ) + ( databaseAtoms ) ) + "<sp>AND<sp>" ) + ( filterAtoms ) ; } | org . junit . Assert . assertEquals ( 4 , result ) |
capacityViolationAfterAct3_shouldWork ( ) { jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analysis . SolutionAnalyser ( vrp , solution , new jsprit . core . problem . cost . TransportDistance ( ) { @ jsprit . core . analysis . Override public double getDistance ( jsprit . core . problem . Location from , jsprit . core . problem . Location to ) { return vrp . getTransportCosts ( ) . getTransportCost ( from , to , 0.0 , null , null ) ; } } ) ; jsprit . core . problem . solution . route . VehicleRoute route = solution . getRoutes ( ) . iterator ( ) . next ( ) ; jsprit . core . problem . solution . route . activity . TourActivity act = route . getActivities ( ) . get ( 2 ) ; jsprit . core . problem . Capacity cap = analyser . getCapacityViolationAfterActivity ( act , route ) ; for ( int i = 0 ; i < ( cap . getNuOfDimensions ( ) ) ; i ++ ) { "<AssertPlaceHolder>" ; } } | org . junit . Assert . assertTrue ( ( ( cap . get ( i ) ) == 0 ) ) |
testSetTakWSDL ( ) { final se . skl . skltpservices . npoadapter . router . Router router = new se . skl . skltpservices . npoadapter . router . Router ( ) ; router . setTakWSDL ( se . skl . skltpservices . npoadapter . router . RouterTest . TEMP_WSDL ) ; "<AssertPlaceHolder>" ; } getTakWSDL ( ) { return this . takWSDL ; } | org . junit . Assert . assertEquals ( se . skl . skltpservices . npoadapter . router . RouterTest . TEMP_WSDL , router . getTakWSDL ( ) . toString ( ) ) |
record_createOneObject_shouldReturnOneOperationRecorded ( ) { java . lang . Long lastOperationId = startRecording ( ) ; createRemoteCar ( ) ; java . lang . Long currentOperationId = stopRecording ( ) ; "<AssertPlaceHolder>" ; } stopRecording ( ) { com . jayway . restassured . response . Response response = given ( ) . delete ( getAbsoluteUri ( EndPoints . RECORD ) ) ; return gson . fromJson ( response . asString ( ) , com . arcbees . gaestudio . server . api . Long . class ) ; } | org . junit . Assert . assertEquals ( 1 , ( currentOperationId - lastOperationId ) ) |
detect_executionException ( ) { try { this . classUnderTest ( ) . detect ( ( each ) -> { throw new java . lang . RuntimeException ( "Execution<sp>exception" ) ; } ) ; } catch ( java . lang . RuntimeException e ) { java . util . concurrent . ExecutionException executionException = ( ( java . util . concurrent . ExecutionException ) ( e . getCause ( ) ) ) ; java . lang . RuntimeException runtimeException = ( ( java . lang . RuntimeException ) ( executionException . getCause ( ) ) ) ; "<AssertPlaceHolder>" ; } } detect ( org . eclipse . collections . api . block . predicate . Predicate ) { return this . getMutableCollection ( ) . detect ( predicate ) ; } | org . junit . Assert . assertEquals ( "Execution<sp>exception" , runtimeException . getMessage ( ) ) |
testSetFontListEmpty ( ) { org . eclipse . swt . widgets . FontDialog fontDialog = new org . eclipse . swt . widgets . FontDialog ( shell ) ; fontDialog . setFontList ( new org . eclipse . swt . graphics . FontData [ 0 ] ) ; "<AssertPlaceHolder>" ; } getFontList ( ) { org . eclipse . swt . graphics . FontData [ ] result ; synchronized ( lock ) { result = new org . eclipse . swt . graphics . FontData [ fontDatas . size ( ) ] ; fontDatas . toArray ( result ) ; } return result ; } | org . junit . Assert . assertNull ( fontDialog . getFontList ( ) ) |
parseServerIndexWithtoutNamespaceComponent ( ) { final int intValue = 0 ; final org . opcfoundation . ua . builtintypes . UnsignedInteger serverIndex = org . opcfoundation . ua . builtintypes . UnsignedInteger . valueOf ( 1 ) ; org . opcfoundation . ua . builtintypes . ExpandedNodeId namespaceIndex0 = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( serverIndex , 0 , intValue ) ; java . lang . String stringWithoutMiddlePart = ( ( "svr=" + serverIndex ) + ";i=" ) + intValue ; org . opcfoundation . ua . builtintypes . ExpandedNodeId parsedWithoutMiddlePart = org . opcfoundation . ua . builtintypes . ExpandedNodeId . parseExpandedNodeId ( stringWithoutMiddlePart ) ; "<AssertPlaceHolder>" ; } parseExpandedNodeId ( java . lang . String ) { java . lang . String [ ] parts = s . split ( ";" ) ; org . opcfoundation . ua . builtintypes . ExpandedNodeId . assertExpandedNodeIdParts ( s , parts , 1 ) ; int svrIndex = 0 ; int nsIndex = 0 ; org . opcfoundation . ua . builtintypes . NodeId nodeIdValue = org . opcfoundation . ua . builtintypes . NodeId . parseNodeId ( parts [ ( ( parts . length ) - 1 ) ] ) ; org . opcfoundation . ua . builtintypes . ExpandedNodeId returnable = null ; for ( int i = 0 ; i < ( ( parts . length ) - 1 ) ; i ++ ) { java . lang . String [ ] subParts = parts [ i ] . split ( "=" ) ; org . opcfoundation . ua . builtintypes . ExpandedNodeId . assertExpandedNodeIdParts ( s , subParts , 2 ) ; if ( subParts [ 0 ] . equalsIgnoreCase ( "svr" ) ) svrIndex = java . lang . Integer . parseInt ( subParts [ 1 ] ) ; else if ( subParts [ 0 ] . equalsIgnoreCase ( "ns" ) ) { nsIndex = java . lang . Integer . parseInt ( subParts [ 1 ] ) ; returnable = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( org . opcfoundation . ua . builtintypes . UnsignedInteger . valueOf ( svrIndex ) , nsIndex , nodeIdValue . getValue ( ) ) ; } else if ( subParts [ 0 ] . equalsIgnoreCase ( "nsu" ) ) { java . lang . String ns = subParts [ 1 ] ; returnable = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( org . opcfoundation . ua . builtintypes . UnsignedInteger . valueOf ( svrIndex ) , ns , nodeIdValue . getValue ( ) ) ; } else org . opcfoundation . ua . builtintypes . ExpandedNodeId . throwExpandedNodeIdCastException ( s ) ; } if ( returnable == null ) { returnable = new org . opcfoundation . ua . builtintypes . ExpandedNodeId ( org . opcfoundation . ua . builtintypes . UnsignedInteger . valueOf ( svrIndex ) , nsIndex , nodeIdValue . getValue ( ) ) ; } return returnable ; } | org . junit . Assert . assertEquals ( namespaceIndex0 , parsedWithoutMiddlePart ) |
testThreadSafetyOfContentCodings ( ) { final java . lang . String entityText = "Hello,<sp>this<sp>is<sp>some<sp>plain<sp>text<sp>coming<sp>back." ; this . localServer . register ( "*" , createGzipEncodingRequestHandler ( entityText ) ) ; endGate . await ( ) ; for ( org . apache . ogt . http . impl . client . TestContentCodings . WorkerTask workerTask : workers ) { if ( workerTask . isFailed ( ) ) { org . junit . Assert . fail ( "A<sp>worker<sp>failed" ) ; } "<AssertPlaceHolder>" ; } } getText ( ) { return text ; } | org . junit . Assert . assertEquals ( entityText , workerTask . getText ( ) ) |
testSetOutOfBagErrorEstimateTrue ( ) { System . out . println ( "testSetOutOfBagErrorEstimateTrue" ) ; boolean value = true ; edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder instance = new edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder ( "test.hex" ) ; java . lang . String expResult = "http://localhost:54321/RF.json?out_of_bag_error_estimate=1&data_key=test.hex" ; java . lang . String result = instance . setOutOfBagErrorEstimate ( value ) . build ( encoder ) ; "<AssertPlaceHolder>" ; } build ( edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . UrlEncoder ) { java . lang . StringBuilder query = new java . lang . StringBuilder ( ) ; for ( java . lang . String key : args . keySet ( ) ) { for ( java . lang . String value : args . get ( key ) ) { if ( ( query . length ( ) ) == 0 ) { query . append ( key ) . append ( '=' ) . append ( encoder . encode ( value ) ) ; } else { query . append ( '&' ) . append ( key ) . append ( '=' ) . append ( encoder . encode ( value ) ) ; } } } java . lang . String url = ( ( ( ( ( ( ( protocol ) + "://" ) + ( host ) ) + ":" ) + ( port ) ) + ( page ) ) + ( ( query . length ( ) ) > 0 ? "?" : "" ) ) + ( query . toString ( ) ) ; return url ; } | org . junit . Assert . assertEquals ( expResult , result ) |
testRoundTripAccessRequirementBackup ( ) { java . util . Collection < org . sagebionetworks . repo . model . PrincipalBackup > pbs = new java . util . HashSet < org . sagebionetworks . repo . model . PrincipalBackup > ( ) ; org . sagebionetworks . repo . model . AccessRequirementBackup pb = new org . sagebionetworks . repo . model . AccessRequirementBackup ( ) ; org . sagebionetworks . repo . model . TermsOfUseAccessRequirement accessRequirement = new org . sagebionetworks . repo . model . TermsOfUseAccessRequirement ( ) ; accessRequirement . setCreatedBy ( "101" ) ; accessRequirement . setCreatedOn ( new java . util . Date ( ) ) ; accessRequirement . setModifiedBy ( "102" ) ; accessRequirement . setModifiedOn ( new java . util . Date ( ) ) ; accessRequirement . setEtag ( "10" ) ; accessRequirement . setAccessType ( ACCESS_TYPE . DOWNLOAD ) ; org . sagebionetworks . repo . model . RestrictableObjectDescriptor rod = new org . sagebionetworks . repo . model . RestrictableObjectDescriptor ( ) ; rod . setId ( "103" ) ; rod . setType ( RestrictableObjectType . ENTITY ) ; accessRequirement . setSubjectIds ( java . util . Arrays . asList ( new org . sagebionetworks . repo . model . RestrictableObjectDescriptor [ ] { rod } ) ) ; accessRequirement . setConcreteType ( "com.sagebionetworks.repo.model.TermsOfUseAccessRequirements" ) ; accessRequirement . setId ( 104L ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; org . sagebionetworks . repo . manager . backup . NodeSerializerUtil . writePrincipalBackups ( pbs , baos ) ; baos . close ( ) ; java . lang . String serialized = new java . lang . String ( baos . toByteArray ( ) ) ; java . io . ByteArrayInputStream bais = new java . io . ByteArrayInputStream ( baos . toByteArray ( ) ) ; java . util . Collection < org . sagebionetworks . repo . model . PrincipalBackup > pbs2 = org . sagebionetworks . repo . manager . backup . NodeSerializerUtil . readPrincipalBackups ( bais ) ; "<AssertPlaceHolder>" ; } close ( ) { } | org . junit . Assert . assertEquals ( pbs , pbs2 ) |
testBuildWithDisabledDefaultConstraint ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . employee . Employee context = new org . lnu . is . domain . employee . Employee ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>Employee<sp>e<sp>" ; org . lnu . is . pagination . MultiplePagedSearch < org . lnu . is . domain . employee . Employee > pagedSearch = new org . lnu . is . pagination . MultiplePagedSearch ( ) ; pagedSearch . setEntity ( context ) ; java . lang . String actualQuery = unit . build ( pagedSearch ) ; "<AssertPlaceHolder>" ; } setEntity ( T ) { this . entity = entity ; } | org . junit . Assert . assertEquals ( expected , actualQuery ) |
testStringRendererWithFormat_cap ( ) { java . lang . String templates = "foo(x)<sp>::=<sp><<<sp><x;<sp>format=\"cap\"><sp>>>\n" ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroupFile ( ( ( tmpdir ) + "/t.stg" ) ) ; group . registerRenderer ( java . lang . String . class , new org . stringtemplate . v4 . StringRenderer ( ) ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "foo" ) ; st . add ( "x" , "hi" ) ; java . lang . String expecting = "<sp>Hi<sp>" ; java . lang . String result = st . render ( ) ; "<AssertPlaceHolder>" ; } render ( ) { return render ( java . util . Locale . getDefault ( ) ) ; } | org . junit . Assert . assertEquals ( expecting , result ) |
testInsertContainer ( ) { final org . uberfire . ext . widgets . core . client . tree . TreeItem childTreeContainer = mock ( org . uberfire . ext . widgets . core . client . tree . TreeItem . class ) ; when ( childTreeContainer . getType ( ) ) . thenReturn ( TreeItem . Type . CONTAINER ) ; final int index = 10 ; final org . uberfire . ext . widgets . core . client . tree . TreeItem treeItem1 = testedRoot . insertItem ( childTreeContainer , index ) ; "<AssertPlaceHolder>" ; verify ( childTreeContainer , times ( 1 ) ) . setTree ( eq ( tree ) ) ; verify ( childTreeContainer , times ( 1 ) ) . setParentItem ( eq ( testedRoot ) ) ; verify ( content , times ( 1 ) ) . insert ( eq ( childTreeContainer ) , eq ( index ) ) ; } insertItem ( org . uberfire . client . views . pfly . tab . TabPanelEntry , int ) { registerTabHandlers ( tab ) ; insertTabAndContent ( tab , index ) ; resizeTabContent ( ) ; } | org . junit . Assert . assertEquals ( treeItem1 , childTreeContainer ) |
defaultOptionsException ( ) { javax . ws . rs . core . Response forex = mock ( javax . ws . rs . core . Response . class ) ; when ( req . getHeader ( HttpHeaderNames . ACCEPT ) ) . thenReturn ( "application/json" ) ; javax . ws . rs . core . Response r = rem . toResponse ( new org . jboss . resteasy . spi . DefaultOptionsMethodException ( "" , forex ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( forex , r ) |
gettingInDraftSuggestionsByReaderUser ( ) { authenticatedUser . addProfile ( org . silverpeas . components . suggestionbox . web . COMPONENT_INSTANCE_ID , SilverpeasRole . reader ) ; try { gettingInDraftSuggestions ( ) ; org . junit . Assert . fail ( "User<sp>must<sp>be<sp>a<sp>writer<sp>to<sp>get<sp>a<sp>list<sp>of<sp>not<sp>published<sp>suggestions" ) ; } catch ( com . sun . jersey . api . client . UniformInterfaceException ex ) { int receivedStatus = ex . getResponse ( ) . getStatus ( ) ; int forbidden = Response . Status . FORBIDDEN . getStatusCode ( ) ; "<AssertPlaceHolder>" ; } } getStatus ( ) { return status ; } | org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( forbidden ) ) |
native_data_should_be_read_as_integer ( ) { com . lordofthejars . nosqlunit . objects . KeyValueObjectMapper keyValueObjectMapper = new com . lordofthejars . nosqlunit . objects . KeyValueObjectMapper ( ) ; java . util . Map < java . lang . Object , java . lang . Object > elements = keyValueObjectMapper . readValues ( new java . io . ByteArrayInputStream ( com . lordofthejars . nosqlunit . objects . WhenObjectsAreUnmarshalled . SIMPLE_DATA_INTEGER . getBytes ( ) ) ) ; java . lang . Integer readElement = ( ( java . lang . Integer ) ( elements . get ( "key1" ) ) ) ; "<AssertPlaceHolder>" ; } get ( int ) { this . replicaSetGroup . setConnectionIndex ( index ) ; return buildReplicaSetRule ( ) ; } | org . junit . Assert . assertThat ( readElement , org . hamcrest . CoreMatchers . is ( 1 ) ) |
shouldRejectConnectionLogging ( ) { lb = new org . openstack . atlas . api . validation . validators . LoadBalancer ( ) ; org . openstack . atlas . api . validation . validators . ConnectionLogging conLog = new org . openstack . atlas . api . validation . validators . ConnectionLogging ( ) ; conLog . setEnabled ( false ) ; lb . setConnectionLogging ( conLog ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( lb , org . openstack . atlas . api . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultList . isEmpty ( ) ; } | org . junit . Assert . assertFalse ( result . passedValidation ( ) ) |
shouldSelectALink ( ) { com . redhat . darcy . ui . api . elements . Link shouldFind = mock ( com . redhat . darcy . ui . api . elements . Link . class ) ; when ( selection . elementOfType ( com . redhat . darcy . ui . api . elements . Link . class , com . redhat . darcy . ui . By . id ( "test" ) ) ) . thenReturn ( shouldFind ) ; "<AssertPlaceHolder>" ; } link ( com . redhat . darcy . ui . api . Locator ) { return com . redhat . darcy . ui . Elements . element ( com . redhat . darcy . ui . api . elements . Link . class , locator ) ; } | org . junit . Assert . assertSame ( shouldFind , selection . link ( com . redhat . darcy . ui . By . id ( "test" ) ) ) |
lookupServiceNotKnown ( ) { expect ( backend . connect ( ) ) . andReturn ( rootNode ) ; expect ( rootNode . getServiceNode ( org . talend . esb . servicelocator . TestValues . SERVICE_QNAME_1 ) ) . andReturn ( serviceNode ) ; expect ( serviceNode . exists ( ) ) . andReturn ( false ) ; replayAll ( ) ; org . talend . esb . servicelocator . client . internal . ServiceLocatorImpl slc = new org . talend . esb . servicelocator . client . internal . ServiceLocatorImpl ( ) ; slc . setBackend ( backend ) ; java . util . List < java . lang . String > endpoints = slc . lookup ( org . talend . esb . servicelocator . TestValues . SERVICE_QNAME_1 ) ; "<AssertPlaceHolder>" ; verifyAll ( ) ; } lookup ( java . lang . String ) { if ( ( auxiliaryStorageServer ) == null ) { throw new org . talend . esb . auxiliary . storage . common . exception . AuxiliaryStorageException ( "Auxiliary<sp>Storage<sp>Server<sp>is<sp>not<sp>set" ) ; } java . lang . String ctx = auxiliaryStorageServer . lookupObject ( key ) ; if ( ctx == null ) { throw new org . talend . esb . auxiliary . storage . common . exception . ObjectNotFoundException ( ( ( "Can<sp>not<sp>find<sp>object<sp>with<sp>key<sp>{" + key ) + "}" ) ) ; } return ctx ; } | org . junit . Assert . assertThat ( endpoints , empty ( ) ) |
testInsertBefore ( ) { model . put ( "AAA/BBB/CCC" , "data1" ) ; model . put ( "AAA/BBB/DDD" , "data2" ) ; model . put ( "AAA/BBB/EEE" , "data3" ) ; expectAnyException ( ( ) -> model . insertBefore ( "DDD" , "EEE" , "data" ) ) ; expectAnyException ( ( ) -> model . insertBefore ( "AAA/BBB/DDD" , "CCC" , "data" ) ) ; expectAnyException ( ( ) -> model . insertBefore ( "AAA/BBB/DDD" , "EEE" , "data" ) ) ; expectAnyException ( ( ) -> model . insertBefore ( "DDD" , "EEE" , "data" ) ) ; expectNoException ( ( ) -> model . insertBefore ( "AAA/BBB/DDD" , "data2" 0 , "data" ) ) ; java . lang . String [ ] keys = model . getRoot ( ) . getChild ( ) . getChild ( ) . getItems ( ) . stream ( ) . map ( Pair :: getX ) . toArray ( java . lang . String [ ] :: new ) ; "<AssertPlaceHolder>" ; } toArray ( java . util . Map ) { if ( args . isEmpty ( ) ) return new java . lang . Object [ 0 ] ; final java . util . List < java . lang . Object > lst = new java . util . LinkedList < java . lang . Object > ( ) ; for ( int j = 0 ; ; j ++ ) { final java . lang . String nm = "arg" + j ; if ( args . containsKey ( nm ) ) lst . add ( args . remove ( nm ) ) ; else break ; } lst . addAll ( args . values ( ) ) ; return lst . toArray ( new java . lang . Object [ lst . size ( ) ] ) ; } | org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "CCC" , "data2" 0 , "DDD" , "EEE" } , keys ) |
hasSizeOfTwo ( ) { "<AssertPlaceHolder>" ; } | org . junit . Assert . assertThat ( list . size ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 4 ) ) ) |
testJoinNone ( ) { "<AssertPlaceHolder>" ; } commaJoin ( java . lang . String [ ] ) { return com . socrata . datasync . Utils . commaJoin ( java . util . Arrays . asList ( ss ) ) ; } | org . junit . Assert . assertEquals ( "" , com . socrata . datasync . Utils . commaJoin ( new java . lang . String [ 0 ] ) ) |
testAuthorizableNodeName ( ) { testUser = userManager . createUser ( "test/:User" , null ) ; java . lang . String nodeName = org . apache . jackrabbit . test . api . util . Text . getName ( testUser . getPath ( ) ) ; java . lang . String expectedNodeName = null ; "<AssertPlaceHolder>" ; } getPath ( ) { java . lang . String sub = pathRow . getPath ( ) ; if ( isVirtualRow ( ) ) { return sub ; } else if ( org . apache . jackrabbit . oak . commons . PathUtils . isAbsolute ( sub ) ) { return ( plan . getPathPrefix ( ) ) + sub ; } else { return org . apache . jackrabbit . oak . commons . PathUtils . concat ( plan . getPathPrefix ( ) , sub ) ; } } | org . junit . Assert . assertEquals ( expectedNodeName , nodeName ) |
testSetValue ( ) { org . apache . tiles . ListAttribute attribute = new org . apache . tiles . ListAttribute ( ) ; java . util . List < org . apache . tiles . Attribute > list = new java . util . ArrayList < org . apache . tiles . Attribute > ( ) ; list . add ( new org . apache . tiles . Attribute ( "value1" ) ) ; list . add ( new org . apache . tiles . Attribute ( "value2" ) ) ; attribute . setValue ( list ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; } | org . junit . Assert . assertEquals ( list , attribute . getValue ( ) ) |
exact_match_route_without_mntRoutes_succeeds ( ) { final net . ripe . db . whois . common . rpsl . RpslObject existingRoute = net . ripe . db . whois . common . rpsl . RpslObject . parse ( ( "" + ( ( "route:<sp>192.91.244.0/23\n" + "origin:<sp>AS12\n" ) + "mnt-by:<sp>TEST-MNT" ) ) ) ; final net . ripe . db . whois . common . ip . Ipv4Resource existingRouteResource = net . ripe . db . whois . common . ip . Ipv4Resource . parse ( existingRoute . getTypeAttribute ( ) . getCleanValue ( ) ) ; final net . ripe . db . whois . update . authentication . strategy . Ipv4RouteEntry existingRouteEntry = new net . ripe . db . whois . update . authentication . strategy . Ipv4RouteEntry ( existingRouteResource , 1 , "AS12" ) ; when ( routeTree . findExactOrFirstLessSpecific ( routeResource ) ) . thenReturn ( com . google . common . collect . Lists . newArrayList ( existingRouteEntry ) ) ; when ( objectDao . getById ( 1 ) ) . thenReturn ( existingRoute ) ; final net . ripe . db . whois . common . rpsl . RpslObject maintainer = net . ripe . db . whois . common . rpsl . RpslObject . parse ( "mntner:<sp>TEST-MNT\n" ) ; final java . util . ArrayList < net . ripe . db . whois . common . rpsl . RpslObject > candidates = com . google . common . collect . Lists . newArrayList ( maintainer ) ; when ( objectDao . getByKeys ( ObjectType . MNTNER , ciSet ( "TEST-MNT" ) ) ) . thenReturn ( candidates ) ; when ( authenticationModule . authenticate ( update , updateContext , candidates ) ) . thenReturn ( candidates ) ; final java . util . List < net . ripe . db . whois . common . rpsl . RpslObject > authenticatedMaintainers = subject . authenticate ( update , updateContext ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . String ) { return lcValue . contains ( value . toLowerCase ( ) ) ; } | org . junit . Assert . assertThat ( authenticatedMaintainers , org . hamcrest . Matchers . contains ( maintainer ) ) |
testIsOverPaymentLimitTour04 ( ) { org . terasoluna . tourreservation . domain . model . TourInfo tour = new org . terasoluna . tourreservation . domain . model . TourInfo ( ) ; org . joda . time . DateTime depDay = now . withTime ( 0 , 0 , 0 , 0 ) . plusDays ( 7 ) ; tour . setDepDay ( depDay . toDate ( ) ) ; when ( dateFactory . newDateTime ( ) ) . thenReturn ( now . withTime ( 0 , 0 , 0 , 0 ) . plusHours ( 23 ) . plusMinutes ( 59 ) . plusSeconds ( 59 ) . plusMillis ( 999 ) ) ; boolean result = tourInfoSharedService . isOverPaymentLimit ( tour ) ; "<AssertPlaceHolder>" ; } isOverPaymentLimit ( org . terasoluna . tourreservation . domain . model . TourInfo ) { org . springframework . util . Assert . notNull ( tour , "tour<sp>must<sp>not<sp>be<sp>null" ) ; org . joda . time . DateTime today = dateFactory . newDateTime ( ) . withTime ( 0 , 0 , 0 , 0 ) ; org . joda . time . DateTime paymentLimit = tour . getPaymentLimit ( ) ; log . debug ( "today={},<sp>paymentLimit={}" , today , paymentLimit ) ; return today . isAfter ( paymentLimit ) ; } | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) ) |
testConnectorRegistration ( ) { org . irenical . fetchy . connector . Connector < ? > con = ( uri ) -> null ; fetchy . registerConnector ( serviceId , con ) ; "<AssertPlaceHolder>" ; } getServiceConnector ( java . lang . String ) { return ( ( org . irenical . fetchy . connector . Connector < API > ) ( cons . get ( serviceId ) ) ) ; } | org . junit . Assert . assertEquals ( con , fetchy . getServiceConnector ( serviceId ) ) |
testWriteDoubleValueThenChangeToIntegerWithDifferentPriority ( ) { java . util . List < com . google . firebase . database . DatabaseReference > refs = com . google . firebase . testing . IntegrationTestUtils . getRandomNode ( com . google . firebase . database . integration . EventTestIT . masterApp , 1 ) ; com . google . firebase . database . DatabaseReference node = refs . get ( 0 ) ; final com . google . firebase . database . integration . EventHelper readHelper = new com . google . firebase . database . integration . EventHelper ( ) . addValueExpectation ( node , 1337 ) . addValueExpectation ( node , 1337 ) . startListening ( true ) ; com . google . firebase . database . core . ZombieVerifier . verifyRepoZombies ( refs ) ; node . setValueAsync ( 1337.0 ) ; node . setValueAsync ( 1337 , 1337 ) ; com . google . firebase . database . TestHelpers . waitForRoundtrip ( node ) ; "<AssertPlaceHolder>" ; com . google . firebase . database . core . ZombieVerifier . verifyRepoZombies ( refs ) ; readHelper . cleanup ( ) ; } waitForEvents ( ) { com . google . firebase . database . TestHelpers . waitFor ( semaphore , count ) ; java . util . Iterator < com . google . firebase . database . ValueExpectationHelper . QueryAndListener > iter = expectations . iterator ( ) ; while ( iter . hasNext ( ) ) { com . google . firebase . database . ValueExpectationHelper . QueryAndListener pair = iter . next ( ) ; pair . query . removeEventListener ( pair . listener ) ; } expectations . clear ( ) ; } | org . junit . Assert . assertTrue ( readHelper . waitForEvents ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.