input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetName_1 ( ) { com . impetus . ankush . agent . action . impl . Property fixture = new com . impetus . ankush . agent . action . impl . Property ( ) ; fixture . setDescription ( "" ) ; fixture . setName ( "" ) ; fixture . setValue ( "" ) ; java . lang . String result = fixture . getName ( ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( "" , result )
testInterpolation2 ( ) { final int sz = 21 ; double [ ] xval = new double [ sz ] ; double [ ] yval = new double [ sz ] ; final double delta = 1.0 / ( sz - 1 ) ; for ( int i = 0 ; i < sz ; i ++ ) { xval [ i ] = ( - 1 ) + ( ( 15 * i ) * delta ) ; yval [ i ] = ( - 20 ) + ( ( 30 * i ) * delta ) ; } org . apache . commons ....
org . junit . Assert . assertEquals ( f . value ( x , y ) , bcf . value ( x , y ) , tol )
testKeyIteratorOnSplitMap ( ) { com . sun . sgs . test . app . util . TestScalableHashMap . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { java . util . Map < java . lang . Integer , java . lang ....
org . junit . Assert . assertEquals ( 0 , control . size ( ) )
canListAssetsWithOptions ( ) { java . lang . String [ ] assetNames = new java . lang . String [ ] { ( testAssetPrefix ) + "assetListOptionsA" , ( testAssetPrefix ) + "assetListOptionsB" , ( testAssetPrefix ) + "assetListOptionsC" , ( testAssetPrefix ) + "assetListOptionsD" } ; java . util . List < com . microsoft . win...
org . junit . Assert . assertEquals ( 2 , listAssetResult . size ( ) )
testHashCode ( ) { org . jfree . chart . axis . NumberTickUnit t1 = new org . jfree . chart . axis . NumberTickUnit ( 1.23 , new java . text . DecimalFormat ( "0.00" ) ) ; org . jfree . chart . axis . NumberTickUnit t2 = new org . jfree . chart . axis . NumberTickUnit ( 1.23 , new java . text . DecimalFormat ( "0.00" )...
org . junit . Assert . assertEquals ( h1 , h2 )
testCopyToWriterWithBuf ( ) { org . eclipse . jgit . lfs . lib . AnyLongObjectId id1 = org . eclipse . jgit . lfs . test . LongObjectIdTestUtils . hash ( "test" ) ; java . io . ByteArrayOutputStream os = new java . io . ByteArrayOutputStream ( 64 ) ; try ( java . io . OutputStreamWriter w = new java . io . OutputStream...
org . junit . Assert . assertEquals ( id1 , org . eclipse . jgit . lfs . lib . LongObjectId . fromString ( os . toByteArray ( ) , 0 ) )
testDepth5 ( ) { java . util . Iterator < java . util . List < java . lang . String > > d5 = new org . kitesdk . data . spi . filesystem . TestMultiLevelIterator . RecursiveMapIterator ( 5 , ( ( java . util . Map ) ( org . kitesdk . data . spi . filesystem . TestMultiLevelIterator . l1 ) ) ) ; java . util . Set < java ...
org . junit . Assert . assertEquals ( expected , com . google . common . collect . Sets . newHashSet ( d5 ) )
restoreWithFilterRecordsWarningWhenDirectoryIsNotNormalAndNotMatching ( ) { java . nio . file . Path symlink = ddfHome . resolve ( createSoftLink ( "symlink" , path ) ) ; when ( mockPathUtils . resolveAgainstDDFHome ( any ( java . nio . file . Path . class ) ) ) . thenReturn ( symlink ) ; entry = new org . codice . ddf...
org . junit . Assert . assertThat ( entry . restore ( true , ( p ) -> false ) , org . hamcrest . CoreMatchers . equalTo ( false ) )
testFind ( ) { ch . maxant . generic_jca_adapter . MicroserviceResourceFactory msrFactory = mock ( ch . maxant . generic_jca_adapter . MicroserviceResourceFactory . class ) ; ch . maxant . generic_jca_adapter . MicroserviceXAResource xa = new ch . maxant . generic_jca_adapter . MicroserviceXAResource ( "a" , mock ( ch ...
org . junit . Assert . assertEquals ( xa , found )
shouldRoundTripXMLLiteral ( ) { java . lang . String literal = "<div<sp>xmlns=\'http://www.w3.org/1999/xhtml\'><h3>[unknown]</h3><p>(describe<sp>NameGroup<sp>\"[unknown]\")</p></div>" ; org . semanticweb . owlapi . model . OWLOntology o = getOWLOntology ( ) ; org . semanticweb . owlapi . model . OWLDataProperty p = df ...
org . junit . Assert . assertTrue ( string . contains ( literal ) )
testDoNotFlushCacheEntriesOnHead ( ) { final org . apache . hc . core5 . http . HttpHost host = new org . apache . hc . core5 . http . HttpHost ( "foo.example.com" ) ; final org . apache . hc . core5 . http . HttpRequest req = new org . apache . hc . client5 . http . classic . methods . HttpHead ( "/bar" ) ; final java...
org . junit . Assert . assertEquals ( entry , backing . map . get ( key ) )
testSerialization ( ) { org . jfree . chart . plot . PiePlot p1 = new org . jfree . chart . plot . PiePlot ( null ) ; org . jfree . chart . plot . PiePlot p2 = ( ( org . jfree . chart . plot . PiePlot ) ( org . jfree . chart . TestUtils . serialised ( p1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( T extends java . i...
org . junit . Assert . assertEquals ( p1 , p2 )
bindingSetRowTest ( ) { java . lang . String nodeId = org . apache . rya . indexing . pcj . fluo . app . NodeType . generateNewFluoIdForType ( NodeType . STATEMENT_PATTERN ) ; org . eclipse . rdf4j . query . algebra . evaluation . QueryBindingSet bs = new org . eclipse . rdf4j . query . algebra . evaluation . QueryBind...
org . junit . Assert . assertEquals ( expected , actual )
testRemove ( ) { com . liferay . social . kernel . model . SocialRequest newSocialRequest = addSocialRequest ( ) ; _persistence . remove ( newSocialRequest ) ; com . liferay . social . kernel . model . SocialRequest existingSocialRequest = _persistence . fetchByPrimaryKey ( newSocialRequest . getPrimaryKey ( ) ) ; "<As...
org . junit . Assert . assertNull ( existingSocialRequest )
ChaCha20Poly1305Keygen ( ) { org . libsodium . jni . Sodium sodium = org . libsodium . jni . NaCl . sodium ( ) ; byte [ ] key = new byte [ org . libsodium . jni . Sodium . crypto_aead_chacha20poly1305_keybytes ( ) ] ; org . libsodium . jni . Sodium . crypto_aead_chacha20poly1305_keygen ( key ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( key . length , org . libsodium . jni . Sodium . crypto_aead_chacha20poly1305_keybytes ( ) )
testInvalidProbe ( ) { java . lang . IllegalArgumentException e = null ; try { pm . getOrRunHealthCheck ( "invalidProbe" ) ; } catch ( java . lang . IllegalArgumentException e1 ) { e = e1 ; } "<AssertPlaceHolder>" ; } getOrRunHealthCheck ( java . lang . String ) { org . nuxeo . ecm . core . management . api . ProbeMana...
org . junit . Assert . assertNotNull ( e )
testFeatureCollection ( ) { edu . illinois . cs . cogcomp . edison . features . FeatureCollection f = new edu . illinois . cs . cogcomp . edison . features . FeatureCollection ( "features" ) ; f . addFeatureExtractor ( WordFeatureExtractorFactory . conflatedPOS ) ; f . addFeatureExtractor ( WordFeatureExtractorFactory ...
org . junit . Assert . assertEquals ( map . get ( id . hashCode ( ) ) , features . toString ( ) )
shouldUseCRestExceptionHandle ( ) { java . lang . Exception e = new java . lang . Exception ( ) ; java . lang . RuntimeException expected = new java . lang . RuntimeException ( ) ; mockStatic ( org . codegist . crest . CRestException . class ) ; when ( org . codegist . crest . CRestException . handle ( e ) ) . thenRetu...
org . junit . Assert . assertSame ( expected , e1 )
exists_A$Function1_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . Seq . apply ( ) ; boolean actual = seq . exists ( new com . m3 . scalaflavor4j . F1 < java . lang . Integer , java . lang . Boolean > ( ) { public com . m3 . scalaflavor4j . Boolean apply ( java . lang...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testInvalidateClusteredBy ( ) { hcatDriver . run ( "drop<sp>table<sp>junit_sem_analysis" ) ; query = "create<sp>table<sp>junit_sem_analysis<sp>(a<sp>int)<sp>partitioned<sp>by<sp>(b<sp>string)<sp>clustered<sp>by<sp>(a)<sp>into<sp>10<sp>buckets<sp>stored<sp>as<sp>TEXTFILE" ; org . apache . hadoop . hive . ql . processors...
org . junit . Assert . assertEquals ( 0 , response . getResponseCode ( ) )
testCheckServiceClassWithTheEndpoint ( ) { org . apache . camel . component . cxf . CxfEndpoint endpoint = createEndpoint ( getNoServiceClassURI ( ) ) ; "<AssertPlaceHolder>" ; } getServiceClass ( ) { return serviceClass ; }
org . junit . Assert . assertNull ( endpoint . getServiceClass ( ) )
testGetPaddingLength ( ) { "<AssertPlaceHolder>" ; } calculatePaddingLength ( int ) { return 0 ; }
org . junit . Assert . assertEquals ( record . calculatePaddingLength ( 0 ) , 0 )
testSet_IAtomContainer_IAtomContainer ( ) { org . openscience . cdk . smiles . SmilesParser sp = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . DefaultChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . interfaces . IAtomContainer target = sp . parseSmiles ( "C\\C=C/Nc1ccc...
org . junit . Assert . assertNotNull ( smsd1 . getFirstMapping ( ) )
evaluatesArithmetics ( ) { org . teavm . flavour . expr . test . IntComputation c = parseExpr ( org . teavm . flavour . expr . test . IntComputation . class , "intValue<sp>-<sp>3" ) ; vars . intValue ( 8 ) ; "<AssertPlaceHolder>" ; } parseExpr ( java . lang . Class , java . lang . String ) { org . teavm . flavour . exp...
org . junit . Assert . assertThat ( c . compute ( ) , org . hamcrest . Matchers . is ( 5 ) )
testAdditionOfDuplicatePeriod ( ) { org . jfree . data . time . ohlc . OHLCSeries s1 = new org . jfree . data . time . ohlc . OHLCSeries ( "s1" ) ; s1 . add ( new org . jfree . data . time . Year ( 2006 ) , 1.0 , 1.0 , 1.0 , 1.0 ) ; boolean pass = false ; try { s1 . add ( new org . jfree . data . time . Year ( 2006 ) ,...
org . junit . Assert . assertTrue ( pass )
convertToQueryBuilderParam ( ) { org . apache . sling . testing . mock . sling . servlet . MockSlingHttpServletRequest request = context . request ( ) ; request . setParameterMap ( com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . Object > builder ( ) . put ( "_ctqb" , "true" ) . b...
org . junit . Assert . assertTrue ( com . adobe . acs . commons . contentfinder . querybuilder . impl . viewhandler . GQLToQueryBuilderConverter . convertToQueryBuilder ( request ) )
testQueryStringValueExists ( ) { org . ocpsoft . rewrite . servlet . config . Query query = org . ocpsoft . rewrite . servlet . config . Query . valueExists ( "{b}ar" ) ; query . setParameterStore ( store ) ; store . get ( "b" , new org . ocpsoft . rewrite . param . DefaultParameter ( "b" ) ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( query . evaluate ( rewrite , context ) )
gettingAResourceWithAnExpiredSession ( ) { try { getAt ( aResourceURI ( ) , org . silverpeas . web . ResourceGettingTest . withAsApiToken ( java . util . UUID . randomUUID ( ) . toString ( ) ) , org . silverpeas . web . ResourceGettingTest . asMediaType ( MediaType . APPLICATION_JSON_TYPE ) , getWebEntityClass ( ) ) ; ...
org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( unauthorized ) )
loadFromFile ( ) { java . lang . String pathToConfig = "src/test/resources/" ; org . neo4j . graphdb . GraphDatabaseService graphDb = new org . neo4j . graphdb . factory . GraphDatabaseFactory ( ) . newEmbeddedDatabaseBuilder ( testDirectory . databaseDir ( ) ) . loadPropertiesFromFile ( ( pathToConfig + "neo4j.conf" )...
org . junit . Assert . assertNotNull ( graphDb )
testAddIntRdn006 ( ) { javax . naming . ldap . LdapName ln = new javax . naming . ldap . LdapName ( "" ) ; javax . naming . ldap . Rdn toadd = new javax . naming . ldap . Rdn ( "" ) ; ln . add ( 0 , toadd ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . toString ( "" ) ; }
org . junit . Assert . assertEquals ( "" , ln . toString ( ) )
testAssociationObjectParser1 ( ) { final org . opendaylight . protocol . rsvp . parser . impl . te . AssociationObjectParserIPV4 parser = new org . opendaylight . protocol . rsvp . parser . impl . te . AssociationObjectParserIPV4 ( ) ; final org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns ...
org . junit . Assert . assertArrayEquals ( TEObjectUtil . TE_LSP_ASSOCIATION_1 , org . opendaylight . protocol . util . ByteArray . getAllBytes ( output ) )
testWasEventSent_sent ( ) { org . eclipse . rap . rwt . testfixture . internal . Fixture . fakeNotifyOperation ( "w3" , "widgetSelected" , new org . eclipse . rap . json . JsonObject ( ) ) ; "<AssertPlaceHolder>" ; } wasEventSent ( java . lang . String , java . lang . String ) { org . eclipse . rap . rwt . internal . p...
org . junit . Assert . assertTrue ( org . eclipse . rap . rwt . internal . protocol . ProtocolUtil . wasEventSent ( "w3" , "widgetSelected" ) )
testToString ( ) { com . sumologic . report . config . ReportSheet reportSheet = new com . sumologic . report . config . ReportSheet ( ) ; reportSheet . setSheetName ( "foo" ) ; com . sumologic . report . config . SearchJob searchJob = new com . sumologic . report . config . SearchJob ( ) ; searchJob . setTimezone ( "P...
org . junit . Assert . assertNotNull ( reportSheet . toString ( ) )
testConstructor2 ( ) { try { new ai . labs . persistence . ResultManipulator ( new java . util . LinkedList ( ) , null ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } }
org . junit . Assert . assertEquals ( ai . labs . persistence . IllegalArgumentException . class , e . getClass ( ) )
convert_when_streamMessage_has_JMSPriority ( ) { int jmsPriority = 1 ; javax . jms . StreamMessage message = new org . apache . activemq . command . ActiveMQStreamMessage ( ) ; message . setJMSPriority ( jmsPriority ) ; message . reset ( ) ; javax . jms . StreamMessage result = uut . convert ( message ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( jmsPriority , result . getJMSPriority ( ) )
emptyCollectionToString ( ) { final java . lang . String expected = "" ; final java . util . Collection < java . lang . String > collection = new java . util . HashSet < java . lang . String > ( ) ; final java . lang . String result = org . sentilo . web . catalog . utils . CatalogUtils . collectionToString ( collectio...
org . junit . Assert . assertEquals ( expected , result )
testGetStrandNames ( ) { org . openscience . cdk . interfaces . IBioPolymer oBioPolymer = ( ( org . openscience . cdk . interfaces . IBioPolymer ) ( newChemObject ( ) ) ) ; org . openscience . cdk . interfaces . IStrand oStrand1 = oBioPolymer . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IStra...
org . junit . Assert . assertEquals ( strands . keySet ( ) , oBioPolymer . getStrandNames ( ) )
testGroupByDCAndPodNumber ( ) { com . salesforce . dva . argus . service . metric . transform . GroupByTransform transform = new com . salesforce . dva . argus . service . metric . transform . GroupByTransform ( new com . salesforce . dva . argus . service . metric . transform . TransformFactory ( null ) ) ; java . uti...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) == 4 ) )
test1processError ( ) { org . apache . ranger . rest . ServiceTagsProcessor sTagProcessor = new org . apache . ranger . rest . ServiceTagsProcessor ( null ) ; sTagProcessor . process ( serviceTags ) ; "<AssertPlaceHolder>" ; } process ( T ) { if ( value != null ) { if ( ( writer ) == null ) { org . apache . ranger . pl...
org . junit . Assert . assertNull ( serviceTags )
testApp ( ) { boolean cleanExit = com . ociweb . iot . maker . FogRuntime . testConcurrentUntilShutdownRequested ( new com . ociweb . oe . foglight . api . TransducerDemo ( ) , 1000 ) ; "<AssertPlaceHolder>" ; } testConcurrentUntilShutdownRequested ( com . ociweb . iot . maker . FogApp , long ) { return com . ociweb . ...
org . junit . Assert . assertTrue ( cleanExit )
testMergeWhenConfigurationsIsEmpty ( ) { java . nio . file . Path schemaUrl = java . nio . file . Paths . get ( java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( "override/schema.json" ) . toURI ( ) ) ; org . kaaproject . kaa . server . common . core . schema . DataSchema configuraion...
org . junit . Assert . assertNull ( mergeResult )
testBuildEnvironment ( ) { when ( rvmRubyLocator . buildEnv ( rubyRuntime . getRubyRuntimeName ( ) , rubyExecutablePath , com . google . common . collect . Maps . < java . lang . String , java . lang . String > newHashMap ( ) ) ) . thenReturn ( com . google . common . collect . Maps . < java . lang . String , java . la...
org . junit . Assert . assertThat ( envVars . size ( ) , org . hamcrest . core . Is . is ( 0 ) )
testNonTokenQop01 ( ) { java . lang . String header = "Digest<sp>qop=au{th" ; java . io . StringReader input = new java . io . StringReader ( header ) ; java . util . Map < java . lang . String , java . lang . String > result = org . apache . tomcat . util . http . parser . Authorization . parseAuthorizationDigest ( in...
org . junit . Assert . assertNull ( result )
testConstructor ( ) { de . metanome . algorithm_integration . ColumnIdentifier expectedColumn = new de . metanome . algorithm_integration . ColumnIdentifier ( "table42" , "column23" ) ; de . metanome . algorithm_integration . ColumnCombination expectedColumnCombination = new de . metanome . algorithm_integration . Colu...
org . junit . Assert . assertEquals ( expectedColumnCombination , statistic . getColumnCombination ( ) )
testDivideAndRegexInHeredocInterpolation ( ) { getContentType ( ( "test.execute<sp><<END\n" + ( "#{/[0-9]+/<sp>/<sp>5}\n" + "END" ) ) , 0 ) ; "<AssertPlaceHolder>" ; } getContentType ( java . lang . String , int ) { if ( ( partitioner ) == null ) { org . eclipse . jface . text . IDocument document = new org . eclipse ....
org . junit . Assert . assertTrue ( true )
queryFindsAllLoadedStatements_fromSet ( ) { final org . apache . rya . api . client . accumulo . AccumuloConnectionDetails connectionDetails = new org . apache . rya . api . client . accumulo . AccumuloConnectionDetails ( getUsername ( ) , getPassword ( ) . toCharArray ( ) , getInstanceName ( ) , getZookeepers ( ) ) ; ...
org . junit . Assert . assertEquals ( statements , fetched )
testWriteEntryWithBuilders ( ) { org . apache . cxf . jaxrs . provider . atom . AtomPojoProvider provider = ( ( org . apache . cxf . jaxrs . provider . atom . AtomPojoProvider ) ( ctx . getBean ( "atom2" ) ) ) ; "<AssertPlaceHolder>" ; provider . setFormattedOutput ( true ) ; java . io . ByteArrayOutputStream bos = new...
org . junit . Assert . assertNotNull ( provider )
testPOJORepoReadWithUTF8 ( ) { com . marklogic . client . pojo . PojoRepository < com . marklogic . client . functionaltest . TestPOJOSpecialCharRead . SpecialArtifact , java . lang . String > pojoReposProductsString = client . newPojoRepository ( com . marklogic . client . functionaltest . TestPOJOSpecialCharRead . Sp...
org . junit . Assert . assertTrue ( pojoReposProductsString . exists ( artifactName ) )
projectContributorCanDeleteProjectTest ( ) { final org . guvnor . common . services . project . model . WorkspaceProject project = getProject ( ) ; final java . util . Collection < org . guvnor . structure . contributors . Contributor > projectContributors = project . getRepository ( ) . getContributors ( ) ; doReturn ...
org . junit . Assert . assertTrue ( libraryPermissions . userCanDeleteProject ( project ) )
getLast ( ) { com . gs . collections . api . set . ImmutableSet < java . lang . Integer > integers = this . classUnderTest ( ) ; "<AssertPlaceHolder>" ; } getLast ( ) { return null ; }
org . junit . Assert . assertNull ( integers . getLast ( ) )
testIgnoreHeaderConfigure ( ) { org . apache . flink . api . java . io . CsvReader reader = org . apache . flink . api . java . io . CSVReaderTest . getCsvReader ( ) ; reader . ignoreFirstLine ( ) ; "<AssertPlaceHolder>" ; } ignoreFirstLine ( ) { skipFirstLineAsHeader = true ; return this ; }
org . junit . Assert . assertTrue ( reader . skipFirstLineAsHeader )
test0 ( ) { com . dianping . puma . alarm . core . model . state . PullTimeDelayAlarmState state = new com . dianping . puma . alarm . core . model . state . PullTimeDelayAlarmState ( ) ; com . dianping . puma . alarm . core . model . AlarmResult result ; com . dianping . puma . alarm . core . model . AlarmContext cont...
org . junit . Assert . assertFalse ( result . isAlarm ( ) )
testEmptyProtocolTopics ( ) { com . ebay . jetstream . messaging . transport . zookeeper . ZooKeeperTransportConfig config1 = getZkTransportConfig ( ) ; com . ebay . jetstream . messaging . transport . zookeeper . ZooKeeperTransportConfig config2 = getZkTransportConfig ( ) ; config1 . setNettyDiscoveryProtocolTopics ( ...
org . junit . Assert . assertTrue ( config1 . equals ( config2 ) )
propagatesJavaArgs ( ) { final java . lang . String result = forkingExecutor . javaArgs ( "-Dfoo=bar" ) . execute ( ( ) -> { try ( com . spotify . flo . context . ForkingExecutor inner = new com . spotify . flo . context . ForkingExecutor ( ) ) { return inner . execute ( ( ) -> java . lang . System . getProperty ( "foo...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( "bar" ) )
test_captureVideo ( ) { doNothing ( ) . when ( videocapture ) . init ( any ( com . android . ddmlib . IDevice . class ) , any ( java . lang . String . class ) ) ; @ com . att . aro . datacollector . rootedandroidcollector . impl . SuppressWarnings ( "unchecked" ) java . util . List < com . att . aro . core . datacollec...
org . junit . Assert . assertTrue ( true )
getHandlerForUsesNamespace ( ) { org . w3c . dom . Element el = org . apache . shindig . common . xml . XmlUtil . parseSilent ( "<Tag<sp>xmlns='#nottest'/>" ) ; "<AssertPlaceHolder>" ; } getHandlerFor ( org . apache . shindig . gadgets . templates . tags . NSName ) { org . apache . shindig . gadgets . templates . tags ...
org . junit . Assert . assertNull ( registry . getHandlerFor ( el ) )
testSimpleNestedColumn ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; java . lang . String rs = "select<sp>c.id,<sp>c.name,<sp>c.billing_address_id,<sp>ba.line_1,<sp>ba.city,<sp>c.updtime<sp>" + ( ( "from<sp>o_customer<sp>c<sp>" + "<sp>left<sp>join<sp>o_address<sp>ba<sp>on<sp>ba.id<sp>=<sp>c.billing_a...
org . junit . Assert . assertThat ( customers )
shouldNotMatchNotVisibleElements ( ) { com . redhat . darcy . ui . matchers . VisibleText < com . redhat . darcy . ui . api . elements . Text > matcher = new com . redhat . darcy . ui . matchers . VisibleText ( org . hamcrest . Matchers . anything ( ) ) ; com . redhat . darcy . ui . api . elements . Text mockText = moc...
org . junit . Assert . assertFalse ( matcher . matches ( mockText ) )
ensureConsistentRepresentation ( ) { org . openscience . cdk . interfaces . IAtomContainer a = org . openscience . cdk . aromaticity . AromaticityTest . smiles ( "C1=CC2=CC3=CC4=C(C=CC=C4)C=C3C=C2C=C1" ) ; org . openscience . cdk . interfaces . IAtomContainer b = org . openscience . cdk . aromaticity . AromaticityTest ...
org . junit . Assert . assertTrue ( org . openscience . cdk . tools . diff . AtomContainerDiff . diff ( a , b ) . isEmpty ( ) )
testBlankExpression ( ) { org . eclipse . birt . data . engine . api . querydefn . QueryDefinition queryDefn = newReportQuery ( ) ; java . lang . String [ ] name = new java . lang . String [ ] { "testColumn1" } ; org . eclipse . birt . data . engine . api . querydefn . ScriptExpression [ ] se = new org . eclipse . birt...
org . junit . Assert . assertNotNull ( error )
testHideNonWorkspaceElementsProjectExist ( ) { org . springsource . ide . eclipse . commons . livexp . util . Filter < org . springframework . ide . eclipse . boot . dash . model . BootDashElement > f = getFilter ( org . springframework . ide . eclipse . boot . dash . test . ToggleFiltersModelTest . HIDE_NON_WORKSPACE_...
org . junit . Assert . assertEquals ( true , f . accept ( e ) )
shouldEndpointBeRemovedFromDiscoveryPlanAfterFailures ( ) { org . openkilda . messaging . model . NetworkEndpoint source = new org . openkilda . messaging . model . NetworkEndpoint ( new org . openkilda . model . SwitchId ( "ff:01" ) , 1 ) ; dm . handlePortUp ( source . getDatapath ( ) , source . getPortNumber ( ) ) ; ...
org . junit . Assert . assertFalse ( dm . isInDiscoveryPlan ( source . getDatapath ( ) , source . getPortNumber ( ) ) )
testMasterBackground ( ) { org . apache . poi . xslf . usermodel . XMLSlideShow ppt = new org . apache . poi . xslf . usermodel . XMLSlideShow ( ) ; org . apache . poi . xslf . usermodel . XSLFBackground b = ppt . getSlideMasters ( ) . get ( 0 ) . getBackground ( ) ; b . setFillColor ( Color . RED ) ; org . apache . po...
org . junit . Assert . assertEquals ( Color . RED , b2 . getFillColor ( ) )
newObject ( ) { java . lang . Object obj = cmd . newObject ( "java.lang.String" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "" , ( ( java . lang . String ) ( obj ) ) )
testGetRestrictionTreeMissing ( ) { org . apache . jackrabbit . oak . api . Tree aceTree = when ( mock ( org . apache . jackrabbit . oak . api . Tree . class ) . getChild ( org . apache . jackrabbit . oak . spi . security . authorization . restriction . REP_RESTRICTIONS ) ) . thenReturn ( mock ( org . apache . jackrabb...
org . junit . Assert . assertEquals ( aceTree , restrictionTree )
testProviderFilter ( ) { com . weibo . api . motan . rpc . Response res = OTFilter . filter ( provider , request ) ; "<AssertPlaceHolder>" ; checkMockTracer ( ) ; } filter ( com . weibo . api . motan . rpc . Caller , com . weibo . api . motan . rpc . Request ) { assert request instanceof com . weibo . api . motan . pro...
org . junit . Assert . assertEquals ( response , res )
testReferencesToSelectExpression1 ( ) { java . lang . String query = "SELECT<sp>n.age<sp>*<sp>2<sp>AS<sp>doubleAge<sp>" + ( ( ( ( "<sp>FROM<sp>g<sp>EXPERIMENTAL_MATCH<sp>(<sp>(n)<sp>)<sp>" + "<sp>WHERE<sp>doubleAge<sp>=<sp>n.age<sp>+<sp>n.age<sp>" ) + "GROUP<sp>BY<sp>doubleAge<sp>" ) + "<sp>HAVING<sp>doubleAge<sp>=<sp>...
org . junit . Assert . assertTrue ( result . isQueryValid ( ) )
login ( ) { api . loggedIn = false ; client . login ( "user" , "pass" , "matrix.org" ) ; "<AssertPlaceHolder>" ; } login ( java . lang . String , java . lang . String , java . lang . String ) { try { sdkClient . login ( username , password , homeserver ) ; loggedIn = true ; eventBus . post ( ToggleEvent . LOGIN ) ; eve...
org . junit . Assert . assertTrue ( api . loggedIn )
whenUpdateItemThatItemChangeInMassive ( ) { ru . java_edu . start . Tracker track = new ru . java_edu . start . Tracker ( ) ; ru . java_edu . start . Task task1 = new ru . java_edu . start . Task ( "pervaja<sp>zajavka" , "eto<sp>pervaja<sp>zajavka" ) ; ru . java_edu . start . Task task2 = new ru . java_edu . start . Ta...
org . junit . Assert . assertEquals ( task2 . getName ( ) , item . getName ( ) )
testTakeWaitingOfferedDelayed ( ) { final java . util . concurrent . atomic . AtomicReference < com . taobao . metamorphosis . client . consumer . FetchRequest > offered = new java . util . concurrent . atomic . AtomicReference < com . taobao . metamorphosis . client . consumer . FetchRequest > ( ) ; final java . util ...
org . junit . Assert . assertSame ( offered . get ( ) , request )
testBuildDeleteDocumentUrl ( ) { java . lang . String expected = "http://localhost:9200/test/any_type/1" ; java . lang . String actual = com . github . aureliano . evtbridge . output . elasticsearch . ESUrlHelper . buildDeleteDocumentUrl ( this . configuration , "any_type" , "1" ) ; "<AssertPlaceHolder>" ; } buildDelet...
org . junit . Assert . assertEquals ( expected , actual )
refinementDecimalNotEquals ( ) { generateDrugHierarchy ( ) ; final com . b2international . index . query . Expression actual = eval ( java . lang . String . format ( "<%s:<sp>%s<sp>!=<sp>#5.5" , com . b2international . snowowl . snomed . core . ecl . SnomedEclEvaluationRequestTest . DRUG_ROOT , com . b2international . ...
org . junit . Assert . assertEquals ( expected , actual )
shouldReturnEmptyStringForNullStackTrace ( ) { "<AssertPlaceHolder>" ; } stackTraceToString ( java . lang . StackTraceElement [ ] ) { if ( stackTrace == null ) { return "" ; } return listToMultilineString ( org . infinitest . intellij . plugin . swingui . Arrays . asList ( stackTrace ) ) ; }
org . junit . Assert . assertEquals ( "" , stackTraceToString ( null ) )
doesNotMatchEmptyValueInExpectation ( ) { matcher . withEntry ( "foo" , "" ) ; org . mockserver . matchers . MultiValueMapMatcher mapMatcher = new org . mockserver . matchers . MultiValueMapMatcher ( new org . mockserver . logging . MockServerLogger ( ) , matcher ) ; matched . withEntry ( "foo" , "bar" , "bob" ) ; "<As...
org . junit . Assert . assertTrue ( mapMatcher . matches ( null , matched ) )
testgeefSynchronisatiePersoon ( ) { initMocks ( nl . bzk . brp . model . synchronisatie . GeefSynchronisatiePersoonBericht . class , SoortBericht . LVG_SYN_GEEF_SYNCHRONISATIE_PERSOON ) ; initBerichtVerwerker ( new java . util . ArrayList < nl . bzk . brp . model . validatie . Melding > ( ) , nl . bzk . brp . levering ...
org . junit . Assert . assertEquals ( testBericht , resultaat )
testSelectDivideBaseTable ( ) { org . verdictdb . core . sqlobject . BaseTable base = new org . verdictdb . core . sqlobject . BaseTable ( "myschema" , "mytable" , "t" ) ; java . util . List < org . verdictdb . core . sqlobject . UnnamedColumn > operands = java . util . Arrays . < org . verdictdb . core . sqlobject . U...
org . junit . Assert . assertEquals ( expected , actual )
shouldGetDefaultDbFromURIIfNoDbWasSpecified ( ) { java . net . URI uri = new java . net . URI ( "redis://host:9000" ) ; "<AssertPlaceHolder>" ; } getDBIndex ( java . net . URI ) { java . lang . String [ ] pathSplit = uri . getPath ( ) . split ( "/" , 2 ) ; if ( ( pathSplit . length ) > 1 ) { java . lang . String dbInde...
org . junit . Assert . assertEquals ( 0 , redis . clients . util . JedisURIHelper . getDBIndex ( uri ) )
testMultiRowRangeWithFilterListAndOperator ( ) { tableName = org . apache . hadoop . hbase . TableName . valueOf ( name . getMethodName ( ) ) ; org . apache . hadoop . hbase . client . Table ht = org . apache . hadoop . hbase . filter . TestMultiRowRangeFilter . TEST_UTIL . createTable ( tableName , family , Integer . ...
org . junit . Assert . assertEquals ( results1 . size ( ) , resultsSize )
testMemPipelineWithSpecificRecord ( ) { org . apache . crunch . test . Person writeRecord = createSpecificRecord ( ) ; final org . apache . crunch . PCollection < org . apache . crunch . test . Person > writeCollection = org . apache . crunch . impl . mem . MemPipeline . getInstance ( ) . create ( com . google . common...
org . junit . Assert . assertEquals ( writeRecord , readRecord )
testCreateMeasureForExternalSuccess ( ) { java . lang . String measureName = "view_item_hourly" ; org . apache . griffin . core . measure . entity . ExternalMeasure externalMeasure = createExternalMeasure ( measureName ) ; given ( measureRepo . findByNameAndDeleted ( measureName , false ) ) . willReturn ( new java . ut...
org . junit . Assert . assertEquals ( measure . getName ( ) , externalMeasure . getName ( ) )
testVar ( ) { org . nd4j . linalg . api . ndarray . INDArray data = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 4.0 , 4.0 , 4.0 , 4.0 , 8.0 , 8.0 , 8.0 , 8.0 , 4.0 , 4.0 , 4.0 , 4.0 , 8.0 , 8.0 , 8.0 , 8.0 , 4.0 , 4.0 , 4.0 , 4.0 , 8.0 , 8.0 , 8.0 , 8.0 , 4.0 , 4.0 , 4.0 , 4.0 , 8.0 , 8.0 , 8.0 , 8...
org . junit . Assert . assertEquals ( getFailureMessage ( ) , expectedResult , actualResult )
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . tools . service . builder . test . model . VersionedEntryVersion newVersionedEntryVersion = addVersionedEntryVersion ( ) ; com . liferay . portal . tools . service . builder . test . model . VersionedEntryVersion existingVersionedEntryVersion = _persistence ....
org . junit . Assert . assertEquals ( existingVersionedEntryVersion , newVersionedEntryVersion )
shouldRejectId ( ) { lb . setId ( 32 ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( lb , org . openstack . atlas . api . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultList . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
testCheckpointStatsTrackerPendingCheckpointCallback ( ) { final long timestamp = java . lang . System . currentTimeMillis ( ) ; org . apache . flink . runtime . executiongraph . ExecutionVertex vertex1 = org . apache . flink . runtime . checkpoint . CheckpointCoordinatorTest . mockExecutionVertex ( new org . apache . f...
org . junit . Assert . assertTrue ( coord . triggerCheckpoint ( timestamp , false ) )
shouldReturnLocatorFromToStringMethod ( ) { final org . openqa . selenium . StubElement stubElement = new org . openqa . selenium . StubElement ( ) { @ org . openqa . selenium . support . events . Override public java . lang . String toString ( ) { return "cheese" ; } } ; org . openqa . selenium . StubDriver driver = n...
org . junit . Assert . assertEquals ( stubElement . toString ( ) , firingElement . toString ( ) )
testGetAccessTokenNull ( ) { javax . servlet . http . HttpServletRequest request = createStrictMock ( javax . servlet . http . HttpServletRequest . class ) ; expect ( request . getHeader ( OAuth . HeaderType . AUTHORIZATION ) ) . andStubReturn ( null ) ; replay ( request ) ; org . apache . oltu . oauth2 . rs . extracto...
org . junit . Assert . assertNull ( hte . getAccessToken ( request ) )
testBasicDomainParse ( ) { org . apache . ogt . http . impl . cookie . BasicClientCookie cookie = new org . apache . ogt . http . impl . cookie . BasicClientCookie ( "name" , "value" ) ; org . apache . ogt . http . cookie . CookieAttributeHandler h = new org . apache . ogt . http . impl . cookie . BasicDomainHandler ( ...
org . junit . Assert . assertEquals ( "www.somedomain.com" , cookie . getDomain ( ) )
testOverrideOutputWriter ( ) { final java . util . List < java . lang . Object > l = new java . util . ArrayList ( ) ; spoon . Launcher spoon = new spoon . Launcher ( ) { @ spoon . test . api . Override public spoon . support . JavaOutputProcessor createOutputWriter ( ) { return new spoon . support . JavaOutputProcesso...
org . junit . Assert . assertEquals ( 3 , l . size ( ) )
testFindBraket ( ) { java . lang . String patternString = "SYN<sp>flood!<sp>From<sp><src-ip>:<src-port><sp>to<sp><dst-ip>:<dst-port>,<sp>proto<sp>TCP<sp>(zone<sp><zone-name>,<sp>int<sp><interface-name>).<sp>Occurred<sp><none><sp>times." ; int [ ] expected = new int [ ] { "SYN<sp>flood!<sp>From<sp>" . length ( ) , "SYN<...
org . junit . Assert . assertArrayEquals ( expected , actual )
testBind ( ) { final javax . naming . Name name = new javax . naming . CompositeName ( "test" ) ; final java . lang . Object value = new java . lang . Object ( ) ; org . jboss . as . naming . WritableServiceBasedNamingStore . pushOwner ( org . jboss . as . naming . WritableServiceBasedNamingStoreTestCase . OWNER_FOO ) ...
org . junit . Assert . assertEquals ( value , store . lookup ( name ) )
testAuthenticate_unknownUser_assertAssertException ( ) { org . nhindirect . common . rest . auth . BasicAuthValidator validator = buildValidator ( ) ; boolean exceptionOccured = false ; try { validator . authenticate ( "test" , "password" ) ; } catch ( org . nhindirect . common . rest . auth . exceptions . NoSuchUserEx...
org . junit . Assert . assertTrue ( exceptionOccured )
testFindByPrimaryKeyExisting ( ) { com . liferay . exportimport . kernel . model . ExportImportConfiguration newExportImportConfiguration = addExportImportConfiguration ( ) ; com . liferay . exportimport . kernel . model . ExportImportConfiguration existingExportImportConfiguration = _persistence . findByPrimaryKey ( n...
org . junit . Assert . assertEquals ( existingExportImportConfiguration , newExportImportConfiguration )
isServiceRevenueValid_serviceRevenueIsZero ( ) { org . oscm . reportingservice . business . PartnerRevenueBuilder builder = new org . oscm . reportingservice . business . PartnerRevenueBuilder ( java . util . Locale . ENGLISH , null ) ; boolean revenueValid = builder . isServiceRevenueValid ( "0.00" ) ; "<AssertPlaceHo...
org . junit . Assert . assertFalse ( revenueValid )
testReadUntilEof ( ) { java . lang . String str = "test<sp>1\n" + ( ( "test<sp>2\n" + "test<sp>3\n" ) + "exit\n" ) ; java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . InputStream in = new java . io . ByteArrayInputStream ( str . getBytes ( StandardCharsets . UTF_8 ) ) ; or...
org . junit . Assert . assertEquals ( str , str2 )
shouldFailWithInvalidCommunity ( ) { client . setCommunity ( "expensivePradaBag" ) ; try { client . getBulkOidBindingList ( OIDConstants . VS_CURRENT_CONNECTIONS ) ; } catch ( java . lang . Exception ex ) { "<AssertPlaceHolder>" ; return ; } org . junit . Assert . fail ( ) ; } getBulkOidBindingList ( java . lang . Stri...
org . junit . Assert . assertTrue ( ( ex instanceof org . openstack . atlas . util . snmp . exceptions . StingraySnmpGeneralException ) )
testPlusTimestampValues ( ) { java . lang . String sqlText = "values<sp>timestamp('2011-12-26',<sp>'17:13:30')<sp>+<sp>1" ; java . sql . ResultSet rs = com . splicemachine . derby . impl . sql . execute . operations . SimpleDateArithmeticIT . spliceClassWatcher . executeQuery ( sqlText ) ; java . lang . String expected...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testBug51686 ( ) { java . io . InputStream is = org . apache . poi . hwpf . extractor . TestWordExtractor . docTests . openResourceAsStream ( "Bug51686.doc" ) ; org . apache . poi . poifs . filesystem . POIFSFileSystem fs = new org . apache . poi . poifs . filesystem . POIFSFileSystem ( is ) ; is . close ( ) ; java . l...
org . junit . Assert . assertNotNull ( text )
getHoursReturnTheSumOfAllHours ( ) { org . libreplan . business . orders . entities . HoursGroup h1 = createHoursGroupWithCriterions ( criterion1 , criterion2 ) ; h1 . setWorkingHours ( 10 ) ; org . libreplan . business . orders . entities . HoursGroup h2 = createHoursGroupWithCriterions ( criterion1 , criterion2 ) ; h...
org . junit . Assert . assertThat ( aggregate . getHours ( ) , org . hamcrest . CoreMatchers . equalTo ( 15 ) )
shouldParseConnectScriptWithComments ( ) { java . lang . String script = "#<sp>tcp.client.connect-then-close\n" + ( ( ( ( "connect<sp>\'tcp://localhost:7788\'<sp>#<sp>Comment<sp>1\n" + "\t\t<sp>#<sp>Comment<sp>2\n" ) + "connected\n" ) + "close\n" ) + "closed\n" ) ; org . kaazing . k3po . lang . internal . parser . Scri...
org . junit . Assert . assertEquals ( expected , actual )
testGetTextCharSequence ( ) { org . eclipse . xtext . ui . label . DefaultEObjectLabelProvider defaultLabelProvider = new org . eclipse . xtext . ui . label . DefaultEObjectLabelProvider ( ) { @ org . eclipse . xtext . ui . tests . label . SuppressWarnings ( "unused" ) public java . lang . Object text ( org . eclipse ....
org . junit . Assert . assertEquals ( "testCreateStyledString" , styledText )