input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
readMoreLines ( ) { System . out . println ( "file<sp>with<sp>two<sp>lines" ) ; java . lang . String fileName = "/multilinefile.txt" ; angularBeans . util . FileLoader instance = new angularBeans . util . FileLoader ( ) ; java . lang . String expected = "this<sp>is<sp>a<sp>lineand<sp>this<sp>is<sp>another<sp>one" ; jav...
org . junit . Assert . assertEquals ( expected , actual )
testPullMerge ( ) { insertAndAdd ( remoteGeogig . geogig , lines3 ) ; org . locationtech . geogig . model . RevCommit commit = commit ( remoteGeogig . repo , "lines3" ) ; expectedMaster . addFirst ( commit ) ; org . locationtech . geogig . remotes . PullOp pull = pullOp ( ) ; pull . setRemote ( "origin" ) . call ( ) ; ...
org . junit . Assert . assertEquals ( expectedMaster , logged )
testAsyncDeploy ( ) { builder = new com . googlecode . mycontainer . kernel . boot . ContainerBuilder ( ) ; asyncDeployer = new com . googlecode . mycontainer . kernel . deploy . AsyncDeployer ( ) ; com . googlecode . mycontainer . mail . MailDeployer mail = builder . createDeployer ( com . googlecode . mycontainer . m...
org . junit . Assert . assertNotNull ( ctx . lookup ( "java:/Mail" ) )
parsesGivenSourceToTemplates ( ) { try ( java . io . InputStream testXslResource = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( "xslt/book.xsl" ) ) { javax . xml . transform . Source source = new javax . xml . transform . stream . StreamSource ( testXslResource ) ; javax ...
org . junit . Assert . assertNotNull ( templates )
testCacheEntriesExpire ( ) { conf . setLong ( CommonConfigurationKeys . HADOOP_SECURITY_GROUPS_CACHE_SECS , 1 ) ; org . apache . hadoop . util . FakeTimer timer = new org . apache . hadoop . util . FakeTimer ( ) ; final org . apache . hadoop . security . Groups groups = new org . apache . hadoop . security . Groups ( c...
org . junit . Assert . assertEquals ( ( startingRequestCount + 1 ) , org . apache . hadoop . security . TestGroupsCaching . FakeGroupMapping . getRequestCount ( ) )
validateMissingTypeAttributeForInlineContent ( ) { java . lang . String content = readFile ( "expanded_team.xml" ) . replace ( "type=\"application/atom+xml;type=feed\"" , "" ) ; "<AssertPlaceHolder>" ; com . sap . core . odata . api . edm . EdmEntitySet entitySet = com . sap . core . odata . testutil . mock . MockFacad...
org . junit . Assert . assertNotNull ( content )
testSetRotation ( ) { final com . ardor3d . math . Matrix3 mat3A = new com . ardor3d . math . Matrix3 ( ) ; final double a = MathUtils . HALF_PI ; final com . ardor3d . math . Quaternion quaternion = new com . ardor3d . math . Quaternion ( ) ; quaternion . fromAngleAxis ( a , Vector3 . UNIT_Y ) ; mat3A . set ( quaterni...
org . junit . Assert . assertEquals ( new com . ardor3d . math . Matrix3 ( java . lang . Math . cos ( a ) , 0 , java . lang . Math . sin ( a ) , 0 , 1 , 0 , ( - ( java . lang . Math . sin ( a ) ) ) , 0 , java . lang . Math . cos ( a ) ) , mat3A )
testEdmWithActionAndFunctionImportXML ( ) { try { java . io . InputStream stream = new java . io . ByteArrayInputStream ( org . apache . olingo . client . core . MetadataValidationTest . basicActionImportAndFunctionImport . getBytes ( "UTF-8" ) ) ; final org . apache . olingo . commons . api . edm . Edm edm = client . ...
org . junit . Assert . assertNotNull ( edm )
getPathIsCorrect ( ) { final java . lang . String iotHubHostname = "test.iothub" ; final java . lang . String deviceId = "test-deviceid" ; final java . lang . String eTag = "test-etag" ; final java . lang . String path = "test-path" ; new mockit . NonStrictExpectations ( ) { { mockIotHubUri . getPath ( ) ; result = pat...
org . junit . Assert . assertThat ( testPath , org . hamcrest . CoreMatchers . is ( expectedPath ) )
testDecimalMin ( ) { boolean expResult = true ; javax . xml . xpath . XPathExpression expr = xpath . compile ( "//xs:element[@name='decimalMinField']//xs:minInclusive/@value<sp>=<sp>106" ) ; boolean result = ( ( java . lang . Boolean ) ( expr . evaluate ( schemaDocument , XPathConstants . BOOLEAN ) ) ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( expResult , result )
testAfterFinishSuccess ( ) { com . kakao . hbase . common . HBaseClient . setAdminForTesting ( admin ) ; java . lang . String commandName = "assign" ; java . lang . String [ ] args = new java . lang . String [ ] { commandName , "localhost" , "balancer" , "on" , ( ( "--" + ( com . kakao . hbase . common . Args . OPTION_...
org . junit . Assert . assertEquals ( ( sendCountBefore + 1 ) , com . kakao . hbase . common . util . AlertSender . getSendCount ( ) )
readSI16 ( ) { final byte [ ] data = new byte [ ] { - 1 , - 1 , 0 , 0 } ; final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( data ) ; final com . flagstone . transform . coder . SWFDecoder fixture = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( ( - 1 ) , fixture . readSignedShort ( ) )
hasDuplicatesShouldReturnFalseWhenClassNameIsDuplicateButBytecodeIsIdentical ( ) { org . apache . maven . plugins . enforcer . ClassFile classFile1 = classFileHelper . createWithContent ( org . apache . maven . plugins . enforcer . ClassesWithSameNameTest . PATH_TO_CLASS_FILE , "content<sp>matches<sp>in<sp>both" ) ; or...
org . junit . Assert . assertFalse ( result )
assortedDataIntoDefaultBucketLogOutputTest ( ) { loadAssortedData ( ) ; completeSetup ( new java . lang . Integer [ 0 ] ) ; java . lang . String expectedLogSummary = getAssortedSimulatedLogOutput ( ) ; java . lang . String actualLogSummary = aiad . logAgeSummary ( ) ; "<AssertPlaceHolder>" ; } logAgeSummary ( ) { java ...
org . junit . Assert . assertEquals ( expectedLogSummary , actualLogSummary )
setSubscriptionOwner_ownerSame ( ) { org . oscm . domobjects . PlatformUser user = givenSubscriptionOwner ( ) ; org . oscm . domobjects . Subscription subscriptionToModify = givenSubscription ( user ) ; doReturn ( user ) . when ( modUpgBean . dataManager ) . getCurrentUser ( ) ; doReturn ( user ) . when ( idManager ) ....
org . junit . Assert . assertEquals ( user , subscriptionToModify . getOwner ( ) )
testTime ( ) { long millis = ( ( java . lang . System . currentTimeMillis ( ) ) / 1000 ) * 1000 ; java . sql . Time time = new java . sql . Time ( millis ) ; java . sql . Time result = executeBackAndForth ( time , java . sql . Time . class ) ; "<AssertPlaceHolder>" ; } getTime ( ) { return time ; }
org . junit . Assert . assertEquals ( time . getTime ( ) , result . getTime ( ) )
testDoOCR_File_With_Configs ( ) { net . sourceforge . tess4j . Tesseract1Test . logger . info ( "doOCR<sp>with<sp>configs" ) ; java . io . File imageFile = new java . io . File ( this . testResourcesDataPath , "eurotext.png" ) ; java . lang . String expResult = "[-0123456789.\n<sp>]+" ; java . util . List < java . lang...
org . junit . Assert . assertTrue ( result . matches ( expResult ) )
verifyThatRequest ( ) { final net . jadler . mocking . Verifying ongoingVerifying = new net . jadler . JadlerMocker ( mock ( net . jadler . stubbing . server . StubHttpServer . class ) ) . verifyThatRequest ( ) ; "<AssertPlaceHolder>" ; } verifyThatRequest ( ) { final net . jadler . mocking . Verifying ongoingVerifying...
org . junit . Assert . assertThat ( ongoingVerifying , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . not ( org . hamcrest . Matchers . nullValue ( ) ) ) )
testDetermineRandomShardNumber_TooFewShards2 ( ) { int actualShardNumber = impl . determineRandomShardNumber ( com . google . common . base . Optional . of ( 2 ) , 1 ) ; "<AssertPlaceHolder>" ; } determineRandomShardNumber ( com . google . common . base . Optional , int ) { com . google . common . base . Preconditions ...
org . junit . Assert . assertThat ( actualShardNumber , org . hamcrest . CoreMatchers . is ( 0 ) )
testProcessRequestException ( ) { final java . lang . String topic = "topic1" ; final int maxSize = 1024 ; final com . taobao . metamorphosis . cluster . Partition partition = new com . taobao . metamorphosis . cluster . Partition ( "0-0" ) ; final long offset = 12 ; final com . taobao . metamorphosis . cluster . Broke...
org . junit . Assert . assertEquals ( newRequest , this . fetchManager . takeFetchRequest ( ) )
testGetSetBlacklistedFields ( ) { java . lang . String expected = "blacklistA,blacklistB" ; java . util . Set < java . lang . String > blacklistedFields = com . google . common . collect . Sets . newHashSet ( "blacklistA" , "blacklistB" ) ; config . setBlacklistedFields ( blacklistedFields ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( expected , config . getBlacklistedFieldsAsString ( ) )
computeFactor_WinterTimeWeek ( ) { long startTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-10-17<sp>00:00:00" ) ; long endTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-10-27<sp>23:59:59" ) ; org . oscm . billingservice . service . model . BillingInput billingInp...
org . junit . Assert . assertEquals ( 2 , factor , 0 )
testDisposeFactoryCreated ( ) { org . eclipse . swt . graphics . Font font = org . eclipse . swt . internal . graphics . Graphics . getFont ( "roman" , 1 , SWT . NORMAL ) ; try { font . dispose ( ) ; org . junit . Assert . fail ( "It<sp>is<sp>not<sp>allowed<sp>to<sp>dispose<sp>of<sp>a<sp>factory-created<sp>color" ) ; }...
org . junit . Assert . assertFalse ( font . isDisposed ( ) )
testProblematicSubscriptSyntax5 ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; java . lang . String source = "{%<sp>set<sp>n...
org . junit . Assert . assertEquals ( "Bob" , writer . toString ( ) )
testProtectedServerConnection ( ) { final java . util . concurrent . CountDownLatch isListeningLatch = new java . util . concurrent . CountDownLatch ( 1 ) ; final java . lang . String restrictedModuleName = "Restricted" ; final java . lang . String authToken = "" ; java . util . concurrent . Callable < java . lang . In...
org . junit . Assert . assertTrue ( ( rc == 0 ) )
testStartAntOptimization ( ) { com . baeldung . algorithms . ga . ant_colony . AntColonyOptimization antTSP = new com . baeldung . algorithms . ga . ant_colony . AntColonyOptimization ( 5 ) ; "<AssertPlaceHolder>" ; } solve ( ) { setupAnts ( ) ; clearTrails ( ) ; java . util . stream . IntStream . range ( 0 , maxIterat...
org . junit . Assert . assertNotNull ( antTSP . solve ( ) )
testEmptyRegistry ( ) { org . apache . poi . poifs . eventfilesystem . POIFSReaderRegistry registry = new org . apache . poi . poifs . eventfilesystem . POIFSReaderRegistry ( ) ; for ( org . apache . poi . poifs . filesystem . POIFSDocumentPath path : paths ) { for ( java . lang . String name : names ) { java . util . ...
org . junit . Assert . assertTrue ( ( ! ( listeners . hasNext ( ) ) ) )
testGeslachtsnaamstamGeslachtCodeOuderlijkGezagIndicatieHeeftOuderlijkgezagActueel ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 = new nl . bzk . brp . domain . algemeen...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
basePentahoRequestContextTest ( ) { org . pentaho . platform . engine . core . system . BasePentahoRequestContext basePentahoRequestContext = new org . pentaho . platform . engine . core . system . BasePentahoRequestContext ( input ) ; java . lang . String actual = basePentahoRequestContext . getContextPath ( ) ; "<Ass...
org . junit . Assert . assertEquals ( expected , actual )
shouldReturnFalseForGreaterThan ( ) { boolean start = edu . stanford . bmir . protege . web . shared . entity . EntityNameUtils . isWordStart ( ">" , 0 ) ; "<AssertPlaceHolder>" ; } isWordStart ( java . lang . String , int ) { checkNotNull ( entityName ) ; int length = entityName . length ( ) ; checkElementIndex ( inde...
org . junit . Assert . assertEquals ( false , start )
testGetPages ( ) { "<AssertPlaceHolder>" ; } getPages ( ) { return null ; }
org . junit . Assert . assertEquals ( 4 , plugin . getPages ( ) . size ( ) )
testUnholdOrder ( ) { try { java . lang . Boolean result = runFlowAndGetPayload ( "unhold-order" ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( org . mule . modules . tests . ConnectorTestUtils . getStackTrace ( e ) ) ; } }
org . junit . Assert . assertTrue ( result )
testPingCommandStatusFail ( ) { _resource . configure ( "BigSwitchBcfResource" , _parameters ) ; com . cloud . network . bigswitch . ControlClusterStatus ccs = mock ( com . cloud . network . bigswitch . ControlClusterStatus . class ) ; when ( ccs . getStatus ( ) ) . thenReturn ( false ) ; when ( _bigswitchBcfApi . getC...
org . junit . Assert . assertTrue ( ( ping == null ) )
writeThemeMinimal ( ) { final java . io . ByteArrayOutputStream bos = new java . io . ByteArrayOutputStream ( ) ; final javax . xml . stream . XMLStreamWriter writer = javax . xml . stream . XMLOutputFactory . newInstance ( ) . createXMLStreamWriter ( bos ) ; writer . writeStartElement ( "Layer" ) ; org . deegree . com...
org . junit . Assert . assertArrayEquals ( expected , bos . toByteArray ( ) )
testEvaluationBinaryMerging ( ) { int nOut = 4 ; int [ ] shape1 = new int [ ] { 30 , nOut } ; int [ ] shape2 = new int [ ] { 50 , nOut } ; org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 12345 ) ; org . nd4j . linalg . api . ndarray . INDArray l1 = org . nd4j . linalg . factory . Nd4j . getExecutioner ...
org . junit . Assert . assertEquals ( eb . stats ( ) , eb1 . stats ( ) )
testVirtualInvocation ( ) { de . mirkosertic . bytecoder . core . VirtualMethodTest . ExtendedThing theThing = new de . mirkosertic . bytecoder . core . VirtualMethodTest . ExtendedThing ( ) ; de . mirkosertic . bytecoder . core . VirtualMethodTest . SimpleThing theSimple = theThing ; "<AssertPlaceHolder>" ; } compute ...
org . junit . Assert . assertEquals ( 10 , theSimple . compute ( ) , 0 )
shouldDoX ( ) { java . lang . Short value = PersonnelLevel . LOAN_OFFICER . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . is ( java . lang . Short . valueOf ( "1" ) ) )
captureArgument ( ) { org . mockito . ArgumentCaptor < java . lang . String > argumentCaptor = org . mockito . ArgumentCaptor . forClass ( java . lang . String . class ) ; com . in28minutes . data . api . TodoService todoService = mock ( com . in28minutes . data . api . TodoService . class ) ; java . util . List < java...
org . junit . Assert . assertEquals ( "Learn<sp>to<sp>Dance" , argumentCaptor . getValue ( ) )
testOAuthFlowWithRelativeAuthorizationUrl ( ) { com . ibm . ws . microprofile . openapi . impl . validation . OAuthFlowValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . OAuthFlowValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper ...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
createPeriodicPCJ ( ) { final java . lang . String instanceName = "unitTest" ; final java . lang . String sparql = "SELECT<sp>*<sp>WHERE<sp>{<sp>?person<sp><http://isA><sp>?noun<sp>}" ; final java . lang . String topic = "topic" ; final java . lang . String brokers = "brokers" ; final java . lang . String pcjId = "1234...
org . junit . Assert . assertEquals ( expected , message )
exceptionException ( ) { loghub . Stats . reset ( ) ; todo = ( ) -> future . setFailure ( new java . lang . RuntimeException ( ) ) ; onexception = ( e , x ) -> { try { throw e . buildException ( "got<sp>it" , x ) ; } catch ( ex ) { throw new < loghub . processors . ex > java . lang . RuntimeException ( ) ; } } ; loghub...
org . junit . Assert . assertEquals ( 1 , e . get ( "a" ) )
testExonOverlapFrameshiftOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946845\t.\tN\t<DEL:ME>\t.\t.\tSVTYPE=DEL;END=58946946" ) ; final java . lang . String expected = "1\t58946845\t.\tN\t<DEL:ME>\t.\t.\tEND=58946946;" + ( "SVANN=frameshift_truncation&mobile_element_del...
org . junit . Assert . assertEquals ( expected , actual )
testBbox ( ) { org . opengis . filter . Filter f = ff . bbox ( "geom" , ( - 10 ) , ( - 10 ) , 10 , 10 , null ) ; org . locationtech . jts . geom . Envelope env = ( ( org . locationtech . jts . geom . Envelope ) ( f . accept ( visitor , null ) ) ) ; "<AssertPlaceHolder>" ; } accept ( org . opengis . filter . expression ...
org . junit . Assert . assertEquals ( new org . locationtech . jts . geom . Envelope ( ( - 10 ) , 10 , ( - 10 ) , 10 ) , env )
testGetClientUsagePerApi ( ) { java . util . Map < java . lang . String , java . lang . String > config = new java . util . HashMap ( ) ; config . put ( "datasource.jndi-location" , io . apiman . manager . api . jdbc . JdbcMetricsAccessorTest . DB_JNDI_LOC ) ; io . apiman . manager . api . jdbc . JdbcMetricsAccessor ac...
org . junit . Assert . assertEquals ( expectedData , usage . getData ( ) )
exitStageLeft ( ) { "<AssertPlaceHolder>" ; } getStage ( javax . servlet . ServletContext ) { return com . google . inject . Stage . PRODUCTION ; }
org . junit . Assert . assertEquals ( Stage . PRODUCTION , listener . getStage ( ctx ) )
testSimpleModelWithSyntaxError ( ) { createSimpleProjectWithXtextNature ( "foo" ) ; org . eclipse . core . resources . IFile file = createFile ( ( "foo/foo" + ( F_EXT ) ) , "objekt<sp>Foo<sp>" ) ; build ( ) ; "<AssertPlaceHolder>" ; } countMarkers ( org . eclipse . core . resources . IFile ) { return file . findMarkers...
org . junit . Assert . assertEquals ( 1 , countMarkers ( file ) )
applyExpressionsWithoutExpressions ( ) { com . airhacks . enhydrator . Pump pump = new com . airhacks . enhydrator . Pump . Engine ( ) . build ( ) ; com . airhacks . enhydrator . in . Row entries = getEntries ( ) ; int expected = entries . getNumberOfColumns ( ) ; pump . applyExpressions ( entries ) ; int actual = entr...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
testIfModelTailSettingWorks_shouldWork ( ) { org . openengsb . core . api . model . ModelWrapper wrapper = org . openengsb . core . api . model . ModelWrapper . wrap ( new org . openengsb . core . weaver . test . model . TestModel ( ) ) ; java . util . List < org . openengsb . core . api . model . OpenEngSBModelEntry >...
org . junit . Assert . assertThat ( wrapper . getOpenEngSBModelTail ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
testSayHelloNegative ( ) { java . lang . String result = null ; try { result = authServiceDirectCallNoAuth . sayHello ( ) ; System . out . println ( result ) ; } catch ( com . baidu . beidou . navi . exception . rpc . AuthAccessDeniedException e ) { "<AssertPlaceHolder>" ; return ; } org . junit . Assert . fail ( "shou...
org . junit . Assert . assertThat ( e . getClass ( ) . getName ( ) , org . hamcrest . Matchers . is ( com . baidu . beidou . navi . exception . rpc . AuthAccessDeniedException . class . getName ( ) ) )
testReadMultiple ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { java . lang . String etag = callETag ( ( ) -> client ( ) . findGroups ( ) ) ; "<AssertPlaceHolder>" ; callETag ( ( ) -> client ( ) . findGroups ( ) , etag , true , 304 ) ; callETag ( ( ) -> client ( ) . findGroups ( new com . gentics . mesh ....
org . junit . Assert . assertNotNull ( etag )
shouldCopySubstringToMiddleOfByteBuffer ( ) { byte [ ] buffer = new byte [ 10 ] ; java . util . Arrays . fill ( buffer , ( ( byte ) ( 0 ) ) ) ; java . lang . String s = "TAG-" ; com . mpatric . mp3agic . BufferTools . stringIntoByteBuffer ( s , 1 , 2 , buffer , 4 ) ; byte [ ] expectedBuffer = new byte [ ] { 0 , 0 , 0 ,...
org . junit . Assert . assertArrayEquals ( expectedBuffer , buffer )
testCrossOrderOfFakedSellerReceiveRejectFromBuyer ( ) { vn . com . vndirect . exchangesimulator . model . NewOrderCross order = create2FirmOrderFakedSeller ( ) ; orderController . onEvent ( order ) ; vn . com . vndirect . exchangesimulator . model . NewOrderCross orderConfirm = create2FirmOrderFakedSeller ( ) ; orderCo...
org . junit . Assert . assertNotNull ( report )
testToStringRecursive ( ) { org . apache . avro . TestCircularReferences . ReferenceManager manager = new org . apache . avro . TestCircularReferences . ReferenceManager ( ) ; org . apache . avro . generic . GenericData model = new org . apache . avro . generic . GenericData ( ) ; model . addLogicalTypeConversion ( man...
org . junit . Assert . assertNotNull ( parent . toString ( ) )
getPositionNone ( ) { cruise . umple . parser . Token t = new cruise . umple . parser . Token ( "program" , "START" ) ; t . addSubToken ( new cruise . umple . parser . Token ( "type" , "String" ) ) ; t . addSubToken ( new cruise . umple . parser . Token ( "name" , "Student" ) ) ; "<AssertPlaceHolder>" ; } getPosition (...
org . junit . Assert . assertEquals ( null , t . getPosition ( "program" ) )
testUnknownStringEnum ( ) { com . j256 . ormlite . dao . Dao < com . j256 . ormlite . dao . JdbcBaseDaoImplTest . LocalEnumString , java . lang . Object > fooDao = createDao ( com . j256 . ormlite . dao . JdbcBaseDaoImplTest . LocalEnumString . class , true ) ; com . j256 . ormlite . dao . JdbcBaseDaoImplTest . OurEnum...
org . junit . Assert . assertEquals ( 1 , fooDao . create ( foo ) )
testRule4_2 ( ) { fr . ybonnel . csvengine . CsvEngine Rule2Engine = new fr . ybonnel . csvengine . CsvEngine ( fr . ybonnel . csvengine . model . EngineParameters . createBuilder ( ) . setValidation ( true ) . setNbLinesWithErrorsToStop ( 0 ) . build ( ) , fr . ybonnel . csvengine . ValidationTest . ObjectRule2 . clas...
org . junit . Assert . assertEquals ( 1 , exception . getErrors ( ) . size ( ) )
testRequestSync ( ) { dispatcher = org . mockito . Mockito . mock ( org . o3project . odenos . remoteobject . messagingclient . MessageDispatcher . class ) ; java . lang . String objectId = "objectId" ; target = org . mockito . Mockito . spy ( new org . o3project . odenos . remoteobject . RemoteObject ( objectId , disp...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( ( ( org . o3project . odenos . remoteobject . message . Response ) ( dummyResp ) ) ) )
testGetHeaders ( ) { org . osgi . framework . Bundle bundle = installBundle ( getBundleArchiveA ( ) ) ; try { java . util . Dictionary < java . lang . String , java . lang . String > expected = new java . util . Hashtable < java . lang . String , java . lang . String > ( ) ; expected . put ( org . osgi . framework . Co...
org . junit . Assert . assertEquals ( expected , dictionary )
invalidUnknownOcspTest01 ( ) { java . security . cert . X509Certificate caCert = ( ( java . security . cert . X509Certificate ) ( com . itextpdf . signatures . testutils . Pkcs12FileHelper . readFirstChain ( com . itextpdf . signatures . verify . OcspVerifierTest . caCertFileName , com . itextpdf . signatures . verify ...
org . junit . Assert . assertFalse ( verifyTest ( builder ) )
testShouldDisplayButNotEnabled ( ) { java . util . Map < java . lang . String , java . lang . Object > context = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; context . put ( com . nerdwin15 . stash . webhook . conditions . TriggerBuildButtonEnabledCondition . REPOSITORY , repository )...
org . junit . Assert . assertFalse ( result )
testNewConcurrentHashMapSize ( ) { java . util . Map < java . lang . Object , java . lang . Object > newHashMap = com . feilong . core . util . MapUtil . newConcurrentHashMap ( 100 ) ; "<AssertPlaceHolder>" ; } newConcurrentHashMap ( int ) { return new java . util . concurrent . ConcurrentHashMap ( com . feilong . core...
org . junit . Assert . assertThat ( newHashMap . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testNoArgs ( ) { int rc = run ( ) ; verify ( console ) . info ( contains ( "Usage:<sp>{}<sp>[options]<sp>[command]<sp>[command<sp>options]" ) , eq ( Main . DEFAULT_PROGRAM_NAME ) ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . String ) { return new org . kitesdk . data . spi . predicates . TestRegisteredPredicat...
org . junit . Assert . assertEquals ( 1 , rc )
tableOneToMany ( ) { javax . persistence . EntityManager em = factory . createEntityManager ( ) ; org . meri . jpa . relationships . entities . onetomany . TableOneToManyOwner owner = em . find ( org . meri . jpa . relationships . entities . onetomany . TableOneToManyOwner . class , 1 ) ; java . util . Collection < org...
org . junit . Assert . assertEquals ( 1 , inverses . size ( ) )
shouldNotBePresent ( ) { "<AssertPlaceHolder>" ; } isPresent ( ) { return false ; }
org . junit . Assert . assertFalse ( subject . isPresent ( ) )
testBuildWithPlaceholder ( ) { org . lnu . is . multysearch . person . PersonList context = new org . lnu . is . multysearch . person . PersonList ( ) ; context . setNames ( java . util . Arrays . asList ( "name1" , "name2" ) ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Person<sp>e<sp>WHERE<sp>(<sp>...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
constructPruner_withNullPrunerParam ( ) { final java . lang . String prunerParam = null ; final org . apache . solr . common . params . SolrParams params = mock ( org . apache . solr . common . params . SolrParams . class ) ; when ( params . get ( FacetTreeParameters . PRUNE_PARAM , null ) ) . thenReturn ( prunerParam ...
org . junit . Assert . assertNull ( factory . constructPruner ( params ) )
getCodeSystem ( ) { final com . b2international . snowowl . datastore . CodeSystemEntry codeSystem = getCodeSystem ( com . b2international . snowowl . api . japi . codesystem . CodeSystemRequestTest . SNOMEDCT ) ; "<AssertPlaceHolder>" ; } getCodeSystem ( java . lang . String ) { final java . util . Set < java . lang ....
org . junit . Assert . assertNotNull ( codeSystem )
testWithDuplicateProxyHosts ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . set ( org . apache . hadoop . security . authorize . DefaultImpersonationProvider . getTestProvider ( ) . getProxySuperuserGroupConfKey ( org . apache . hadoop . security ....
org . junit . Assert . assertEquals ( 1 , hosts . size ( ) )
nameForMock ( ) { org . easymock . tests . IMethods mock = createMock ( "mock" , org . easymock . tests . IMethods . class ) ; mock . simpleMethod ( ) ; replay ( mock ) ; try { verify ( mock ) ; } catch ( java . lang . AssertionError expected ) { java . lang . String actualMessage = expected . getMessage ( ) ; java . l...
org . junit . Assert . assertEquals ( expectedMessage , actualMessage )
testOFPFlowActionPopMplsInteger ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionPopMpls target = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlowActionPopMpls ( OFPFlowActionPopMpls . MPLS_MULTICAST ) ; "<AssertPlaceHolder>" ; } getEthType ...
org . junit . Assert . assertThat ( target . getEthType ( ) , org . hamcrest . CoreMatchers . is ( new java . lang . Integer ( OFPFlowActionPopMpls . MPLS_MULTICAST ) ) )
testRadixSortIndirect2NaNs ( ) { final double [ ] t = new double [ ] { Double . NaN , 1 , 5 , 2 , 1 , 0 , 9 , 1 , Double . NaN , 2 , 4 , 6 , 8 , 9 , 10 , 12 , 1 , 7 } ; for ( int to = 1 ; to < ( t . length ) ; to ++ ) for ( int from = 0 ; from < to ; from ++ ) { final int [ ] perm = new int [ t . length ] ; for ( int i...
org . junit . Assert . assertTrue ( ( ( java . lang . Double . compare ( t [ perm [ i ] ] , t [ perm [ ( i + 1 ) ] ] ) ) <= 0 ) )
testInsertNewOrder ( ) { int nCols = methodWatcher . getStatement ( ) . executeUpdate ( java . lang . String . format ( "insert<sp>into<sp>%s.%s<sp>values<sp>(%s)" , com . splicemachine . derby . impl . sql . actions . index . IndexIT . SCHEMA_NAME , NewOrderTable . TABLE_NAME , "1,1,2001" ) ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( 1 , nCols )
createWBFreeMarkerModuleDirective ( ) { com . webpagebytes . cms . template . FreeMarkerResourcesFactory factory = new com . webpagebytes . cms . template . FreeMarkerResourcesFactory ( ) ; com . webpagebytes . cms . template . FreeMarkerModuleDirective moduleDirective = factory . createWBFreeMarkerModuleDirective ( ) ...
org . junit . Assert . assertTrue ( ( moduleDirective != null ) )
iteratesOverData ( ) { dummyUberNode . addData ( foo ) ; dummyUberNode . addData ( bar ) ; int i = 0 ; java . lang . String [ ] expected = new java . lang . String [ ] { "foo" , "bar" } ; for ( de . escalon . hypermedia . spring . uber . UberNode uberNode : dummyUberNode ) { "<AssertPlaceHolder>" ; } } getName ( ) { re...
org . junit . Assert . assertEquals ( expected [ ( i ++ ) ] , uberNode . getName ( ) )
shouldNotMatchWhenElementIsNotDisplayed ( ) { com . redhat . darcy . ui . matchers . ElementIsDisplayed < com . redhat . darcy . ui . api . elements . Element > matcher = new com . redhat . darcy . ui . matchers . ElementIsDisplayed < com . redhat . darcy . ui . api . elements . Element > ( ) ; com . redhat . darcy . u...
org . junit . Assert . assertFalse ( matcher . matches ( mockElement ) )
isWorkingOnNamedServerHost_A$SchedulerConfig$String_completelyMatched ( ) { java . lang . String arg0 = "test2" ; com . github . seratch . taskun . scheduler . config . TaskunConfig config = new com . github . seratch . taskun . scheduler . config . TaskunConfig ( ) ; config . putNamedServer ( "test2" , java . net . In...
org . junit . Assert . assertEquals ( expected , actual )
testGetExtraHiddenFields ( ) { java . util . Map < java . lang . String , java . lang . String > map = requestDataValueProcessorAdaptor . getExtraHiddenFields ( request ) ; "<AssertPlaceHolder>" ; } getExtraHiddenFields ( javax . servlet . http . HttpServletRequest ) { return null ; }
org . junit . Assert . assertNull ( map )
manageModificationProcess_VSERVERS_STARTING_NextStatusNotNormal ( ) { doReturn ( Boolean . TRUE ) . when ( vSystemProcessor . vsysComm ) . getCombinedVServerState ( paramHandler , VServerStatus . RUNNING ) ; doReturn ( Boolean . FALSE ) . when ( vSystemProcessor ) . checkNextStatus ( org . oscm . app . iaas . VSystemPr...
org . junit . Assert . assertNull ( newState )
equalsWorksForProxiedEntities ( ) { org . springframework . data . jpa . domain . sample . CustomAbstractPersistable entity = repository . saveAndFlush ( new org . springframework . data . jpa . domain . sample . CustomAbstractPersistable ( ) ) ; em . clear ( ) ; org . springframework . data . jpa . domain . sample . C...
org . junit . Assert . assertThat ( proxy , is ( proxy ) )
testSkipListenerInvocationForRemovedScope ( ) { org . camunda . bpm . engine . test . bpmn . multiinstance . DelegateEvent . clearEvents ( ) ; org . camunda . bpm . engine . repository . ProcessDefinition sourceProcessDefinition = testHelper . deployAndGetDefinition ( org . camunda . bpm . engine . test . api . runtime...
org . junit . Assert . assertEquals ( 0 , recordedEvents . size ( ) )
testRegister ( ) { prepareTargetPath ( ) ; pipelineExecutorRegistry . register ( trace ) ; try { verify ( registryHelper , times ( 1 ) ) . storeEntry ( traceTargetPath , trace ) ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } org . guvnor . ala . pipeline . execution . P...
org . junit . Assert . assertEquals ( trace , result )
testFetchByPrimaryKeyMissing ( ) { long pk = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; com . liferay . portal . kernel . model . PasswordPolicy missingPasswordPolicy = _persistence . fetchByPrimaryKey ( pk ) ; "<AssertPlaceHolder>" ; } fetchByPrimaryKey ( long ) { return com . life...
org . junit . Assert . assertNull ( missingPasswordPolicy )
testTestWhenTrue ( ) { org . apache . commons . functor . Function < java . lang . Object , java . lang . Boolean > f = new org . apache . commons . functor . adapter . PredicateFunction < java . lang . Object > ( org . apache . commons . functor . core . Constant . TRUE ) ; "<AssertPlaceHolder>" ; } evaluate ( java . ...
org . junit . Assert . assertEquals ( Boolean . TRUE , f . evaluate ( null ) )
testOnPlayerThrowPotion ( ) { org . bukkit . entity . ThrownPotion entity = mock ( org . bukkit . entity . ThrownPotion . class ) ; when ( entity . getLocation ( ) ) . thenReturn ( location ) ; when ( entity . getShooter ( ) ) . thenReturn ( player ) ; org . bukkit . event . entity . ProjectileLaunchEvent e = new org ....
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
validInput ( ) { org . talend . dataprep . api . export . ExportParameters params = new org . talend . dataprep . api . export . ExportParameters ( ) ; params . setDatasetId ( "dataset#19843" ) ; params . setExportType ( "TOTO" ) ; java . util . Set < javax . validation . ConstraintViolation < org . talend . dataprep ....
org . junit . Assert . assertTrue ( constraintViolations . isEmpty ( ) )
testSetCustomWorkspaceTheSameValues ( ) { java . lang . String parentWorkspace = "/tmp" ; hudson . matrix . MatrixProject parentProject = new hudson . matrix . MatrixProjectTest . MatrixProjectMock ( "parent" ) ; parentProject . setCustomWorkspace ( parentWorkspace ) ; hudson . matrix . MatrixProject childProject1 = ne...
org . junit . Assert . assertEquals ( childProject1 . getCustomWorkspace ( ) , parentWorkspace )
noAuth ( ) { "<AssertPlaceHolder>" ; } getPrincipal ( org . jboss . resteasy . spi . HttpRequest ) { try { java . lang . String auth = org . candlepin . common . resteasy . auth . AuthUtil . getHeader ( httpRequest , "Authorization" ) ; if ( ( auth != null ) && ( auth . toUpperCase ( ) . startsWith ( "BASIC<sp>" ) ) ) ...
org . junit . Assert . assertNull ( this . auth . getPrincipal ( request ) )
getAll ( ) { java . util . List < eu . fayder . restcountries . v2 . Country > countries = eu . fayder . restcountries . v2 . rest . CountryService . getInstance ( ) . getAll ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "TOTAL<sp>Countries<sp>" + ( countries . size ( ) ) ) ) ; } getAll ( ) { java . util . L...
org . junit . Assert . assertFalse ( countries . isEmpty ( ) )
testClosingToClosed ( ) { final org . apache . hadoop . hdds . scm . container . IncrementalContainerReportHandler reportHandler = new org . apache . hadoop . hdds . scm . container . IncrementalContainerReportHandler ( containerManager ) ; final org . apache . hadoop . hdds . scm . container . ContainerInfo container ...
org . junit . Assert . assertEquals ( LifeCycleState . CLOSED , container . getState ( ) )
testOnExperienceOrbTargetPlayerAllowed ( ) { epl . onExperienceOrbTargetPlayer ( e ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( notifier , org . mockito . Mockito . never ( ) ) . notify ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . anyString ( ) ) ; } onExperienceOrbTargetPlayer ( or...
org . junit . Assert . assertNotNull ( e . getTarget ( ) )
testPoliciesTierLevelGet ( ) { org . wso2 . carbon . apimgt . rest . api . store . impl . TestUtil . printTestMethodName ( ) ; org . wso2 . carbon . apimgt . rest . api . store . impl . PoliciesApiServiceImpl policiesApiService = new org . wso2 . carbon . apimgt . rest . api . store . impl . PoliciesApiServiceImpl ( ) ...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
entries_returnsEmptyList ( ) { org . greenbuttonalliance . espi . common . models . atom . FeedType feed = new org . greenbuttonalliance . espi . common . models . atom . FeedType ( ) ; "<AssertPlaceHolder>" ; } getEntries ( ) { java . util . List < org . greenbuttonalliance . espi . common . models . atom . EntryType ...
org . junit . Assert . assertTrue ( feed . getEntries ( ) . isEmpty ( ) )
testRunCommand_GW5GR ( ) { System . out . println ( "Test<sp>on<sp>fruit" ) ; final java . io . File inputFile = new java . io . File ( TEST_DATA_DIR , "gw5-gramrels-sample200.tsv" ) ; for ( java . io . File f : uk . ac . susx . mlcl . byblo . TEST_OUTPUT_DIR . listFiles ( new java . io . FilenameFilter ( ) { @ uk . ac...
org . junit . Assert . assertTrue ( instance . runCommand ( ) )
queryStringIn_q_parameter ( ) { params . add ( CommonParams . Q , org . gazzax . labs . solrdf . search . component . SparqlSearchComponentTestCase . SAMPLE_SPARQL_SELECT ) ; final java . lang . String queryString = cut . queryString ( request ) ; "<AssertPlaceHolder>" ; } queryString ( org . apache . solr . request . ...
org . junit . Assert . assertEquals ( org . gazzax . labs . solrdf . search . component . SparqlSearchComponentTestCase . SAMPLE_SPARQL_SELECT , queryString )
testJsonFormat ( ) { org . onosproject . net . FilteredConnectPoint original = new org . onosproject . net . FilteredConnectPoint ( org . onosproject . codec . impl . FilteredConnectPointCodecTest . CP , org . onosproject . codec . impl . FilteredConnectPointCodecTest . VLAN_SELECTOR ) ; context . mapper ( ) . enable (...
org . junit . Assert . assertEquals ( expected , json )
testCustomNullHandler ( ) { com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . CustomFieldNullTest . Foo , java . lang . Long > dao = createDao ( com . j256 . ormlite . field . CustomFieldNullTest . Foo . class , true ) ; com . j256 . ormlite . field . CustomFieldNullTest . Foo foo = new com . j256 . orm...
org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) )
lifecycleStopStopsClientOnlyOnce ( ) { org . appenders . log4j2 . elasticsearch . jest . JestHttpObjectFactory objectFactory = spy ( org . appenders . log4j2 . elasticsearch . jest . BufferedJestHttpObjectFactoryTest . createTestObjectFactoryBuilder ( ) . build ( ) ) ; io . searchbox . client . JestClient client = mock...
org . junit . Assert . assertEquals ( ( expectedInteractions + 1 ) , mockingDetails ( client ) . getInvocations ( ) . size ( ) )
testParse ( ) { org . apache . jackrabbit . oak . segment . spi . persistence . Buffer entries = org . apache . jackrabbit . oak . segment . spi . persistence . Buffer . allocate ( 512 ) . putInt ( 1 ) . putInt ( 2 ) . put ( ( ( byte ) ( 0 ) ) ) . putInt ( 2 ) . putLong ( 1 ) . putLong ( 1 ) . putInt ( 2 ) . putInt ( o...
org . junit . Assert . assertNotNull ( org . apache . jackrabbit . oak . segment . file . tar . binaries . BinaryReferencesIndexLoaderV2Test . loadIndex ( buffer ) )
getFileReceiverShouldFindUserAndReturnFileReceiverFromTransferList ( ) { when ( controller . getUser ( 1235 ) ) . thenReturn ( testUser ) ; final net . usikkert . kouchat . net . FileReceiver originalFileReceiver = mock ( net . usikkert . kouchat . net . FileReceiver . class ) ; when ( transferList . getFileReceiver ( ...
org . junit . Assert . assertSame ( originalFileReceiver , fileReceiver )
testUserSessionNull_forIsAdmin ( ) { org . apache . ranger . security . context . RangerContextHolder . setSecurityContext ( null ) ; boolean isAdminChk = rangerBizUtil . isAdmin ( ) ; "<AssertPlaceHolder>" ; } isAdmin ( ) { org . apache . ranger . common . UserSessionBase currentUserSession = org . apache . ranger . c...
org . junit . Assert . assertFalse ( isAdminChk )