input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testEmpyHeader ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( "\r\n" ) ; sb . append ( "The<sp>body<sp>is<sp>right<sp>here\r\n" ) ; final java . lang . StringBuilder body = new java . lang . StringBuilder ( ) ; org . apache . james . mime4j . parser . MimeStreamParser parser ...
org . junit . Assert . assertEquals ( "The<sp>body<sp>is<sp>right<sp>here\r\n" , body . toString ( ) )
ddocStreamOpener ( ) { try ( org . digidoc4j . impl . ddoc . FileInputStream stream = new org . digidoc4j . impl . ddoc . FileInputStream ( new org . digidoc4j . impl . ddoc . File ( "src/test/resources/testFiles/valid-containers/ddoc_wo_x509IssueName_xmlns.ddoc" ) ) ) { org . digidoc4j . impl . ddoc . DDocContainer co...
org . junit . Assert . assertTrue ( container . validate ( ) . isValid ( ) )
whenMatchworks_thenCorrect ( ) { int input = 2 ; java . lang . String output = io . vavr . API . Match ( input ) . of ( io . vavr . API . Case ( io . vavr . API . $ ( 1 ) , "one" ) , io . vavr . API . Case ( io . vavr . API . $ ( 2 ) , "two" ) , io . vavr . API . Case ( io . vavr . API . $ ( 3 ) , "three" ) , io . vavr...
org . junit . Assert . assertEquals ( "two" , output )
getClusterName ( ) { java . lang . String expected = "cluster" ; when ( this . manager . getClusterName ( ) ) . thenReturn ( expected ) ; java . lang . String result = this . subject . getClusterName ( ) ; "<AssertPlaceHolder>" ; } getClusterName ( ) { return clusterName ; }
org . junit . Assert . assertSame ( expected , result )
testV2ToV3 ( ) { java . util . List < com . streamsets . pipeline . api . Config > configs = new java . util . ArrayList ( ) ; com . streamsets . pipeline . stage . processor . http . HttpProcessorUpgrader upgrader = new com . streamsets . pipeline . stage . processor . http . HttpProcessorUpgrader ( ) ; upgrader . upg...
org . junit . Assert . assertTrue ( isPresent )
testSizeOf ( ) { System . out . println ( "sizeof" ) ; final int [ ] counter = new int [ 1 ] ; instance . executeQuery ( "select<sp>sizeof(o)<sp>from<sp>[I<sp>o" , new org . graalvm . visualvm . lib . profiler . oql . engine . api . OQLEngine . ObjectVisitor ( ) { public boolean visit ( java . lang . Object o ) { if ( ...
org . junit . Assert . assertTrue ( ( ( counter [ 0 ] ) > 0 ) )
testMacTestVectors ( ) { for ( com . google . crypto . tink . subtle . AesCmacTest . MacTestVector t : com . google . crypto . tink . subtle . AesCmacTest . CMAC_TEST_VECTORS ) { com . google . crypto . tink . Mac mac = new com . google . crypto . tink . subtle . AesCmac ( t . key , t . tag . length ) ; "<AssertPlaceHo...
org . junit . Assert . assertArrayEquals ( t . tag , mac . computeMac ( t . message ) )
testFusedRingFragments ( ) { org . openscience . cdk . ringsearch . RingSearch search = new org . openscience . cdk . ringsearch . RingSearch ( benzene ) ; java . util . List < org . openscience . cdk . interfaces . IAtomContainer > fused = search . fusedRingFragments ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return t...
org . junit . Assert . assertThat ( fused . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
shouldGetLast ( ) { uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . lang . Object > set = new uk . co . webamoeba . mockito . collections . util . LinkedSortedSet < java . lang . Object > ( ) ; java . lang . String expectedLast = "Z" ; set . addAll ( java . util . Arrays . < java . lang . ...
org . junit . Assert . assertEquals ( expectedLast , last )
testSetBooleanPrimitiveArrayProperty ( ) { org . junit . Assume . assumeTrue ( this . sqlgGraph . getSqlDialect ( ) . supportsBooleanArrayValues ( ) ) ; org . apache . tinkerpop . gremlin . structure . Vertex marko = this . sqlgGraph . addVertex ( T . label , "Person" , "name" , "marko" ) ; marko . property ( "bools" ,...
org . junit . Assert . assertArrayEquals ( new boolean [ ] { true , false } , ( ( boolean [ ] ) ( marko . property ( "bools" ) . value ( ) ) ) )
distinct_count ( ) { long count1 = query ( ) . from ( employee ) . distinct ( ) . fetchCount ( ) ; long count2 = query ( ) . from ( employee ) . distinct ( ) . fetchCount ( ) ; "<AssertPlaceHolder>" ; } fetchCount ( ) { return innerCount ( ) ; }
org . junit . Assert . assertEquals ( count1 , count2 )
testSetId ( ) { tillerino . tillerinobot . UserDataManager . UserData userData = mock ( tillerino . tillerinobot . UserDataManager . UserData . class ) ; when ( userData . getLanguage ( ) ) . thenReturn ( new tillerino . tillerinobot . lang . Default ( ) ) ; try { new tillerino . tillerinobot . handlers . NPHandler ( n...
org . junit . Assert . assertEquals ( new tillerino . tillerinobot . lang . Default ( ) . isSetId ( ) , e . getMessage ( ) )
testNamedClass ( ) { org . semanticweb . owlapi . model . OWLClassExpression desc = clsA ; org . semanticweb . owlapi . model . OWLClassExpression nnf = clsA ; org . semanticweb . owlapi . model . OWLClassExpression comp = org . semanticweb . owlapi . api . test . axioms . NNFTestCase . getNNF ( desc ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( nnf , comp )
testBcryptHash ( ) { com . google . firebase . auth . UserImportHash bcrypt = com . google . firebase . auth . hash . Bcrypt . getInstance ( ) ; java . util . Map < java . lang . String , java . lang . Object > properties = com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . Object >...
org . junit . Assert . assertEquals ( properties , bcrypt . getProperties ( ) )
testAgentThreadCatchesUncaughtExceptions ( ) { final org . jsoar . runtime . ThreadedAgent agent = org . jsoar . runtime . ThreadedAgent . create ( ) ; agent . execute ( new java . util . concurrent . Callable < java . lang . Void > ( ) { @ org . jsoar . runtime . Override public org . jsoar . runtime . Void call ( ) t...
org . junit . Assert . assertEquals ( "success" , result )
testGetCapitalizedName13 ( ) { java . lang . String input = "xIndex" ; java . lang . String output = com . jmethods . catatumbo . impl . IntrospectionUtils . getCapitalizedName ( input ) ; com . jmethods . catatumbo . impl . IntrospectionUtilsTest . LOGGER . info ( ( ( input + "-->" ) + output ) ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( "xIndex" , output )
testWeightedXentWithLogits ( ) { org . nd4j . autodiff . samediff . SameDiff sameDiff = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . linalg . api . ndarray . INDArray targets = org . nd4j . linalg . factory . Nd4j . create ( new long [ ] { 1 , 5 } ) ; org . nd4j . linalg . api . ndarray . IND...
org . junit . Assert . assertArrayEquals ( new long [ ] { 1 , 5 } , res . getShape ( ) )
testConvertAplicationIdToString ( ) { org . apache . hadoop . yarn . api . records . ApplicationId applicationId = org . apache . hadoop . yarn . api . records . ApplicationId . newInstance ( 0 , 1 ) ; java . lang . String applicationIdStr = org . apache . hadoop . yarn . server . timelineservice . storage . common . H...
org . junit . Assert . assertEquals ( applicationId , org . apache . hadoop . yarn . api . records . ApplicationId . fromString ( applicationIdStr ) )
switchDtoTest ( ) { org . openkilda . northbound . dto . v1 . switches . SwitchDto dto = new org . openkilda . northbound . dto . v1 . switches . SwitchDto ( org . openkilda . northbound . dto . JsonSerializationTest . SWITCH_ID , "address-test" , "host" , "desc" , "state" , false ) ; "<AssertPlaceHolder>" ; } pass ( T...
org . junit . Assert . assertEquals ( dto , pass ( dto , org . openkilda . northbound . dto . v1 . switches . SwitchDto . class ) )
toString_A$ ( ) { com . m3 . scalaflavor4j . RichFunction5 < java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . Integer > f = new com . m3 . scalaflavor4j . RichFunction5 ( new com . m3 . scalaflavor4j . F5 < java . lang . String , java . lan...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testCreateRouterApiException ( ) { _resource . configure ( "BigSwitchBcfResource" , _parameters ) ; doThrow ( new com . cloud . network . bigswitch . BigSwitchBcfApiException ( ) ) . when ( _bigswitchBcfApi ) . createRouter ( ( ( java . lang . String ) ( any ( ) ) ) , ( ( com . cloud . network . bigswitch . RouterData ...
org . junit . Assert . assertFalse ( ans . getResult ( ) )
toString_A$ ( ) { java . lang . String line = null ; com . github . seratch . taskun . scheduler . crond . RawCrontabLine target = new com . github . seratch . taskun . scheduler . crond . RawCrontabLine ( line ) ; java . lang . String actual = target . toString ( ) ; java . lang . String expected = "" ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( expected , actual )
shouldReturnFigureWhenSeveralLines ( ) { logFile . log ( "/tetrisServlet?figure=S&x=4&y=17&glass=+++" , "" ) ; logFile . log ( "/tetrisServlet?figure=T&x=4&y=16&glass=+++" , "" ) ; logFile . readNextStep ( ) ; logFile . readNextStep ( ) ; "<AssertPlaceHolder>" ; } getCurrentFigure ( ) { java . util . regex . Matcher ma...
org . junit . Assert . assertEquals ( Figure . Type . T , logFile . getCurrentFigure ( ) )
testRun2 ( ) { ij . process . ImageProcessor cp1 = new ij . process . ColorProcessor ( javax . imageio . ImageIO . read ( new java . io . File ( "src/test/resources/susan-in.gif" ) ) ) ; ij . process . ImageProcessor cp2 = new ij . process . ColorProcessor ( javax . imageio . ImageIO . read ( new java . io . File ( "sr...
org . junit . Assert . assertTrue ( ( 200 > delta ) )
testGetRegularMessage ( ) { final java . lang . String expectedErrorMessage = "Expected<sp>regular<sp>message." ; final org . kie . workbench . common . dmn . client . editors . types . common . errors . DataTypeNameIsDefaultTypeMessage errorMessage = new org . kie . workbench . common . dmn . client . editors . types ...
org . junit . Assert . assertEquals ( expectedErrorMessage , actualErrorMessage )
shouldContinueThroughEmptyIdBatch ( ) { org . neo4j . kernel . impl . store . id . IdSequence idSource = mock ( org . neo4j . kernel . impl . store . id . IdSequence . class ) ; java . util . Iterator < org . neo4j . kernel . impl . store . id . IdRange > ranges = asList ( new org . neo4j . kernel . impl . store . id ....
org . junit . Assert . assertEquals ( expectedId , ids . nextId ( ) )
testDumpSensitiveProperty ( ) { final java . lang . String myPassword = "ThisIsMyPassword" ; org . apache . hadoop . conf . Configuration testConf = new org . apache . hadoop . conf . Configuration ( false ) ; out = new java . io . BufferedWriter ( new java . io . FileWriter ( org . apache . hadoop . conf . TestConfigu...
org . junit . Assert . assertFalse ( outWriter . toString ( ) . contains ( myPassword ) )
should_be_able_to_handle_two_params_without_named_nodes ( ) { java . util . Map < java . lang . String , java . lang . Object > props1 = new java . util . HashMap ( ) ; props1 . put ( "name" , "Andy" ) ; props1 . put ( "position" , "Andy" 1 ) ; java . util . Map < java . lang . String , java . lang . Object > props2 = ...
org . junit . Assert . assertThat ( count ( result ) , org . hamcrest . CoreMatchers . is ( 1L ) )
testRemoveMessageFuture ( ) { com . navercorp . pinpoint . rpc . client . RequestManager requestManager = new com . navercorp . pinpoint . rpc . client . RequestManager ( timer , 3000 ) ; try { int requestId = requestManager . nextRequestId ( ) ; com . navercorp . pinpoint . rpc . DefaultFuture future = requestManager ...
org . junit . Assert . assertNull ( nullFuture )
testThatTheMortgageBalanceIsNotImpactedIfTheCashDownIsSufficient ( ) { float insufficientCashDown = ( minCashDown ) + 1 ; float expetedBalance = ( mortgageAllowance ) - insufficientCashDown ; "<AssertPlaceHolder>" ; } evaluate ( float , float ) { float mortgageBalance = mortgageAllowance - cashDown ; if ( info . novate...
org . junit . Assert . assertTrue ( ( expetedBalance == ( info . novatec . testit . livingdoc . samples . application . mortgage . MortgageBalanceCalculator . evaluate ( mortgageAllowance , insufficientCashDown ) ) ) )
testUncachedStatementReallyCloses ( ) { java . sql . PreparedStatement proxy = JdbcProxyFactory . INSTANCE . getProxyPreparedStatement ( connection , stmt , null ) ; proxy . close ( ) ; "<AssertPlaceHolder>" ; verify ( stmt ) . close ( ) ; } isClosed ( ) { return ( delegate ) == null ; }
org . junit . Assert . assertTrue ( proxy . isClosed ( ) )
testCommonOrderGeneratedImplicitlyFromGroupFields ( ) { com . datasalt . pangool . tuplemr . TupleMRConfigBuilder b = new com . datasalt . pangool . tuplemr . TupleMRConfigBuilder ( ) ; b . addIntermediateSchema ( new com . datasalt . pangool . io . Schema ( "schema1" , com . datasalt . pangool . io . Fields . parse ( ...
org . junit . Assert . assertEquals ( new com . datasalt . pangool . tuplemr . Criteria ( expectedCommon ) , config . getCommonCriteria ( ) )
startSession_sessionIsPaused_stateChangedToActive ( ) { target . startSession ( ) ; target . pauseSession ( ) ; target . startSession ( ) ; "<AssertPlaceHolder>" ; } getSessionState ( ) { if ( ( this . session ) != null ) { return this . session . isPaused ( ) ? com . amazonaws . mobileconnectors . amazonmobileanalytic...
org . junit . Assert . assertEquals ( target . getSessionState ( ) , DefaultSessionClient . SessionState . ACTIVE )
testIsNotRevealedWhenFullyOutOfRightBottomEdge ( ) { org . eclipse . swt . graphics . Point origin = new org . eclipse . swt . graphics . Point ( 0 , 0 ) ; org . eclipse . swt . graphics . Rectangle clientArea = createRectangle ( 0 , 0 , 100 , 100 ) ; org . eclipse . swt . graphics . Rectangle controlBounds = createRec...
org . junit . Assert . assertFalse ( isRevealed )
testDoubleListApplyWithNullValueAndNullOption ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "test" , "name" , "<name:{n<sp>|<sp><n>}:{n<sp>|<sp>[<n>]};<sp>null=\"n/a\">" ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; ...
org . junit . Assert . assertEquals ( expected , result )
shouldCreateNewObjectInEmbeddedMongoDb ( ) { com . mongodb . DB db = mongo . getDB ( com . dp . nebula . wormhole . plugins . reader . mongoreader . MongoReaderTest . DATABASE_NAME ) ; com . mongodb . DBCollection col = db . createCollection ( "testCollection" , new com . mongodb . BasicDBObject ( ) ) ; com . mongodb ....
org . junit . Assert . assertEquals ( "hello<sp>world<sp>mongoDB<sp>in<sp>Java" , line . getField ( 0 ) )
testSubnentNotFound ( ) { ec2mock . createDescribeSubnetsResult ( "Testsubnet-a77430d0" ) ; com . amazonaws . services . ec2 . model . Subnet subnet = ec2comm . resolveSubnet ( "subnet-a77430d0" ) ; "<AssertPlaceHolder>" ; } resolveSubnet ( java . lang . String ) { com . amazonaws . services . ec2 . model . DescribeSub...
org . junit . Assert . assertFalse ( "subnet-a77430d0" . equals ( subnet . getSubnetId ( ) ) )
whenFileSystemIsClean_stashShouldBeUnsuccessful ( ) { com . beijunyi . parallelgit . filesystem . commands . GfsCreateStash . Result result = com . beijunyi . parallelgit . filesystem . Gfs . createStash ( gfs ) . execute ( ) ; "<AssertPlaceHolder>" ; } isSuccessful ( ) { return ( commit ) != null ; }
org . junit . Assert . assertFalse ( result . isSuccessful ( ) )
testConvert ( ) { java . lang . Long id = 1L ; java . lang . Long departmentId = 2L ; java . lang . Long specialtyId = 3L ; org . lnu . is . domain . specialty . Specialty specialty = new org . lnu . is . domain . specialty . Specialty ( ) ; specialty . setId ( specialtyId ) ; org . lnu . is . domain . department . Dep...
org . junit . Assert . assertEquals ( expected , actual )
testInvalidRead ( ) { org . kuali . rice . kcb . bo . Message m = messageService . getMessage ( java . lang . Long . valueOf ( ( - 1 ) ) ) ; "<AssertPlaceHolder>" ; } getMessage ( java . lang . Object [ ] ) { java . lang . StringBuilder retval = new java . lang . StringBuilder ( ) ; for ( java . lang . Object obj : obj...
org . junit . Assert . assertNull ( m )
indirectsChain2 ( ) { com . itextpdf . kernel . pdf . PdfDocument document = new com . itextpdf . kernel . pdf . PdfDocument ( new com . itextpdf . kernel . pdf . PdfWriter ( new java . io . ByteArrayOutputStream ( ) ) ) ; document . addNewPage ( ) ; com . itextpdf . kernel . pdf . PdfDictionary catalog = document . ge...
org . junit . Assert . assertNotNull ( ( ( com . itextpdf . kernel . pdf . PdfIndirectReference ) ( catalog . get ( new com . itextpdf . kernel . pdf . PdfName ( "a" ) ) ) ) . getRefersTo ( true ) )
testGeboorteZelfdeMamaAnderePapaMetBroertjeMetAndereNaam ( ) { voegKindToeAanOuder ( broertje2 , papa2 , mama ) ; final nl . bzk . brp . bijhouding . bericht . model . ElementBuilder . NaamParameters sPara = new nl . bzk . brp . bijhouding . bericht . model . ElementBuilder . NaamParameters ( ) ; sPara . indicatieNamen...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
createdMatcher ( ) { org . hamcrest . Matcher < javax . ws . rs . core . Response > created = com . airhacks . rulz . jaxrsclient . HttpMatchers . created ( ) ; javax . ws . rs . core . Response response = mock ( javax . ws . rs . core . Response . class ) ; when ( response . getHeaderString ( "Location" ) ) . thenRetu...
org . junit . Assert . assertThat ( response , org . hamcrest . CoreMatchers . is ( created ) )
testPassiveQueryDataDriven ( ) { java . lang . String str = "global<sp>java.util.List<sp>list\n" + ( ( ( ( ( ( ( ( "query<sp>Q<sp>(Integer<sp>i)\n" + "<sp>String(<sp>this<sp>==<sp>i.toString()<sp>)\n" ) + "end\n" ) + "global<sp>java.util.List<sp>list\n" 0 ) + "<sp>$i<sp>:<sp>Integer()\n" ) + "<sp>?Q(<sp>$i;<sp>)\n" ) +...
org . junit . Assert . assertEquals ( 0 , list . size ( ) )
testDelete ( ) { net . magja . model . product . ProductAttribute pa = createTextAttributeSimple ( ) ; service . save ( pa ) ; "<AssertPlaceHolder>" ; service . delete ( pa . getCode ( ) ) ; } getId ( ) { return id ; }
org . junit . Assert . assertTrue ( ( ( pa . getId ( ) ) != null ) )
testLookupSuccess ( ) { namingContext . bind ( "abc" , "def" ) ; "<AssertPlaceHolder>" ; } lookup ( java . lang . String ) { javax . naming . InitialContext initialContext = com . vladmihalcea . flexypool . util . JndiUtils . initialContext ( ) ; try { @ com . vladmihalcea . flexypool . util . SuppressWarnings ( "unche...
org . junit . Assert . assertEquals ( "def" , com . vladmihalcea . flexypool . util . JndiUtils . lookup ( "abc" ) )
testWrite ( ) { java . lang . String path = "src/test/resources/h264/sps/sps1.dat" ; java . nio . ByteBuffer bb = java . nio . ByteBuffer . allocate ( 1024 ) ; sps1 . write ( bb ) ; bb . flip ( ) ; java . nio . ByteBuffer expect = org . jcodec . common . io . NIOUtils . fetchFromFile ( new java . io . File ( path ) ) ;...
org . junit . Assert . assertArrayEquals ( org . jcodec . common . io . NIOUtils . toArray ( bb ) , org . jcodec . common . io . NIOUtils . toArray ( expect ) )
testResetWithoutFailOnMissingPhase ( ) { org . eclipse . elk . core . alg . AlgorithmAssembler < org . eclipse . elk . alg . common . structure . TestPhases , java . lang . StringBuffer > assembler = org . eclipse . elk . core . alg . AlgorithmAssembler . create ( org . eclipse . elk . alg . common . structure . TestPh...
org . junit . Assert . assertEquals ( 0 , assembler . build ( null ) . size ( ) )
testSynchronized ( ) { int currentNumberOfDbs = org . apache . hadoop . hive . metastore . TestHiveMetaStore . client . getAllDatabases ( ) . size ( ) ; org . apache . hadoop . hive . metastore . IMetaStoreClient synchronizedClient = org . apache . hadoop . hive . metastore . HiveMetaStoreClient . newSynchronizedClient...
org . junit . Assert . assertEquals ( currentNumberOfDbs , databases . size ( ) )
testDataSetSchema ( ) { try ( final com . dremio . datastore . KVStoreProvider kvstore = new com . dremio . datastore . LocalKVStoreProvider ( com . dremio . test . DremioTest . CLASSPATH_SCAN_RESULT , null , true , false ) ) { kvstore . start ( ) ; final com . dremio . service . namespace . NamespaceService ns = new c...
org . junit . Assert . assertEquals ( schema , returnedSchema )
testComputeSegment_Imbalanced ( ) { java . util . List < org . axonframework . eventhandling . Segment > segments = new java . util . ArrayList ( ) ; org . axonframework . eventhandling . Segment initialSegment = Segment . ROOT_SEGMENT ; for ( int i = 0 ; i < 8 ; i ++ ) { org . axonframework . eventhandling . Segment [...
org . junit . Assert . assertEquals ( segment , org . axonframework . eventhandling . Segment . computeSegment ( segment . getSegmentId ( ) , segmentIds ) )
testClearMoves ( ) { final org . apache . oozie . fluentjob . api . action . FSActionBuilder builder = getBuilderInstance ( ) ; for ( final org . apache . oozie . fluentjob . api . action . Move move : org . apache . oozie . fluentjob . api . action . TestFSActionBuilder . MOVES ) { builder . withMove ( move ) ; } buil...
org . junit . Assert . assertTrue ( fsAction . getMoves ( ) . isEmpty ( ) )
testGetAuthorBooksCount ( ) { java . math . BigInteger bookCount = com . iluwatar . cqrs . IntegrationTest . queryService . getAuthorBooksCount ( "username1" ) ; "<AssertPlaceHolder>" ; } getAuthorBooksCount ( java . lang . String ) { java . math . BigInteger bookcount = null ; try ( org . hibernate . Session session =...
org . junit . Assert . assertEquals ( new java . math . BigInteger ( "2" ) , bookCount )
testFindAllUsesViewWithConfiguredConsistency ( ) { java . lang . String expectedQueryParams = "ViewQuery(string/all){params=\"reduce=false&stale=false\"}" ; repository . findAll ( ) ; verify ( couchbaseOperations , never ( ) ) . queryView ( any ( com . couchbase . client . java . view . ViewQuery . class ) ) ; verify (...
org . junit . Assert . assertEquals ( expectedQueryParams , sQuery )
testAbortWithFailedSystemLogout ( ) { org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModule loginModule = org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . initLoginModule ( org . apache . jackrabbit . oak . spi . security . authentication . ...
org . junit . Assert . assertTrue ( loginModule . abort ( ) )
encodeCollectionFormatQueryParam_listOfNulls ( ) { final java . util . List < java . lang . String > values = new java . util . ArrayList ( ) ; values . add ( null ) ; values . add ( null ) ; javax . ws . rs . client . WebTarget target = mock ( javax . ws . rs . client . WebTarget . class ) ; com . oracle . bmc . http ...
org . junit . Assert . assertTrue ( ( result == wrapped ) )
testConstructor ( ) { org . openscience . cdk . renderer . font . IFontManager fontManager = new org . openscience . cdk . renderer . font . AWTFontManager ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( fontManager )
testMatch03 ( ) { boolean matchResult = namespacePatternMatcher . matchesEndToEnd ( "a" ) ; "<AssertPlaceHolder>" ; } matchesEndToEnd ( java . lang . String ) { return pattern . matcher ( input ) . matches ( ) ; }
org . junit . Assert . assertTrue ( matchResult )
testGetReference ( ) { org . wikidata . wdtk . datamodel . implementation . Reference r1 = new org . wikidata . wdtk . datamodel . implementation . ReferenceImpl ( java . util . Collections . emptyList ( ) ) ; org . wikidata . wdtk . datamodel . implementation . Reference r2 = factory . getReference ( java . util . Col...
org . junit . Assert . assertEquals ( r1 , r2 )
testCapitalizeWords9 ( ) { java . lang . Object s = "<sp>aaaaa....zzzzz<sp>ttttt<sp>nnnnn" ; java . lang . String expResult = "<sp>Aaaaa....Zzzzz<sp>Ttttt<sp>Nnnnn" ; java . lang . String result = org . thymeleaf . util . StringUtils . capitalizeWords ( s , "<sp>." ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expResult , result )
trashDelete ( ) { org . cojen . tupl . Index ix = mDb . openIndex ( "trash" ) ; ix . store ( null , "hello" . getBytes ( ) , "world" . getBytes ( ) ) ; mDb . checkpoint ( ) ; ix . store ( null , "goodbye" . getBytes ( ) , "world" . getBytes ( ) ) ; mDb . deleteIndex ( ix ) ; mDb = reopenTempDatabase ( getClass ( ) , mD...
org . junit . Assert . assertNull ( mDb . findIndex ( "trash" ) )
testConvertBean ( ) { com . bagri . core . server . api . ModelManagement dict = new com . bagri . core . server . api . impl . ModelManagementImpl ( ) ; com . bagri . core . server . api . df . json . JsonpHandler handler = new com . bagri . core . server . api . df . json . JsonpHandler ( dict ) ; com . bagri . core ...
org . junit . Assert . assertNotNull ( result )
testMergeAfterNewFieldIsAddedAndPublishingContentAtBranch ( ) { com . liferay . dynamic . data . mapping . model . DDMForm ddmForm = createDDMForm ( ) ; addDDMFormFields ( ddmForm , createTextDDMFormField ( "Text1807" , "" , true , false , false ) ) ; com . liferay . dynamic . data . mapping . model . DDMStructure ddmS...
org . junit . Assert . assertNotNull ( fieldsDisplayField )
testNotEquals ( ) { com . facebook . buck . core . model . BuildTarget utilTarget = com . facebook . buck . core . model . BuildTargetFactory . newInstance ( com . facebook . buck . core . model . BuildTargetTest . ROOT , "//src/com/facebook/buck/util" , "util" ) ; com . facebook . buck . core . model . BuildTarget ioT...
org . junit . Assert . assertFalse ( utilTarget . equals ( ioTarget ) )
testTransformReturnsNullIfMonitoringInfoWithUnknownPCollectionLabelPresent ( ) { java . util . Map < java . lang . String , org . apache . beam . runners . dataflow . worker . counters . NameContext > pcollectionNameMapping = new java . util . HashMap ( ) ; org . apache . beam . model . pipeline . v1 . MetricsApi . Mon...
org . junit . Assert . assertEquals ( null , testObject . transform ( monitoringInfo ) )
testGetNotExist ( ) { jp . primecloud . auto . zabbix . model . application . ApplicationGetParam param = new jp . primecloud . auto . zabbix . model . application . ApplicationGetParam ( ) ; param . setApplicationids ( java . util . Arrays . asList ( "999999" ) ) ; param . setOutput ( "extend" ) ; java . util . List <...
org . junit . Assert . assertEquals ( 0 , applications . size ( ) )
testFindAddresses ( ) { "<AssertPlaceHolder>" ; } findAddresses ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String ) { java . lang . String search_mode = ( searchModeParam == null ) ? "search_name" : searchModeParam ; java . lang . String orderBy = ( order...
org . junit . Assert . assertNotNull ( dao . findAddresses ( null , null , null , null , null ) )
testMultiGet ( ) { java . util . List < java . util . Map < java . lang . String , java . lang . Object > > expected = com . google . common . collect . ImmutableList . < java . util . Map < java . lang . String , java . lang . Object > > of ( com . google . common . collect . ImmutableMap . < java . lang . String , ja...
org . junit . Assert . assertEquals ( actual , expected )
testAddScalar ( ) { org . nd4j . linalg . api . ndarray . INDArray div = org . nd4j . linalg . factory . Nd4j . valueArrayOf ( new long [ ] { 1 , 4 } , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray rdiv = div . add ( 1 ) ; org . nd4j . linalg . api . ndarray . INDArray answer = org . nd4j . linalg . factory . Nd...
org . junit . Assert . assertEquals ( answer , rdiv )
entityManagerFactoryCreated ( ) { final java . util . Properties properties = new java . util . Properties ( ) ; properties . load ( getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "persistence.properties" ) ) ; final java . lang . String persistenceUnitName = getClass ( ) . getPackage ( ) . getName ( ) ; fin...
org . junit . Assert . assertNotNull ( entityManagerFactory )
getProcFileAsRowColumn_NotExistingFile ( ) { java . util . List < java . lang . String [ ] > result = com . uber . profiling . util . ProcFileUtils . getProcFileAsRowColumn ( "/not/existing/file" ) ; "<AssertPlaceHolder>" ; } getProcFileAsRowColumn ( java . lang . String ) { try { java . io . File file = new java . io ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testGetDefaultGcsBucketName ( ) { com . google . apphosting . api . ApiProxy . Environment env = com . google . apphosting . api . ApiProxy . getCurrentEnvironment ( ) ; java . lang . String expectedBucketName ; com . google . appengine . tck . event . Property property = property ( "testGetDefaultGcsBucketName" ) ; if...
org . junit . Assert . assertEquals ( expectedBucketName , bucketName )
testReportForFileSizeGroupByYearOfLastModifiedDate ( ) { reportData = reportDao . getReportData ( null , ReportFieldEnum . FILE_SIZE , getGroupByFieldList ( ReportFieldEnum . LAST_MODIFIED_DATE , "year" ) ) ; "<AssertPlaceHolder>" ; printReportData ( reportData ) ; } size ( ) { return size ; }
org . junit . Assert . assertTrue ( ( ( reportData . size ( ) ) > 0 ) )
testFromBitmap ( ) { org . jcodec . scale . BitmapUtil bitmapUtil = mock ( org . jcodec . scale . BitmapUtil . class ) ; org . jcodec . common . model . Picture src = org . jcodec . common . model . Picture . create ( 16 , 16 , ColorSpace . RGB ) ; for ( int i = 0 ; i < ( 256 * 3 ) ; i += 3 ) { src . getPlaneData ( 0 )...
org . junit . Assert . assertEquals ( expected , res )
sequencedMap2 ( ) { long [ ] l = new long [ ] { 10 , 100 , 50 , 250 , 100 , 15 , 35 , 250 , 100 , 65 , 45 , 50 , 65 , 80 , 90 , 70 , 250 , 100 } ; long [ ] expected = new long [ ] { 15 , 35 , 45 , 50 , 65 , 80 , 90 , 70 , 250 , 100 } ; org . exist . util . hashtable . SequencedLongHashMap < java . lang . String > table...
org . junit . Assert . assertEquals ( next . getKey ( ) , expected [ i ] )
fromExternalChange ( ) { org . apache . jackrabbit . oak . plugins . document . DocumentStore store = new org . apache . jackrabbit . oak . plugins . document . memory . MemoryDocumentStore ( ) ; org . apache . jackrabbit . oak . plugins . document . DocumentNodeStore ns1 = builderProvider . newBuilder ( ) . setCluster...
org . junit . Assert . assertEquals ( newHashSet ( "foo" , "bar" , "baz" ) , org . apache . jackrabbit . oak . plugins . document . JournalDiffLoaderTest . changeChildNodes ( ns1 , s1 , s2 ) )
MOVEDepthinfinity ( ) { final java . lang . String depth = "infinity" ; final java . lang . String srcCol = "davColforMOVE" ; final java . lang . String destCol = "destCol" ; final java . lang . String destUrl = com . fujitsu . dc . test . unit . core . UrlUtils . box ( com . fujitsu . dc . test . jersey . box . dav . ...
org . junit . Assert . assertEquals ( HttpStatus . SC_CREATED , response . getStatusCode ( ) )
getProperty_success ( ) { net . sharkfw . system . L . setLogLevel ( L . LOGLEVEL_ALL ) ; net . sharkfw . knowledgeBase . inmemory . InMemoSharkKB inMemoSharkKB = new net . sharkfw . knowledgeBase . inmemory . InMemoSharkKB ( ) ; net . sharkfw . knowledgeBase . sync . manager . SyncMergeInfoSerializer syncMergeInfoSeri...
org . junit . Assert . assertTrue ( retrievedProperty . asString ( ) . equals ( mergeProperty . asString ( ) ) )
testSetIconUrl ( ) { net . holmes . core . business . media . model . AbstractNodeTest . AbstractNodeTester node = buildAbstractNodeTester ( "" ) ; node . setIconUrl ( "iconUrl" ) ; "<AssertPlaceHolder>" ; } getIconUrl ( ) { return iconUrl ; }
org . junit . Assert . assertEquals ( node . getIconUrl ( ) , "iconUrl" )
shouldConvert ( ) { br . com . uol . pagseguro . api . utils . RequestMap expectedMap = new br . com . uol . pagseguro . api . utils . RequestMap ( ) ; expectedMap . putMap ( new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "currency" , "BRL" ) ; put ( "extraAmount" , "9.99" ) ; p...
org . junit . Assert . assertEquals ( expectedMap , map )
testLemmasAsArray ( ) { java . lang . String [ ] lemmas = lemmatizer . lemmatize ( opennlp . tools . lemmatizer . LemmatizerMETest . tokens , opennlp . tools . lemmatizer . LemmatizerMETest . postags ) ; "<AssertPlaceHolder>" ; } lemmatize ( java . lang . String , java . lang . String ) { java . util . List < morfologi...
org . junit . Assert . assertArrayEquals ( opennlp . tools . lemmatizer . LemmatizerMETest . expect , lemmas )
testIsNewColumnWhenColumnIsNull ( ) { final org . drools . workbench . screens . guided . dtable . client . wizard . column . plugins . commons . BaseDecisionTableColumnPlugin plugin = makeBasePlugin ( ) ; plugin . setOriginalColumnConfig52 ( null ) ; "<AssertPlaceHolder>" ; } isNewColumn ( ) { return ! ( java . util ....
org . junit . Assert . assertTrue ( plugin . isNewColumn ( ) )
testFloatCast2DoubleThriftSerializeInTasks ( ) { java . sql . Statement stmt = org . apache . hive . jdbc . TestJdbcWithMiniHS2 . conTestDb . createStatement ( ) ; setSerializeInTasksInConf ( stmt ) ; stmt . execute ( "drop<sp>table<sp>if<sp>exists<sp>testThriftSerializeShow1" ) ; stmt . execute ( "drop<sp>table<sp>if<...
org . junit . Assert . assertTrue ( ( ! ( rs . next ( ) ) ) )
sexEqualOrNameEqual ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>sex<sp>=<sp>'female'<sp>or<sp>name<sp>=<sp>'curioe'<sp>ORDER<sp>BY<sp>created<sp>DESC<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>where<sp>sex<sp>=<sp>'female'<sp>or<sp>name<sp>=<sp>'curioe'<sp>order<sp>by...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
testAckBeforeSync ( ) { java . io . File journalDir = tempDir . newFolder ( ) ; org . apache . bookkeeper . bookie . Bookie . checkDirectoryStructure ( org . apache . bookkeeper . bookie . Bookie . getCurrentDirectory ( journalDir ) ) ; org . apache . bookkeeper . conf . ServerConfiguration conf = org . apache . bookke...
org . junit . Assert . assertEquals ( 0 , lastLogMarkAfterForceWrite . getCurMark ( ) . compare ( lastLogMarkBeforeWrite ) )
testNotAsync ( ) { java . util . List < com . google . gwt . core . ext . typeinfo . JClassType > annotedClasses = new java . util . ArrayList < com . google . gwt . core . ext . typeinfo . JClassType > ( ) ; com . google . gwt . core . ext . typeinfo . JClassType type = oracle . addClass ( com . mvp4g . rebind . confi...
org . junit . Assert . assertFalse ( element . isAsync ( ) )
listRequestInit ( ) { org . searchisko . api . service . ProviderService tested = getTested ( ) ; org . searchisko . persistence . service . ListRequest expected = org . mockito . Mockito . mock ( org . searchisko . persistence . service . ListRequest . class ) ; org . mockito . Mockito . when ( tested . entityService ...
org . junit . Assert . assertEquals ( expected , tested . listRequestInit ( ) )
testSecurityDef ( ) { "<AssertPlaceHolder>" ; } getContextType ( java . lang . String ) { if ( ( path != null ) && ( path . endsWith ( "/securityDefinitions" 3 ) ) ) { path = path . substring ( 0 , ( ( path . length ( ) ) - 1 ) ) ; } if ( ( ( path == null ) || ( path . isEmpty ( ) ) ) || ( "/securityDefinitions" 3.e qu...
org . junit . Assert . assertThat ( com . reprezen . swagedit . templates . SwaggerContextType . getContextType ( "/securityDefinitions" ) , org . hamcrest . CoreMatchers . equalTo ( SecurityDefContextType . CONTEXT_ID ) )
whenWriteToTmpFile_thenCorrect ( ) { final java . lang . String toWrite = "Hello" ; final java . io . File tmpFile = java . io . File . createTempFile ( "test" , ".tmp" ) ; final java . io . FileWriter writer = new java . io . FileWriter ( tmpFile ) ; writer . write ( toWrite ) ; writer . close ( ) ; final java . io . ...
org . junit . Assert . assertEquals ( toWrite , reader . readLine ( ) )
test11DeleteEmbedWithNestedArray ( ) { com . ebay . cloud . cms . dal . entity . impl . BsonEntity approvalInst = createEmbedApproval ( ) ; java . lang . String embedId = approvalInst . getId ( ) ; com . ebay . cloud . cms . dal . persistence . EmbedPersistenceServiceTest . persistenceService . delete ( approvalInst , ...
org . junit . Assert . assertTrue ( ( getEntity == null ) )
testComparableKey ( ) { open ( ) ; com . sleepycat . persist . test . BindingTest . ComparableKey key = new com . sleepycat . persist . test . BindingTest . ComparableKey ( 123 , 456 ) ; checkEntity ( com . sleepycat . persist . test . BindingTest . UseComparableKey . class , new com . sleepycat . persist . test . Bind...
org . junit . Assert . assertNotNull ( classMeta )
mergeTextDecorationBothInputsNoneTest ( ) { java . lang . String firstValue = "underline<sp>none" ; java . lang . String secondValue = "strikethrough<sp>none" ; java . lang . String expected = "none" ; java . lang . String actual = com . itextpdf . styledxmlparser . css . resolve . CssPropertyMerger . mergeTextDecorati...
org . junit . Assert . assertEquals ( expected , actual )
testMagLeverenDoorgaanTrueAndereDienst ( ) { when ( bepaler . bepaalAttributenGewijzigd ( eq ( persoon ) , eq ( administratieveHandelingModel ) , any ( nl . bzk . brp . expressietaal . Expressie . class ) , any ( nl . bzk . brp . model . algemeen . stamgegeven . autaut . Leveringsautorisatie . class ) ) ) . thenReturn ...
org . junit . Assert . assertTrue ( resultaat )
addFeatureIncrementsSize ( ) { createPointFeatures ( org . geotools . data . collection . ListFeatureCollectionTest . WORLD , 1 ) ; featureCollection . add ( createPointFeature ( org . geotools . data . collection . ListFeatureCollectionTest . WORLD . getMinX ( ) , org . geotools . data . collection . ListFeatureCollec...
org . junit . Assert . assertEquals ( 2 , featureCollection . size ( ) )
test_success_equals_message_older_equals_flag_true ( ) { defaultEntityAgeFilterService . initialise ( "client-d" ) ; defaultEntityAgeFilterService . setOlderIfEquals ( true ) ; org . ikasan . filter . duplicate . model . FilterEntry aMessage = new org . ikasan . filter . duplicate . model . DefaultFilterEntry ( "busine...
org . junit . Assert . assertTrue ( result )
testAsInt8 ( ) { org . apache . tajo . datum . Datum d = org . apache . tajo . datum . DatumFactory . createInt2 ( ( ( short ) ( 5 ) ) ) ; "<AssertPlaceHolder>" ; } asInt8 ( ) { throw new org . apache . tajo . datum . exception . InvalidCastException ( ( ( type ) + "<sp>cannot<sp>be<sp>casted<sp>to<sp>LONG<sp>type" ) )...
org . junit . Assert . assertEquals ( 5 , d . asInt8 ( ) )
testExample1 ( ) { java . util . List < de . hu . berlin . wbi . objects . MutationMention > mutationMentions = seth . findMutations ( "c.31+3insT" ) ; "<AssertPlaceHolder>" ; } findMutations ( java . lang . String ) { seth . Set < seth . MutationMention > mutations = new seth . HashSet < seth . MutationMention > ( ) ;...
org . junit . Assert . assertEquals ( mutationMentions . size ( ) , 1 )
testExceptionInValidateDuringBindAndOnFailureDoesNotThrow ( ) { org . glassfish . hk2 . api . ServiceLocator locator = org . glassfish . hk2 . tests . locator . utilities . LocatorHelper . getServiceLocator ( org . glassfish . hk2 . tests . locator . negative . validation . ValidationServiceImpl . class , org . glassfi...
org . junit . Assert . assertNull ( ss )
testCompletenessOfSpecifiedParent ( ) { org . apache . taverna . scufl2 . api . core . Workflow w = new org . apache . taverna . scufl2 . api . core . Workflow ( ) ; w . setName ( "fred" ) ; org . apache . taverna . scufl2 . api . container . WorkflowBundle wb = new org . apache . taverna . scufl2 . api . container . W...
org . junit . Assert . assertEquals ( 0 , nullFieldProblems . size ( ) )
testFindAll ( ) { org . oscarehr . common . model . ScheduleTemplateCode scheduleTempCode1 = new org . oscarehr . common . model . ScheduleTemplateCode ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( scheduleTempCode1 ) ; dao . persist ( scheduleTempCode1 ) ; org . os...
org . junit . Assert . assertTrue ( true )