input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testBucketPut ( ) { byte [ ] TABLE = org . apache . hadoop . hbase . util . Bytes . toBytes ( "testBucketPut" ) ; org . apache . hadoop . hbase . client . HTable ht = org . apache . hadoop . hbase . client . TestHTableUtil . TEST_UTIL . createTable ( TABLE , org . apache . hadoop . hbase . client . TestHTableUtil . FAM...
org . junit . Assert . assertEquals ( count , puts . size ( ) )
shouldGetNullGraphIdsWhenNoCsvEntry ( ) { final java . util . Map < java . lang . String , java . lang . String > config = new java . util . HashMap ( ) ; config . put ( "some<sp>other<sp>key" , "some<sp>value" ) ; final java . util . List < java . lang . String > graphIds = uk . gov . gchq . gaffer . federatedstore . ...
org . junit . Assert . assertNull ( graphIds )
isEvictionRequired_empty ( ) { com . ibm . ws . security . authentication . internal . cache . Cache cache = new com . ibm . ws . security . authentication . internal . cache . Cache ( 0 , 12345 , 0 ) ; "<AssertPlaceHolder>" ; } isEvictionRequired ( ) { boolean evictionRequired = false ; if ( ( com . ibm . websphere . ...
org . junit . Assert . assertFalse ( cache . isEvictionRequired ( ) )
testGood_LabelWithRussian ( ) { java . lang . String moscowString = "Москва" ; java . lang . String encodedLabel = com . google . bitcoin . uri . BitcoinURI . encodeURLString ( moscowString ) ; testObject = new com . google . bitcoin . uri . BitcoinURI ( com . google . bitcoin . params . MainNetParams . get ( ) , ( ( (...
org . junit . Assert . assertEquals ( moscowString , testObject . getLabel ( ) )
getDatabaseInfo_unknown ( ) { com . navercorp . pinpoint . bootstrap . context . DatabaseInfo databaseInfo = com . navercorp . pinpoint . plugin . mongo . interceptor . DatabaseInfoUtils . getDatabaseInfo ( new java . lang . Object ( ) , UnKnownDatabaseInfo . MONGO_INSTANCE ) ; "<AssertPlaceHolder>" ; } getDatabaseInfo...
org . junit . Assert . assertEquals ( databaseInfo , UnKnownDatabaseInfo . MONGO_INSTANCE )
off ( ) { io . socket . emitter . Emitter emitter = new io . socket . emitter . Emitter ( ) ; final java . util . List < java . lang . Object > calls = new java . util . ArrayList < java . lang . Object > ( ) ; io . socket . emitter . Emitter . Listener one = new io . socket . emitter . Emitter . Listener ( ) { @ io . ...
org . junit . Assert . assertThat ( calls . toArray ( ) , org . hamcrest . CoreMatchers . is ( new java . lang . Object [ ] { "one" } ) )
testGetStartProcessByUserId ( ) { jdbcTemplate . execute ( "insert<sp>into<sp>au_userInfo(userId,USERNAME)<sp>VALUES<sp>('test_admin3','3')" ) ; java . util . List < org . foxbpm . engine . repository . ProcessDefinition > result = modelService . getStartProcessByUserId ( "test_admin3" ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertTrue ( ( ! ( result . isEmpty ( ) ) ) )
testJAXBCB_Server2 ( ) { TestLogger . logger . debug ( "------------------------------" ) ; java . lang . String reqString = "JAXBCustomBuilderServer2" ; org . apache . axis2 . jaxws . sample . wrap . sei . DocLitWrap proxy = getProxy ( ) ; proxy . twoWay ( "JAXBCustomBuilderMonitorStart" ) ; java . lang . String respo...
org . junit . Assert . assertTrue ( ( ( r2 . intValue ( ) ) > ( r1 . intValue ( ) ) ) )
testExecuteWithoutUserAccountId ( ) { org . eurekastreams . server . domain . PagedSet < org . eurekastreams . server . domain . stream . ActivityDTO > flaggedActivities = sut . execute ( new org . eurekastreams . server . action . request . stream . GetFlaggedActivitiesRequest ( 0 , 9 ) ) ; "<AssertPlaceHolder>" ; } g...
org . junit . Assert . assertEquals ( 1 , flaggedActivities . getPagedSet ( ) . size ( ) )
legacyCompatible ( ) { java . lang . String test = "secret" ; java . lang . String hashedString = org . apache . commons . codec . digest . DigestUtils . md5Hex ( test . getBytes ( "UTF-8" ) ) ; byte [ ] hashedStringBytes = hashedString . getBytes ( "UTF-8" ) ; org . apache . usergrid . security . crypto . command . Md...
org . junit . Assert . assertArrayEquals ( hashedStringBytes , results )
testDisconnectedCallbackAfterClientDropsConnection ( ) { final java . lang . String name = "dummy" ; com . sun . sgs . test . impl . service . session . TestClientSessionServiceImplv4 . DummyClient client = createDummyClient ( name ) ; try { client . connect ( serverNode . getAppPort ( ) ) ; "<AssertPlaceHolder>" ; che...
org . junit . Assert . assertTrue ( client . login ( ) )
lineContinuation ( ) { java . util . Map < java . lang . String , java . lang . String > actual = io . strimzi . operator . cluster . model . OrderedPropertiesTest . propertiesCompatibility ( "cr:split\\\rvalue\nnl:split\\\nvalue\ncrnl:split\\\r\nvalue\nno:split" ) ; io . strimzi . operator . cluster . model . OrderedP...
org . junit . Assert . assertEquals ( expected . asMap ( ) , actual )
testConstructors ( ) { gov . sandia . cognition . learning . algorithm . baseline . IdentityLearner < java . lang . String > instance = new gov . sandia . cognition . learning . algorithm . baseline . IdentityLearner < java . lang . String > ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( instance )
process_lock_2 ( ) { org . apache . jena . dboe . base . file . ProcessFileLock lock1 = org . apache . jena . dboe . base . file . ProcessFileLock . create ( lockfile ) ; org . apache . jena . dboe . base . file . ProcessFileLock lock2 = org . apache . jena . dboe . base . file . ProcessFileLock . create ( lockfile ) ;...
org . junit . Assert . assertSame ( lock1 , lock2 )
testJmsConnectionIdFromJmsSessionId ( ) { org . apache . qpid . jms . meta . JmsSessionId id1 = new org . apache . qpid . jms . meta . JmsSessionId ( firstId , 1 ) ; org . apache . qpid . jms . meta . JmsSessionId id2 = new org . apache . qpid . jms . meta . JmsSessionId ( id1 ) ; "<AssertPlaceHolder>" ; } getValue ( )...
org . junit . Assert . assertSame ( id1 . getValue ( ) , id2 . getValue ( ) )
testLockAndLoadSingleEntityByIdRevertsUnflushedMerge ( ) { org . candlepin . model . Owner owner = this . createOwner ( "owner_key-1" , "owner-1" ) ; owner . setDisplayName ( "changed_name" ) ; testOwnerCurator . merge ( owner ) ; this . testOwnerCurator . lockAndLoadById ( owner . getId ( ) ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( "owner-1" , owner . getDisplayName ( ) )
testToString ( ) { java . lang . String expectedString = org . apache . commons . lang . StringUtils . join ( new java . lang . String [ ] { "[packetId=packet_id" , "nodeId=node_id" , "portId=port_id" , "data={1}" , "attributes={packet_id=123456}" , "123456" 0 } , "," ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result . contains ( expectedString ) , org . hamcrest . CoreMatchers . is ( true ) )
testGetProjectByIdUser2_2 ( ) { org . eclipse . sw360 . datahandler . thrift . projects . Project project2 = handler . getProjectById ( "P2" , org . eclipse . sw360 . projects . ProjectHandlerTest . user2 ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( "P2" , project2 . getId ( ) )
canConvertJsonToPath ( ) { java . lang . Class < java . nio . file . Path > clazz = java . nio . file . Path . class ; org . springframework . http . MediaType mediaType = org . springframework . http . MediaType . APPLICATION_JSON ; "<AssertPlaceHolder>" ; } canRead ( java . lang . Class , org . springframework . http...
org . junit . Assert . assertFalse ( converter . canRead ( clazz , mediaType ) )
testGetCurrentResultIllegalAccessException ( ) { java . lang . reflect . Field resultSetRowField = com . pentaho . big . data . bundles . impl . shim . hbase . HBaseConnectionWrapper . getResultSetRowField ( hBaseConnectionWrapper . getRealImpl ( ) ) ; org . apache . hadoop . hbase . client . Result result = mock ( org...
org . junit . Assert . assertNull ( hBaseConnectionWrapper . getCurrentResult ( ) )
parseIotHubName_good_case_multi_separator ( ) { java . lang . String iotHubName = "IOTHUBNAME" ; java . lang . String iotHostName = "HOSTNAME.POSTFIX1.POSTFIX2" ; java . lang . String sharedAccessKeyName = "ACCESSKEYNAME" ; java . lang . String policyName = "HostName=" 2 ; java . lang . String sharedAccessKey = "123456...
org . junit . Assert . assertEquals ( "HostName=" 0 , expected , actual )
testSoftmax ( ) { org . nd4j . linalg . api . ndarray . INDArray vec = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 18 , 18 , DataType . DOUBLE ) ; org . nd4j . linalg . api . ndarray . INDArray matrix = vec . dup ( ) . reshape ( 3 , 6 ) ; org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . exec ( new ...
org . junit . Assert . assertEquals ( assertion , matrix )
testStepUp ( ) { sliderView . update ( 10 ) ; sliderView . valueChanged ( 0.1F ) ; replay ( sliderView ) ; bindToView ( ) ; slider . stepUp ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return sliderImpl . getValue ( ) ; }
org . junit . Assert . assertEquals ( 0.1F , slider . getValue ( ) )
testUndelete_AttributesNotDeleted ( ) { when ( attributes . isDeleted ( ) ) . thenReturn ( false ) ; boolean result = underTest . undelete ( blobStoreUsageChecker , new org . sonatype . nexus . blobstore . api . BlobId ( "fakeid" ) , attributes , false ) ; "<AssertPlaceHolder>" ; verify ( blobStoreUsageChecker , never ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( false ) )
extendExisting ( ) { final int [ ] expected = new int [ ] { 1 , 2 , 3 , 4 , 5 } ; final org . ops4j . pax . exam . karaf . container . internal . KarafConfigFile karafConfigFile = new org . ops4j . pax . exam . karaf . container . internal . KarafConfigFile ( org . ops4j . pax . exam . karaf . container . internal . Ka...
org . junit . Assert . assertArrayEquals ( expected , ints )
testBatches ( ) { final weka . core . Instances data = weka . util . DatasetLoader . loadAngerMeta ( ) ; final int seed = 1 ; for ( int batchSize : new int [ ] { 1 , 2 , 5 , 10 } ) { final int actual = countIterations ( data , cteii , seed , batchSize ) ; final int expected = ( ( int ) ( java . lang . Math . ceil ( ( (...
org . junit . Assert . assertEquals ( expected , actual )
testCleanupCurrentUser_NonOnBehalfUser ( ) { idService . cleanUpCurrentUser ( ) ; org . oscm . identityservice . bean . PlatformUser user = getDomainObject ( supplierAdminUser , org . oscm . identityservice . bean . PlatformUser . class ) ; "<AssertPlaceHolder>" ; } cleanUpCurrentUser ( ) { throw new java . lang . Unsu...
org . junit . Assert . assertNotNull ( user )
MathML_html ( ) { gov . uspto . patent . doc . xml . FormattedText format = new gov . uspto . patent . doc . xml . FormattedText ( ) ; java . lang . StringBuilder stb = new java . lang . StringBuilder ( ) ; stb . append ( "<p<sp>id=\"h-1\"<p><maths>" 1 ) ; stb . append ( "<p><maths>" ) ; stb . append ( "<math><mrow><mr...
org . junit . Assert . assertEquals ( expect , actual )
testCompleteBuffer ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "lexer<sp>grammar<sp>t;\n" + ( ( ( ( ( ( "ID<sp>:<sp>\'a\'..\'z\'+;\n" + "INT<sp>:<sp>\'0\'..\'9\'+;\n" ) + "SEMI<sp>:<sp>\';\';\n" ) + "ASSIGN<sp>:<sp>\'=\';\n" ) + "PLUS<sp>:<sp>\'+\';\n" ) + "MULT<sp>:<sp>\'*\';\n" ) + "WS...
org . junit . Assert . assertEquals ( expecting , result )
testEscapedPasswordAllClean ( ) { java . lang . String password = "hello" ; java . lang . String actual = org . irods . jargon . core . utils . MiscIRODSUtils . escapePasswordChars ( password ) ; "<AssertPlaceHolder>" ; } escapePasswordChars ( java . lang . String ) { if ( ( password == null ) || ( password . isEmpty (...
org . junit . Assert . assertEquals ( password , actual )
testReadWriteOneVar ( ) { edu . jhu . pacaya . gm . model . FactorGraph fg = edu . jhu . pacaya . gm . data . LibDaiFgIoTest . readFromString ( oneVarFg ) ; java . lang . String fgfile = edu . jhu . pacaya . gm . data . LibDaiFgIoTest . writeToString ( fg ) ; System . out . println ( fgfile ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( oneVarFg , fgfile )
bodyStringShouldBeParsed ( ) { byte [ ] bytes = new byte [ ] { 'a' , 'b' , 'c' } ; java . lang . String bytesString = new java . lang . String ( bytes ) ; com . android . volley . NetworkResponse response = new com . android . volley . NetworkResponse ( bytes ) ; com . navercorp . volleyextensions . request . AbstractC...
org . junit . Assert . assertTrue ( bytesString . equals ( bodyString ) )
testDeleteBankAccount ( ) { com . balancedpayments . BankAccount bankAccount = new com . balancedpayments . BankAccount ( ) ; bankAccount . name = "Harry<sp>Fakester" ; bankAccount . routing_number = "121042882" ; bankAccount . account_number = "112233a" ; bankAccount . account_type = "checking" ; bankAccount . save ( ...
org . junit . Assert . assertNotNull ( bankAccount . href )
idShouldHaveBeenSetByDB ( ) { no . kodemaker . ps . jdbiapp . repository . PersonDaoFluentStyleTest . dao . save ( new no . kodemaker . ps . jdbiapp . domain . Person ( "John<sp>Doe" , new no . kodemaker . ps . jdbiapp . domain . Email ( "john.doe@nomail.com" ) ) ) ; no . kodemaker . ps . jdbiapp . domain . Person p = ...
org . junit . Assert . assertTrue ( ( ( p . getId ( ) ) != null ) )
testByteMath ( ) { byte expected = org . stjs . generator . exec . ints . ByteMath . sum ( ByteMath . B1 , ByteMath . B2 ) ; double expectedDouble = ( ( double ) ( expected ) ) ; "<AssertPlaceHolder>" ; } executeAndReturnNumber ( java . lang . Class ) { return executeAndReturnNumber ( clazz , null ) ; }
org . junit . Assert . assertEquals ( expectedDouble , executeAndReturnNumber ( org . stjs . generator . exec . ints . ByteMath . class ) , 0 )
testSearchUserLimit ( ) { org . junit . Assume . assumeTrue ( "No<sp>multiple<sp>fulltext<sp>indexes" , coreFeature . getStorageConfiguration ( ) . supportsMultipleFulltextIndexes ( ) ) ; org . nuxeo . runtime . api . Framework . doPrivileged ( ( ) -> { try ( org . nuxeo . ecm . directory . Session userSession = userdi...
org . junit . Assert . assertEquals ( 5 , count )
testGetName ( ) { constraint . setName ( "not<sp>null" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertNotNull ( constraint . getName ( ) )
testMerge ( ) { populateQuotes ( ) ; com . questdb . std . ObjList < com . questdb . store . Journal < com . questdb . model . Quote > > journals = new com . questdb . std . ObjList < com . questdb . store . Journal < com . questdb . model . Quote > > ( ) { { add ( getFactory ( ) . reader ( com . questdb . model . Quot...
org . junit . Assert . assertTrue ( ( ts <= ( q . getTimestamp ( ) ) ) )
isSet_withUnknown ( ) { org . slf4j . MDC . put ( org . sonatype . nexus . security . UserIdMdcHelper . KEY , org . sonatype . nexus . security . UserIdHelper . UNKNOWN ) ; "<AssertPlaceHolder>" ; } isSet ( ) { org . slf4j . MDC . put ( org . sonatype . nexus . security . UserIdMdcHelper . KEY , "test" ) ; org . junit ...
org . junit . Assert . assertThat ( org . sonatype . nexus . security . UserIdMdcHelper . isSet ( ) , org . hamcrest . Matchers . is ( false ) )
testLowerCaseAlphaKeys ( ) { driver . get ( pages . javascriptPage ) ; org . openqa . selenium . WebElement element = driver . findElement ( org . openqa . selenium . By . id ( "keyReporter" ) ) ; java . lang . String lowerAlphas = "abcdefghijklmnopqrstuvwxyz" ; element . sendKeys ( lowerAlphas ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertThat ( element . getAttribute ( "value" ) , org . hamcrest . Matchers . is ( lowerAlphas ) )
testSerialization ( ) { org . jfree . chart . renderer . xy . XYStepRenderer r1 = new org . jfree . chart . renderer . xy . XYStepRenderer ( ) ; r1 . setStepPoint ( 0.123 ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutpu...
org . junit . Assert . assertEquals ( r1 , r2 )
testIsSubProject ( ) { java . io . File build = root . newFile ( "build.gradle" ) ; java . io . File settings = root . newFile ( "settings.gradle" ) ; java . io . File module = root . newFolder ( "module" ) ; java . nio . file . Files . write ( settings . toPath ( ) , java . util . Arrays . asList ( "include<sp>':modul...
org . junit . Assert . assertTrue ( gf . isSubProject ( ) )
testGetStatusCode ( ) { int expResult = 500 ; int result = instance . getStatusCode ( ) ; "<AssertPlaceHolder>" ; } getStatusCode ( ) { return statusCode ; }
org . junit . Assert . assertEquals ( expResult , result )
equals_refreshPeriodDifferent_returnsFalse ( ) { com . amazonaws . services . dynamodbv2 . AcquireLockOptions left = createLockOptions ( ) ; com . amazonaws . services . dynamodbv2 . AcquireLockOptions right = com . amazonaws . services . dynamodbv2 . AcquireLockOptions . builder ( "partitionKey" ) . withSortKey ( "sor...
org . junit . Assert . assertFalse ( left . equals ( right ) )
testToDatastore_9 ( ) { float f = - ( Float . MIN_VALUE ) ; com . jmethods . catatumbo . mappers . FloatMapper mapper = new com . jmethods . catatumbo . mappers . FloatMapper ( ) ; com . google . cloud . datastore . Value output = mapper . toDatastore ( f ) . build ( ) ; System . out . printf ( "%s<sp>---><sp>%s%n" , f...
org . junit . Assert . assertTrue ( java . lang . Double . valueOf ( f ) . equals ( output . get ( ) ) )
testGetQuery ( ) { org . biojava3 . alignment . template . ProfilePair < org . biojava3 . core . sequence . ProteinSequence , org . biojava3 . core . sequence . compound . AminoAcidCompound > all = new org . biojava3 . alignment . SimpleProfilePair < org . biojava3 . core . sequence . ProteinSequence , org . biojava3 ....
org . junit . Assert . assertEquals ( all . getQuery ( ) , pair1 )
testBondAndTF ( ) { org . openscience . cdk . isomorphism . matchers . Expr expr = new org . openscience . cdk . isomorphism . matchers . Expr ( AND , new org . openscience . cdk . isomorphism . matchers . Expr ( TRUE ) , new org . openscience . cdk . isomorphism . matchers . Expr ( FALSE ) ) ; org . openscience . cdk ...
org . junit . Assert . assertFalse ( expr . matches ( bond ) )
testGenerateCandidatesNotIncludingIntervalExtremes ( ) { final com . cronutils . model . field . CronField cronField = new com . cronutils . model . field . CronField ( com . cronutils . model . field . CronFieldName . DAY_OF_WEEK , new com . cronutils . model . field . expression . Between ( new com . cronutils . mode...
org . junit . Assert . assertTrue ( values . contains ( 29 ) )
get_distance_travelled_in_seconds_air ( ) { double val = com . levelup . java . exercises . beginner . SpeedOfSound . getDistanceTraveledInSeconds ( "air" , 1100 ) ; "<AssertPlaceHolder>" ; } getDistanceTraveledInSeconds ( java . lang . String , double ) { checkNotNull ( medium ) ; if ( medium . equalsIgnoreCase ( "air...
org . junit . Assert . assertEquals ( 1 , val , 0 )
testGetStereo ( ) { org . openscience . cdk . interfaces . IChemObject object = newChemObject ( ) ; org . openscience . cdk . interfaces . IAtom c = object . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IAtom . class , "C" ) ; org . openscience . cdk . interfaces . IAtom o = object . getBuilder...
org . junit . Assert . assertEquals ( IBond . Stereo . UP , b . getStereo ( ) )
testRMClientGetConduit ( ) { org . apache . cxf . ws . rm . Proxy proxy = new org . apache . cxf . ws . rm . Proxy ( rme ) ; org . apache . cxf . Bus bus = control . createMock ( org . apache . cxf . Bus . class ) ; org . apache . cxf . endpoint . Endpoint endpoint = control . createMock ( org . apache . cxf . endpoint...
org . junit . Assert . assertSame ( conduit , client . getConduit ( ) )
NoNodeAvailableException_3_ ( ) { com . fujitsu . dc . common . es . impl . AbstractRetryableEsRequestTest . TestRequest requestMock = org . mockito . Mockito . spy ( new com . fujitsu . dc . common . es . impl . AbstractRetryableEsRequestTest . TestRequest ( ) ) ; org . elasticsearch . client . transport . NoNodeAvail...
org . junit . Assert . assertEquals ( com . fujitsu . dc . common . es . impl . AbstractRetryableEsRequestTest . SUCCESS_RESPONSE , result )
isAuthenticationEnabledTrue ( ) { expect ( backend . nodeExists ( rootNode ) ) . andReturn ( true ) ; expect ( backend . getContent ( rootNode ) ) . andReturn ( getData ( org . talend . esb . servicelocator . client . internal . zk . RootNodeImplTest . V_5_2_0 , true ) ) ; replay ( backend ) ; "<AssertPlaceHolder>" ; v...
org . junit . Assert . assertTrue ( rootNode . isAuthenticationEnabled ( ) )
layoutRPMBuildDownloadSourcesTest ( ) { org . eclipse . linuxtools . rpm . core . RPMProject rpmProject = importSrpm ( org . eclipse . linuxtools . rpm . core . tests . DownloadPrepareSourcesTest . testProject , RPMProjectLayout . RPMBUILD ) ; "<AssertPlaceHolder>" ; downloadFile ( rpmProject ) ; checkDownloadedFile ( ...
org . junit . Assert . assertNotNull ( rpmProject )
testSerialization ( ) { org . jfree . chart . plot . ValueMarker m1 = new org . jfree . chart . plot . ValueMarker ( 25.0 ) ; org . jfree . chart . plot . ValueMarker m2 = ( ( org . jfree . chart . plot . ValueMarker ) ( org . jfree . chart . TestUtils . serialised ( m1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( ja...
org . junit . Assert . assertEquals ( m1 , m2 )
valid_fail2 ( ) { java . lang . Object [ ] argument = new java . lang . Object [ 2 ] ; argument [ 0 ] = new java . lang . Object ( ) ; argument [ 1 ] = mock ( javax . servlet . ServletResponse . class ) ; "<AssertPlaceHolder>" ; } validate ( java . lang . String ) { if ( namespace == null ) { return false ; } return co...
org . junit . Assert . assertFalse ( validator . validate ( argument ) )
ttlPropagatesToPipeline ( ) { org . apache . shindig . gadgets . DefaultGadgetSpecFactoryTest . CapturingPipeline capturingPipeline = new org . apache . shindig . gadgets . DefaultGadgetSpecFactoryTest . CapturingPipeline ( ) ; org . apache . shindig . gadgets . GadgetSpecFactory forcedCacheFactory = new org . apache ....
org . junit . Assert . assertEquals ( 10 , capturingPipeline . request . getCacheTtl ( ) )
testIsAllowedString_surrogatePairsAreNotAllowed ( ) { java . lang . String testStr = ( ( org . terasoluna . gfw . common . codepoints . CodePointsTest . SURROGATE_PAIR_CHAR_2000B ) + "" ) + ( org . terasoluna . gfw . common . codepoints . CodePointsTest . SURROGATE_PAIR_CHAR_2000B ) ; boolean result = new org . terasol...
org . junit . Assert . assertFalse ( result )
determineSchemaFindsLiterals ( ) { java . lang . String schema = TestAvroObjectInspectorGenerator . RECORD_SCHEMA ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; java . util . Properties props = new java . util . Properties ( ) ; props . put ( HaivvreoUtils ....
org . junit . Assert . assertEquals ( expected , com . linkedin . haivvreo . HaivvreoUtils . HaivvreoUtils . determineSchemaOrThrowException ( conf , props ) )
testReceiveRawBytes ( ) { transportHandler . setFetchableByte ( new byte [ ] { 1 , 2 , 3 } ) ; byte [ ] received = socket . receiveRawBytes ( ) ; "<AssertPlaceHolder>" ; } receiveRawBytes ( ) { return state . getTlsContext ( ) . getTransportHandler ( ) . fetchData ( ) ; }
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 , 3 } , received )
testSet_IAtomContainer_IAtomContainer ( ) { org . openscience . cdk . interfaces . IAtom atomSource = new org . openscience . cdk . Atom ( "R" ) ; org . openscience . cdk . interfaces . IAtom atomTarget = new org . openscience . cdk . Atom ( "R" ) ; org . openscience . cdk . interfaces . IAtomContainer source = new org...
org . junit . Assert . assertNotNull ( instance . getFirstAtomMapping ( ) )
testGetItemPadding_onBottom ( ) { folder = new org . eclipse . swt . widgets . TabFolder ( shell , org . eclipse . swt . SWT . BOTTOM ) ; firstItem = new org . eclipse . swt . widgets . TabItem ( folder , org . eclipse . swt . SWT . NONE ) ; item = new org . eclipse . swt . widgets . TabItem ( folder , org . eclipse . ...
org . junit . Assert . assertEquals ( new org . eclipse . rap . rwt . theme . BoxDimensions ( 4 , 4 , 4 , 4 ) , actual )
testBasicAutoDetect ( ) { setAuthType ( AuthType . AUTO_DETECT , true ) ; boolean result = checkExpected ( "Authentication_API_BasicDialog" , "Successfully<sp>logged<sp>in" ) ; "<AssertPlaceHolder>" ; } getExpectedErrorMsg ( ) { return expectedErrorMsg ; }
org . junit . Assert . assertTrue ( getExpectedErrorMsg ( ) , result )
testToString ( ) { java . lang . String value = com . spinn3r . artemis . util . misc . Throwables . toString ( new java . lang . NullPointerException ( "" ) ) ; "<AssertPlaceHolder>" ; } toString ( java . lang . Throwable ) { java . io . ByteArrayOutputStream bos = new java . io . ByteArrayOutputStream ( ) ; java . io...
org . junit . Assert . assertTrue ( ( value != null ) )
hasCurrentUserSubscriptions_SubscriptionManager_Authorized ( ) { java . lang . reflect . Method method = beanClass . getMethod ( "hasCurrentUserSubscriptions" ) ; boolean isSubscriptionManagerRoleAllowed = isRoleAllowed ( method , UserRoleType . SUBSCRIPTION_MANAGER ) ; "<AssertPlaceHolder>" ; } isRoleAllowed ( java . ...
org . junit . Assert . assertTrue ( isSubscriptionManagerRoleAllowed )
test37 ( ) { java . lang . String code = "x<sp>=<sp>248<sp>\n" + ( ( ( ( "while<sp>x<sp>><sp>1:<sp>\n" + "<sp>if<sp>(x<sp>%<sp>2)<sp>==<sp>0:<sp>\n" ) + "<sp>x<sp>=<sp>x<sp>/<sp>2<sp>\n" ) + "<sp>else:<sp>\n<sp>" ) + "<sp>x<sp>=<sp>3<sp>*<sp>x<sp>+<sp>1<sp>\n" ) ; java . lang . String expected = "248<sp>0<sp>MSTORE<sp>...
org . junit . Assert . assertEquals ( expected , result )
getOperationId ( ) { java . lang . String id = row . getOperationId ( ) ; "<AssertPlaceHolder>" ; } getOperationId ( ) { return operationId ; }
org . junit . Assert . assertNull ( id )
parseWithinFilter ( ) { org . deegree . filter . Filter filter = parse ( "testfilter24.xml" ) ; "<AssertPlaceHolder>" ; } parse ( java . util . Map ) { java . lang . String procedure = getRequired ( prams , "PROCEDURE" ) ; java . lang . String format = prams . get ( "OUTPUTFORMAT" ) ; if ( format == null ) { format = o...
org . junit . Assert . assertNotNull ( filter )
testRemoveContentOverrideWithPresentContentOverride ( ) { org . candlepin . dto . api . v1 . ActivationKeyDTO dto = new org . candlepin . dto . api . v1 . ActivationKeyDTO ( ) ; java . util . Set < org . candlepin . dto . api . v1 . ContentOverrideDTO > overrides = new java . util . HashSet ( ) ; overrides . add ( new ...
org . junit . Assert . assertTrue ( dto . removeContentOverride ( override ) )
testForwardDeletionNormalization ( ) { de . charite . compbio . jannovar . reference . TranscriptPosition txPos = new de . charite . compbio . jannovar . reference . TranscriptPosition ( infoForward , 1 , PositionType . ZERO_BASED ) ; de . charite . compbio . jannovar . reference . GenomePosition gPos = projectorForwar...
org . junit . Assert . assertEquals ( expectedChange , updatedChange )
testBatchUpdate ( ) { java . util . List < com . vip . saturn . job . console . mybatis . entity . DashboardHistory > dashboardHistories = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 2 ; i ++ ) { com . vip . saturn . job . console . mybatis . entity . DashboardHistory dashboardHistory = new com . vip . satu...
org . junit . Assert . assertEquals ( "hello<sp>world" , history . getContent ( ) )
testForumSerialization ( ) { com . ibm . sbt . services . client . connections . forums . Forum forumGot = forumService . getForum ( createForum ( ) . getForumUuid ( ) ) ; final java . lang . String forumUuid = forumGot . getForumUuid ( ) ; new com . ibm . sbt . services . client . SerializationUtil ( ) { @ com . ibm ....
org . junit . Assert . assertEquals ( forumObject . getForumUuid ( ) , forumUuid )
testGetWithReadOnly ( ) { org . apache . hadoop . hbase . thrift2 . ThriftHBaseServiceHandler handler = createHandler ( ) ; byte [ ] rowName = org . apache . hadoop . hbase . util . Bytes . toBytes ( "testGet" ) ; java . nio . ByteBuffer table = wrap ( org . apache . hadoop . hbase . thrift2 . TestThriftHBaseServiceHan...
org . junit . Assert . assertFalse ( exceptionCaught )
testGetTemplates ( ) { addFormTemplate ( 0 , com . liferay . portal . kernel . util . StringUtil . randomString ( ) , WorkflowConstants . STATUS_ANY ) ; addFormTemplate ( 0 , com . liferay . portal . kernel . util . StringUtil . randomString ( ) , WorkflowConstants . STATUS_ANY ) ; addFormTemplate ( 0 , com . liferay ....
org . junit . Assert . assertEquals ( templates . toString ( ) , 3 , templates . size ( ) )
getArgumentsAsStringShouldIncludeDetailsFromAllValidArguments ( ) { final java . lang . String argumentsAsString = net . usikkert . kouchat . argument . Argument . getArgumentsAsString ( ) ; final java . lang . String expected = "<sp>--console<sp>(-c)<sp>Starts<sp>KouChat<sp>in<sp>console<sp>mode.\n" + ( ( ( ( ( ( "<sp...
org . junit . Assert . assertEquals ( expected , argumentsAsString )
testLinkToMethodHoverUnQualifiedOnType ( ) { try { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "package<sp>testpackage" ) ; _builder . newLine ( ) ; _builder . append ( "/**" ) ; _builder . newLine ( ) ; _builder . append...
org . junit . Assert . assertEquals ( _builder_1 . toString ( ) , docu )
evaluationIsLazyByDefault ( ) { java . lang . String [ ] arguments = new java . lang . String [ ] { "-applicationContext" , "classpath:com/ontology2/centipede/shell/objectCountingContext.xml" , "run" , "shellTest" } ; com . ontology2 . centipede . shell . InfovoreShell . main ( arguments ) ; "<AssertPlaceHolder>" ; } g...
org . junit . Assert . assertEquals ( 0 , com . ontology2 . centipede . shell . ObjectThatCountsClassInstances . getCreated ( ) )
testCreateSurveillanceServiceTableUsingViewName ( ) { java . lang . String viewName = "default" ; org . opennms . web . svclayer . model . SimpleWebTable table = m_surveillanceService . createSurveillanceTable ( viewName , new org . opennms . web . svclayer . model . ProgressMonitor ( ) { @ org . opennms . web . svclay...
org . junit . Assert . assertEquals ( "default" , table . getTitle ( ) )
remove_should_not_add_removed_descendants ( ) { java . util . List < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > input = new java . util . ArrayList < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > ( ) ; input . add ( KPN ( 4 , "AAAA" , 1 , 1 , false ) ) ; input . add ( KPN ( 4 , "A...
org . junit . Assert . assertNull ( caller . bestContig ( Integer . MAX_VALUE ) )
not_related_when_isKeysOnly ( ) { net . ripe . db . whois . query . query . Query query = net . ripe . db . whois . query . query . Query . parse ( "-K<sp>10.0.0.0" ) ; "<AssertPlaceHolder>" ; } isReturningReferencedObjects ( ) { return ! ( ( ( ( ( queryParser . hasOption ( QueryFlag . NO_REFERENCED ) ) || ( isShortHan...
org . junit . Assert . assertThat ( query . isReturningReferencedObjects ( ) , org . hamcrest . Matchers . is ( false ) )
testInstanceBadMaxErrors ( ) { org . irods . jargon . core . transfer . TransferControlBlock testControlBlock = org . irods . jargon . core . transfer . DefaultTransferControlBlock . instance ( null , ( - 3 ) ) ; "<AssertPlaceHolder>" ; } instance ( java . lang . String , int ) { return new org . irods . jargon . core ...
org . junit . Assert . assertNotNull ( testControlBlock )
testSerializeEmpty ( ) { final org . jboss . errai . forge . config . SerializableSet set = new org . jboss . errai . forge . config . SerializableSet ( ) ; "<AssertPlaceHolder>" ; } serialize ( ) { final java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; final java . util . Iterator < java . l...
org . junit . Assert . assertEquals ( "" , set . serialize ( ) )
union ( ) { com . querydsl . core . types . SubQueryExpression < java . lang . Integer > sq1 = select ( com . querydsl . jpa . AbstractSQLTest . cat . id . max ( ) ) . from ( com . querydsl . jpa . AbstractSQLTest . cat ) ; com . querydsl . core . types . SubQueryExpression < java . lang . Integer > sq2 = select ( com ...
org . junit . Assert . assertFalse ( list . isEmpty ( ) )
testSendMailFail ( ) { com . liferay . portal . kernel . test . util . PropsTestUtil . setProps ( java . util . Collections . emptyMap ( ) ) ; com . liferay . portal . kernel . nio . intraband . test . MockIntraband mockIntraband = new com . liferay . portal . kernel . nio . intraband . test . MockIntraband ( ) ; java ...
org . junit . Assert . assertSame ( iOException , me . getCause ( ) )
testMatchesWithNonMatchingHttpServiceFilter ( ) { createHttpServiceFilter ( ) ; boolean matches = matcher . matches ( ) ; "<AssertPlaceHolder>" ; } matches ( ) { return ( matchesHttpService ( ) ) && ( matchesConfigurator ( ) ) ; }
org . junit . Assert . assertFalse ( matches )
shouldApplyNodeCommandToTheStoreAndInvalidateTheCache ( ) { final org . neo4j . kernel . impl . api . BatchTransactionApplier applier = newApplier ( false ) ; final org . neo4j . kernel . impl . store . record . NodeRecord before = new org . neo4j . kernel . impl . store . record . NodeRecord ( 11 ) ; before . setLabel...
org . junit . Assert . assertFalse ( result )
testUpdateSearchIndexStatus ( ) { org . finra . herd . model . jpa . SearchIndexEntity searchIndexEntity = searchIndexDaoTestHelper . createSearchIndexEntity ( org . finra . herd . service . helper . SEARCH_INDEX_NAME , org . finra . herd . service . helper . SEARCH_INDEX_TYPE , org . finra . herd . service . helper . ...
org . junit . Assert . assertEquals ( org . finra . herd . service . helper . SEARCH_INDEX_STATUS_2 , searchIndexEntity . getStatus ( ) . getCode ( ) )
testGetOsDistroVersion ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "DevOsDitributionVersion" , "N/A" } ; try { boolean foundMatch = false ; for ( java . lang . String possibility : expected ) { if ( org . eclipse . kura . core . system . test . SystemServiceTest . systemService . getOsDistr...
org . junit . Assert . assertTrue ( foundMatch )
when_defaults_then_stationaryFilterActive ( ) { org . n52 . io . request . FilterResolver resolver = createResolver ( org . n52 . io . request . IoParameters . createDefaults ( ) ) ; "<AssertPlaceHolder>" ; } hasMobileFilter ( ) { return ( parameters . getMobile ( ) ) != null ; }
org . junit . Assert . assertFalse ( resolver . hasMobileFilter ( ) )
deveObterIcmsSTComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS icms = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS ( ) ; final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImposto...
org . junit . Assert . assertEquals ( icmsSetado , icms . getIcmsst ( ) )
g_V_hasLabelXsoftwareX_name_fold_orderXlocalX_index_unfold_order_byXtailXlocal_1XX ( ) { final org . apache . tinkerpop . gremlin . process . traversal . Traversal < org . apache . tinkerpop . gremlin . structure . Vertex , java . util . List < java . lang . Object > > traversal = get_g_V_hasLabelXsoftwareX_name_fold_o...
org . junit . Assert . assertFalse ( traversal . hasNext ( ) )
testGetParametersWithDefaultEntityAndDisabledDEfaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . enrolment . Enrolment entity = new org . lnu . is . domain . enrolment . Enrolment ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java...
org . junit . Assert . assertEquals ( expected , actual )
manageModificationVDiskDeletion_VSERVER_STARTED_Running_MailForCompletion ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSERVER_STARTED ; org . oscm . app . iaas . data . FlowState newState = null ; parameters . put ( PropertyHandler . MAIL_FOR_COMPLETION , ne...
org . junit . Assert . assertEquals ( FlowState . VSERVER_RETRIEVEGUEST , newState )
givenAPropertyAttribute_whenResolve_thenAResolvedPropertyViewAttributeShouldBeReturned ( ) { org . robobinding . viewattribute . property . PropertyViewAttributeBinder viewAttributeBinder = org . mockito . Mockito . mock ( org . robobinding . viewattribute . property . PropertyViewAttributeBinder . class ) ; org . robo...
org . junit . Assert . assertThat ( com . google . common . collect . Sets . newHashSet ( viewAttributes ) , org . hamcrest . CoreMatchers . equalTo ( com . google . common . collect . Sets . < org . robobinding . viewattribute . ViewAttributeBinder > newHashSet ( viewAttributeBinder ) ) )
testGetCallableTarget ( ) { System . out . println ( "getCallableTarget" ) ; gov . hhs . fha . nhinc . gateway . executorservice . ResponseWrapper instance = new gov . hhs . fha . nhinc . gateway . executorservice . ResponseWrapper ( ) ; java . lang . Object expResult = null ; java . lang . Object result = instance . g...
org . junit . Assert . assertEquals ( expResult , result )
testSerialization_OnlyTable ( ) { byte [ ] serialized = serialize ( tableQueryConfig ) ; org . apache . accumulo . core . client . mapreduce . InputTableConfig actualConfig = deserialize ( serialized ) ; "<AssertPlaceHolder>" ; } deserialize ( byte [ ] ) { java . io . ByteArrayInputStream bais = new java . io . ByteArr...
org . junit . Assert . assertEquals ( tableQueryConfig , actualConfig )
test_x_$_fullctx ( ) { org . antlr . v4 . runtime . atn . PredictionContext r = contextCache . join ( x ( true ) , PredictionContext . EMPTY_FULL ) ; System . out . println ( org . antlr . v4 . test . tool . TestGraphNodes . toDOTString ( r ) ) ; java . lang . String expecting = "digraph<sp>G<sp>{\n" + ( ( ( ( "rankdir...
org . junit . Assert . assertEquals ( expecting , org . antlr . v4 . test . tool . TestGraphNodes . toDOTString ( r ) )
cache_loop3 ( ) { ws . prova . kernel2 . ProvaKnowledgeBase kb = new ws . prova . reference2 . ProvaKnowledgeBaseImpl ( ) ; ws . prova . kernel2 . ProvaResultSet resultSet = new ws . prova . reference2 . ProvaResultSetImpl ( ) ; ws . prova . parser2 . ProvaParserImpl parser = new ws . prova . parser2 . ProvaParserImpl ...
org . junit . Assert . assertEquals ( resultSet . getSolutions ( ) . size ( ) , numSolutions [ ( i ++ ) ] )
test_invalid_port43_exceed_maxlength ( ) { org . restfulwhois . rdap . common . dto . DomainDto domain = generateDomainDto ( ) ; java . lang . String stringExceedOneMoreChar = createStringWithLength ( ( ( org . restfulwhois . rdap . common . util . UpdateValidateUtil . MAX_LENGTH_PORT43 ) + 1 ) ) ; domain . setPort43 (...
org . junit . Assert . assertTrue ( ( ( domain . getPort43 ( ) . length ( ) ) > ( org . restfulwhois . rdap . common . util . UpdateValidateUtil . MAX_LENGTH_PORT43 ) ) )
testNoDocumentsMarshallUnmarshall ( ) { org . jbpm . document . Documents docs = new org . jbpm . document . Documents ( ) ; byte [ ] marshalledDocuments = docsMarshallingStrategy . marshal ( null , null , docs ) ; org . jbpm . document . Documents unmarshalledDocuments = ( ( org . jbpm . document . Documents ) ( docsM...
org . junit . Assert . assertEquals ( docs . getDocuments ( ) . size ( ) , unmarshalledDocuments . getDocuments ( ) . size ( ) )