input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testFieldsCallbackWhenConstraintIsRetValue ( ) { final org . drools . workbench . screens . guided . dtable . client . wizard . column . plugins . ConditionColumnPlugin plugin = spy ( new org . drools . workbench . screens . guided . dtable . client . wizard . column . plugins . ConditionColumnPlugin ( patternPage , ca...
org . junit . Assert . assertEquals ( expected , result )
testSpace ( ) { java . lang . String output = edu . ucla . sspace . text . StringUtils . unescapeHTML ( "&nbsp;" ) ; "<AssertPlaceHolder>" ; } unescapeHTML ( java . lang . String ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( source . length ( ) ) ; int start = - 1 ; int end = - 1 ; int last = 0...
org . junit . Assert . assertEquals ( "<sp>" , output )
shouldReportNoSuperClassForObject ( ) { final java . util . Optional < org . pitest . classinfo . ClassInfo > aClass = this . testee . fetchClass ( java . lang . Object . class ) ; "<AssertPlaceHolder>" ; } getSuperClass ( ) { return getParent ( ) ; }
org . junit . Assert . assertEquals ( java . util . Optional . empty ( ) , aClass . get ( ) . getSuperClass ( ) )
testCreateKeyStores ( ) { final com . helger . as2lib . crypto . BCCryptoHelper x = new com . helger . as2lib . crypto . BCCryptoHelper ( ) ; for ( final com . helger . security . keystore . EKeyStoreType e : com . helger . security . keystore . EKeyStoreType . values ( ) ) { "<AssertPlaceHolder>" ; } } createNewKeySto...
org . junit . Assert . assertNotNull ( x . createNewKeyStore ( e ) )
testCompareToWhenItemAndObjectAreEqual ( ) { final org . kie . workbench . common . dmn . client . decision . DecisionNavigatorItem item = new org . kie . workbench . common . dmn . client . decision . DecisionNavigatorItem ( "123" ) ; final java . lang . Object object = new org . kie . workbench . common . dmn . clien...
org . junit . Assert . assertEquals ( 0 , result )
testdSquareList ( ) { IntList L = IntList . list ( 1 , 2 , 3 ) ; IntList . dSquareList ( L ) ; "<AssertPlaceHolder>" ; } dSquareList ( IntList ) { while ( L != null ) { L . first = ( L . first ) * ( L . first ) ; L = L . rest ; } }
org . junit . Assert . assertEquals ( IntList . list ( 1 , 4 , 9 ) , L )
testImageEigen5 ( ) { System . out . println ( "testImageEigen5" ) ; jsat . linear . EigenValueDecomposition evd = new jsat . linear . EigenValueDecomposition ( A ) ; "<AssertPlaceHolder>" ; } isComplex ( ) { return complexResult ; }
org . junit . Assert . assertTrue ( evd . isComplex ( ) )
testGetParametersWithDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . publicactivity . PublicActivityType entity = new org . lnu . is . domain . publicactivity . PublicActivityType ( ) ; java . lang . String name = "first<sp>blood" ; java . lang . String abbrN...
org . junit . Assert . assertEquals ( expected , actual )
deleteCorruptedFile ( ) { org . apache . lucene . store . Directory baseDir = new org . apache . lucene . store . RAMDirectory ( ) ; org . apache . jackrabbit . oak . plugins . index . lucene . LuceneIndexDefinition defn = new org . apache . jackrabbit . oak . plugins . index . lucene . LuceneIndexDefinition ( root , b...
org . junit . Assert . assertFalse ( c1 . baseDir . fileExists ( fileName ) )
testDateBridge ( ) { java . util . Calendar c = java . util . Calendar . getInstance ( java . util . TimeZone . getTimeZone ( "Europe/Rome" ) , Locale . ROOT ) ; c . set ( 2000 , Calendar . DECEMBER , 15 , 3 , 43 , 2 ) ; c . set ( Calendar . MILLISECOND , 5 ) ; java . util . Date date = new java . util . Date ( c . get...
org . junit . Assert . assertEquals ( "Date<sp>not<sp>found<sp>or<sp>not<sp>properly<sp>truncated" , 1 , result . size ( ) )
canDeleteSelf ( ) { setupPrincipal ( new org . candlepin . auth . ConsumerPrincipal ( consumer , owner ) ) ; consumerCurator . delete ( consumer ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return curator . findFile ( id ) ; }
org . junit . Assert . assertNull ( consumerCurator . get ( consumer . getId ( ) ) )
shouldRollDateForwardToNearestMonthGivenWeekAndWeekDayHaveBeenPassedInCurrentMonth ( ) { org . joda . time . DateTime firstOfMarch2010 = new org . joda . time . DateTime ( ) . withYear ( 2010 ) . withMonthOfYear ( 3 ) . withDayOfMonth ( 1 ) . toDateMidnight ( ) . toDateTime ( ) ; org . joda . time . DateTime startingFr...
org . junit . Assert . assertThat ( adjustedDate , org . hamcrest . CoreMatchers . is ( expectedAdjustedDate ) )
insertAttachedChild ( ) { com . vaadin . flow . dom . Node < ? > parent = createParentNode ( ) ; com . vaadin . flow . dom . Element child = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; parent . appendChild ( child ) ; com . vaadin . flow . dom . Element target = com . vaadin . flow . dom . ElementFacto...
org . junit . Assert . assertEquals ( child . getParent ( ) , target )
testListSize ( ) { java . util . List < java . lang . String > collection = new java . util . ArrayList < java . lang . String > ( ) ; com . orientechnologies . common . collection . OMultiValue . add ( collection , "foo" ) ; com . orientechnologies . common . collection . OMultiValue . add ( collection , "bar" ) ; com...
org . junit . Assert . assertEquals ( com . orientechnologies . common . collection . OMultiValue . getSize ( collection ) , 3 )
testSortNullMap ( ) { java . util . Map < java . lang . String , java . lang . Integer > map = com . feilong . core . util . SortUtil . sortMap ( null , com . feilong . core . util . sortutiltest . SortMapComparatorTest . KEY_REGEX_PROPERTYCOMPARATOR ) ; "<AssertPlaceHolder>" ; } sortMap ( java . util . Map , java . ut...
org . junit . Assert . assertEquals ( emptyMap ( ) , map )
testBrpRelatiesComparator ( ) { java . util . List < nl . bzk . migratiebrp . conversie . model . brp . BrpRelatie > lijst = new java . util . ArrayList ( ) ; lijst . add ( createrelatie ( "Jan<sp>Willem" , "Von" , "Baron" , "Munchausen" ) ) ; lijst . add ( createrelatie ( null , "Von" , "Baron" , null ) ) ; lijst . ad...
org . junit . Assert . assertEquals ( 4 , lijst . size ( ) )
testGetTasks ( ) { expectAuthorizationTokenCheck ( ) ; org . easymock . EasyMock . expect ( taskStorageQueryAdapter . getCompletedTaskInfoByCreatedTimeDuration ( null , null , null ) ) . andStubReturn ( com . google . common . collect . ImmutableList . of ( new org . apache . druid . indexer . TaskInfo ( "id_5" , org ....
org . junit . Assert . assertEquals ( 4 , responseObjects . size ( ) )
testUpdate_workflow_run ( ) { logger . info ( "update_workflow_run" ) ; java . util . Date beforeDate = new java . sql . Timestamp ( java . lang . System . currentTimeMillis ( ) ) ; int workflowRunId = 32 ; java . lang . String pegasusCmd = "test<sp>pegasus<sp>cmd" ; java . lang . String workflowTemplate = "test<sp>tem...
org . junit . Assert . assertEquals ( expResult , result . getReturnValue ( ) )
shouldReturnColumnNameFromQueryResultColumNames ( ) { for ( int i = 0 ; i != ( columnNames . length ) ; ++ i ) { "<AssertPlaceHolder>" ; } } getColumnName ( int ) { return provider . getStringValue ( adjustColumn ( index ) , ResultsMetadataConstants . COLUMN ) ; }
org . junit . Assert . assertThat ( metadata . getColumnName ( ( i + 1 ) ) , org . hamcrest . core . Is . is ( columnNames [ i ] ) )
testDomainLogs ( ) { clickAndWait ( "treeForm:tree:nodes:nodes_link" , org . glassfish . admingui . devtests . ApplicationTest . TRIGGER_DOMAIN_ATTRIBUTES ) ; clickAndWait ( "propertyForm:domainTabs:domainLogs" , resolveTriggerText ( org . glassfish . admingui . devtests . ApplicationTest . TRIGGER_DOMAIN_LOGS ) ) ; pr...
org . junit . Assert . assertTrue ( isTextPresent ( org . glassfish . admingui . devtests . ApplicationTest . TRIGGER_DOMAIN_LOGS ) )
testDeserialize ( ) { com . fasterxml . jackson . databind . ObjectMapper mapper = new com . fasterxml . jackson . databind . ObjectMapper ( ) ; try { uk . co . flax . biosolr . ontology . api . JenaRequest test = mapper . readValue ( new java . io . File ( uk . co . flax . biosolr . ontology . api . JenaRequestTest . ...
org . junit . Assert . assertNotNull ( test )
testAddDestinationInfoAuthorized ( ) { java . lang . String name = "myTopic" ; org . apache . activemq . command . ActiveMQDestination dest = new org . apache . activemq . command . ActiveMQTopic ( name ) ; org . apache . activemq . command . DestinationInfo info = new org . apache . activemq . command . DestinationInf...
org . junit . Assert . assertEquals ( assigned . toString ( ) , toCheck . toString ( ) )
testKafkaMetadata ( ) { props . put ( CloudPubSubSinkConnector . PUBLISH_KAFKA_METADATA , "true" ) ; props . put ( CloudPubSubSinkConnector . MAX_BUFFER_SIZE_CONFIG , com . google . pubsub . kafka . sink . CloudPubSubSinkTaskTest . CPS_MIN_BATCH_SIZE1 ) ; task . start ( props ) ; java . util . List < org . apache . kaf...
org . junit . Assert . assertEquals ( requestArgs , expectedMessages )
testRetainAggSizeBased ( ) { org . apache . edgent . topology . Topology t = newTopology ( "testRetainAggSizeBased" ) ; java . nio . file . Path basePath = createTempFile ( "test1" , "txt" , new java . lang . String [ 0 ] ) ; java . lang . String [ ] lines = getLines ( ) ; java . util . List < java . util . List < java...
org . junit . Assert . assertEquals ( 2 , expResults . size ( ) )
testGetLifecycleCertsDisabledPropNull ( ) { java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . HashMap ( ) ; org . eclipse . kura . core . cloud . CloudServiceOptions options = new org . eclipse . kura . core . cloud . CloudServiceOptions ( properties , org . eclipse . kura...
org . junit . Assert . assertFalse ( enable )
isSameNode_nonDoc ( ) { final org . exist . storage . BrokerPool mockBrokerPool = org . easymock . EasyMock . createMock ( org . exist . storage . BrokerPool . class ) ; final org . exist . Database mockDatabase = org . easymock . EasyMock . createMock ( org . exist . Database . class ) ; final org . exist . storage . ...
org . junit . Assert . assertFalse ( doc . isSameNode ( text ) )
testBug1518 ( ) { java . lang . String xml = org . apache . commons . io . IOUtils . toString ( net . sourceforge . pmd . lang . xml . XmlParserTest . class . getResourceAsStream ( "parsertests/bug1518.xml" ) , StandardCharsets . UTF_8 ) ; net . sourceforge . pmd . lang . ast . Node document = parseXml ( xml ) ; "<Asse...
org . junit . Assert . assertNotNull ( document )
createRepository ( ) { javax . jcr . Repository repository = getRepository ( ) ; "<AssertPlaceHolder>" ; } getRepository ( ) { return repository ; }
org . junit . Assert . assertNotNull ( repository )
testGetAllRoles_withRoleMapper ( ) { service = new org . pentaho . platform . plugin . services . security . userrole . ldap . DefaultLdapUserRoleListService ( usernameComparator , roleComparator , roleMapper ) ; service . setRoleComparator ( null ) ; service . setAllAuthoritiesSearch ( authSearch ) ; service . setExtr...
org . junit . Assert . assertEquals ( 3 , allRoles . size ( ) )
test13 ( ) { java . lang . String code = "a<sp>=<sp>2<sp>-<sp>0x1a<sp>*<sp>5<sp>+<sp>0xA" ; java . lang . String expected = "10<sp>5<sp>26<sp>MUL<sp>2<sp>SUB<sp>ADD<sp>0<sp>MSTORE" ; org . ethereum . serpent . SerpentParser parser = org . ethereum . serpent . ParserUtils . getParser ( org . ethereum . serpent . Serpent...
org . junit . Assert . assertEquals ( expected , result )
shouldGetTransformerSafeForRegisteredType ( ) { com . threewks . thundr . transformer . numeric . StringToLong transformer = new com . threewks . thundr . transformer . numeric . StringToLong ( ) ; transformerManager . register ( java . lang . String . class , com . threewks . thundr . transformer . Long . class , tran...
org . junit . Assert . assertThat ( transformerManager . getTransformerSafe ( java . lang . String . class , com . threewks . thundr . transformer . Long . class ) , is ( ( ( com . atomicleopard . expressive . ETransformer < java . lang . String , java . lang . Long > ) ( transformer ) ) ) )
testSendMessageFailsOnLackOfCredit ( ) { when ( protonSender . sendQueueFull ( ) ) . thenReturn ( Boolean . TRUE ) ; final org . eclipse . hono . client . impl . AbstractSender sender = newSender ( "tenant" , "endpoint" ) ; final io . vertx . core . Future < io . vertx . proton . ProtonDelivery > result = sender . send...
org . junit . Assert . assertFalse ( result . succeeded ( ) )
test_until_TemporalUnit ( int , int , int , int , int , int , java . time . temporal . TemporalUnit , long ) { org . threeten . extra . chrono . DiscordianDate start = org . threeten . extra . chrono . DiscordianDate . of ( year1 , month1 , dom1 ) ; org . threeten . extra . chrono . DiscordianDate end = org . threeten ...
org . junit . Assert . assertEquals ( expected , start . until ( end , unit ) )
testAdobeRGB98IsTypeRGB ( ) { "<AssertPlaceHolder>" ; } getColorSpace ( int ) { java . awt . color . ICC_Profile profile ; switch ( colorSpace ) { case com . twelvemonkeys . imageio . color . ColorSpaces . CS_ADOBE_RGB_1998 : synchronized ( com . twelvemonkeys . imageio . color . ColorSpaces . class ) { profile = com ....
org . junit . Assert . assertEquals ( ColorSpace . TYPE_RGB , com . twelvemonkeys . imageio . color . ColorSpaces . getColorSpace ( ColorSpaces . CS_ADOBE_RGB_1998 ) . getType ( ) )
testExchangePartitionOnlyMonthSetInPartSpec ( ) { java . util . Map < java . lang . String , java . lang . String > partitionSpecs = new java . util . HashMap ( ) ; partitionSpecs . put ( org . apache . hadoop . hive . metastore . client . TestExchangePartitions . YEAR_COL_NAME , "" ) ; partitionSpecs . put ( org . apa...
org . junit . Assert . assertTrue ( partsInDestTable . isEmpty ( ) )
testAddTrash ( ) { com . onboard . domain . model . Trash ret = trashServiceImpl . addTrash ( trash ) ; verify ( mockedTrashMapper , times ( 1 ) ) . insert ( org . mockito . Mockito . any ( com . onboard . domain . model . Trash . class ) ) ; "<AssertPlaceHolder>" ; } insert ( com . onboard . domain . model . type . In...
org . junit . Assert . assertSame ( ret , trash )
testGetCloudServiceOptions ( ) { org . osgi . service . component . ComponentContext componentContext = mock ( org . osgi . service . component . ComponentContext . class ) ; java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . HashMap ( ) ; properties . put ( ConfigurationSe...
org . junit . Assert . assertNotNull ( options )
testPropertyIsLessThanIntLiteral ( ) { net . opengis . filter . v_1_1_0 . FilterType filterType = cswFilterDelegate . propertyIsLessThan ( propertyName , intLiteral ) ; java . lang . String cqlText = org . codice . ddf . spatial . ogc . csw . catalog . source . CswCqlTextFilter . getInstance ( ) . getCqlText ( filterTy...
org . junit . Assert . assertEquals ( propertyIsLessThan , cqlText )
testContainsArrayContainer_IncludeSelf ( ) { org . roaringbitmap . Container ac = new org . roaringbitmap . ArrayContainer ( ) . add ( 0 , 10 ) ; org . roaringbitmap . Container subset = new org . roaringbitmap . ArrayContainer ( ) . add ( 0 , 10 ) ; "<AssertPlaceHolder>" ; } contains ( int ) { throw new java . lang . ...
org . junit . Assert . assertTrue ( ac . contains ( subset ) )
testCalculateOccurrenceRatio ( ) { de . metanome . backend . result_postprocessing . result_ranking . ConditionalUniqueColumnCombinationRanking ranking = new de . metanome . backend . result_postprocessing . result_ranking . ConditionalUniqueColumnCombinationRanking ( results , tableInformationMap ) ; de . metanome . b...
org . junit . Assert . assertEquals ( 1.0 , result . getOccurrenceRatio ( ) , 0.0 )
testGeenVolledigeGeenSpecifieke ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > meldingen ; meldingen = bedrijfsregel . voerRegelUit ( null , bouwPersoon ( false , false ) , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
ensureTwoMapsOfSameRuleKeyAppendablesHaveSameRuleKey ( ) { com . google . common . collect . ImmutableMap < java . lang . String , com . facebook . buck . core . rulekey . RuleKeyTest . TestRuleKeyAppendable > ruleKeyAppendableMap = com . google . common . collect . ImmutableMap . of ( "foo" , new com . facebook . buck...
org . junit . Assert . assertEquals ( ruleKeyPairA , ruleKeyPairB )
shouldRememberWhenFileWasRequested ( ) { java . io . File cachedFile = cacheFile ( ) ; java . lang . String name = ( cachedFile . getName ( ) ) + ( ResourceCache . LAST_ACCESSED_FILE_SUFFIX ) ; java . io . File lastAccessedFile = new java . io . File ( cachedFile . getParentFile ( ) , name ) ; lastAccessedFile . setLas...
org . junit . Assert . assertTrue ( ( ( lastAccessedFile . lastModified ( ) ) > lastAccessed ) )
equalsIsFalseWithDifferentLexicalForms ( ) { edu . stanford . bmir . protege . web . shared . crud . EntityCrudKitId idA = edu . stanford . bmir . protege . web . shared . crud . EntityCrudKitId . get ( "A" ) ; edu . stanford . bmir . protege . web . shared . crud . EntityCrudKitId idB = edu . stanford . bmir . protege...
org . junit . Assert . assertFalse ( idA . equals ( idB ) )
testForceDeleteWithDerived ( ) { org . oasis_open . docs . s_ramp . ns . s_ramp_v1 . XsdDocument xsd = addXsd ( ) ; addWsdl ( ) ; addWithGenericRelationship ( ) ; persistenceManager . deleteArtifact ( xsd . getUuid ( ) , org . artificer . common . ArtifactType . valueOf ( xsd ) , true ) ; org . artificer . repository ....
org . junit . Assert . assertEquals ( 0 , derived . getTotalSize ( ) )
testBuildWithDisabledDefaultConstraintWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . department . contact . DepartmentContact context = new org . lnu . is . domain . department . contact . DepartmentContact ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = n...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
changeOfLabelShouldBePickedUp ( ) { database = new org . neo4j . test . TestGraphDatabaseFactory ( ) . newImpermanentDatabaseBuilder ( ) . setConfig ( OnlineBackupSettings . online_backup_enabled , com . graphaware . tx . event . improved . FALSE ) . newGraphDatabase ( ) ; try ( com . graphaware . tx . event . improved...
org . junit . Assert . assertTrue ( mutationsOccurred . get ( ) )
testSerialization4 ( ) { org . jfree . data . time . RegularTimePeriod t = new org . jfree . data . time . Day ( ) ; org . jfree . data . time . TimeSeries series = new org . jfree . data . time . TimeSeries ( "Series<sp>1" ) ; series . add ( t , 36.4 ) ; t = t . next ( ) ; series . add ( t , 63.5 ) ; org . jfree . dat...
org . junit . Assert . assertEquals ( c1 , c2 )
parseAGoodProjectWithNoIssues ( ) { java . util . List < java . lang . String > toParse = new java . util . ArrayList < java . lang . String > ( ) ; toParse . add ( "" ) ; java . util . Map < java . lang . String , java . util . List < com . pablissimo . sonar . model . TsLintIssue > > issues = new com . pablissimo . s...
org . junit . Assert . assertEquals ( 0 , issues . size ( ) )
testDoFillFirstJobItems ( ) { hudson . util . ListBoxModel model = new se . diabol . jenkins . pipeline . DeliveryPipelineView . ComponentSpec . DescriptorImpl ( ) . doFillFirstJobItems ( jenkins . getInstance ( ) ) ; "<AssertPlaceHolder>" ; } getInstance ( ) { jenkins . model . Jenkins instance = jenkins . model . Jen...
org . junit . Assert . assertNotNull ( model )
string2token2string ( ) { for ( int i = 0 ; i <= ( Character . MAX_CODE_POINT ) ; i ++ ) { final java . lang . String s = new java . lang . String ( java . lang . Character . toChars ( i ) ) ; "<AssertPlaceHolder>" ; } } string ( org . basex . core . parse . Cmd ) { final java . lang . StringBuilder sb = new java . lan...
org . junit . Assert . assertEquals ( s , string ( token ( s ) ) )
shouldTransferSpecialCharactersDueMarshallUnmarshall ( ) { final java . util . Map < java . lang . String , java . lang . String > context = new java . util . HashMap ( ) ; context . put ( "ugly&<not>Xml-Frndly" , "H€@D-H|t$_K€Yb0\"<r>ß¿" ) ; javax . xml . bind . Marshaller marshaller = jaxbContext . createMarshaller (...
org . junit . Assert . assertThat ( mangledMap . unwrapValues ( ) , org . hamcrest . Matchers . is ( context ) )
propertyAdd_propertyBecomesAvailable ( ) { open ( ) ; com . vaadin . testbench . TestBenchElement template = $ ( com . vaadin . testbench . TestBenchElement . class ) . id ( "template" ) ; template . $ ( com . vaadin . testbench . TestBenchElement . class ) . id ( "set-property" ) . click ( ) ; com . vaadin . testbench...
org . junit . Assert . assertEquals ( "foo" , name . getText ( ) )
getSetName ( ) { java . lang . String expected = "policy<sp>name<sp>goes<sp>here" ; com . microsoft . windowsazure . services . media . models . AccessPolicyInfo policy = new com . microsoft . windowsazure . services . media . models . AccessPolicyInfo ( null , new com . microsoft . windowsazure . services . media . im...
org . junit . Assert . assertEquals ( expected , actual )
testFindWithBadPatternPathMatchingSubelement ( ) { final com . allanbank . mongodb . bson . element . BooleanElement subElement = new com . allanbank . mongodb . bson . element . BooleanElement ( "0" , false ) ; final com . allanbank . mongodb . bson . element . ArrayElement element = new com . allanbank . mongodb . bs...
org . junit . Assert . assertEquals ( 0 , elements . size ( ) )
setValueSuccess ( ) { io . trane . future . Promise < java . lang . Integer > p = io . trane . future . Promise . apply ( ) ; p . setValue ( 1 ) ; "<AssertPlaceHolder>" ; } get ( io . trane . future . Future ) { return future . get ( Duration . ZERO ) ; }
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , get ( p ) )
errorMessageInHeader_ReturnsHeaderValue_CaseInsensitive ( ) { responseBuilder . putHeader ( "x-AMZN-error-message" , software . amazon . awssdk . protocols . json . AwsJsonErrorMessageParserTest . MESSAGE_CONTENT ) ; java . lang . String parsed = software . amazon . awssdk . protocols . json . AwsJsonErrorMessageParser...
org . junit . Assert . assertEquals ( software . amazon . awssdk . protocols . json . AwsJsonErrorMessageParserTest . MESSAGE_CONTENT , parsed )
testOverrideTypes ( ) { org . openl . rules . ruleservice . databinding . JacksonObjectMapperFactoryBean bean = new org . openl . rules . ruleservice . databinding . JacksonObjectMapperFactoryBean ( ) ; bean . setSupportVariations ( true ) ; bean . setEnableDefaultTyping ( false ) ; java . util . Set < java . lang . St...
org . junit . Assert . assertTrue ( ( ( w . animal ) instanceof org . openl . rules . ruleservice . ws . databinding . JacksonObjectMapperFactoryBeanTest . Dog ) )
testSerialization ( ) { org . jfree . data . time . Week w1 = new org . jfree . data . time . Week ( 24 , 1999 ) ; org . jfree . data . time . Week w2 = ( ( org . jfree . data . time . Week ) ( org . jfree . chart . TestUtils . serialised ( w1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ) { java...
org . junit . Assert . assertEquals ( w1 , w2 )
generate_odd_numbers_in_range_guava ( ) { java . util . Set < java . lang . Integer > set = com . google . common . collect . ContiguousSet . create ( com . google . common . collect . Range . closed ( 1 , 10 ) , com . google . common . collect . DiscreteDomain . integers ( ) ) ; java . lang . Iterable < java . lang . ...
org . junit . Assert . assertThat ( oddNumbers , contains ( new java . lang . Integer ( 1 ) , new java . lang . Integer ( 3 ) , new java . lang . Integer ( 5 ) , new java . lang . Integer ( 7 ) , new java . lang . Integer ( 9 ) ) )
test ( ) { org . knowm . xchange . ExchangeSpecification spec = new org . knowm . xchange . ExchangeSpecification ( org . oxerr . okcoin . rest . OKCoinExchange . class ) ; org . knowm . xchange . Exchange exchange = ExchangeFactory . INSTANCE . createExchange ( spec ) ; org . knowm . xchange . dto . meta . RateLimit [...
org . junit . Assert . assertEquals ( 1 , rateLimits . length )
testServiceNameParser ( ) { java . lang . String path = org . apache . curator . utils . ZKPaths . makePath ( ZooKeeperServiceDiscovery . ROOT_SERVICES_PATH , "service" ) ; java . lang . String service = ZooKeeperServiceDiscovery . SERVICE_NAME_PARSER . parse ( path , null ) ; "<AssertPlaceHolder>" ; } parse ( java . l...
org . junit . Assert . assertEquals ( "service" , service )
whenUpdateUserThenUserWithNewAmount ( ) { vkaretko . User updUser = new vkaretko . User ( "Test2" , 100 ) ; stor . update ( 1 , updUser ) ; "<AssertPlaceHolder>" ; } read ( java . lang . Integer ) { vkaretko . User result = null ; if ( users . containsKey ( id ) ) { result = users . get ( id ) ; } return result ; }
org . junit . Assert . assertThat ( stor . read ( 1 ) . getName ( ) , org . hamcrest . core . Is . is ( "Test2" ) )
testSerialization ( ) { org . jfree . data . statistics . DefaultBoxAndWhiskerCategoryDataset d1 = new org . jfree . data . statistics . DefaultBoxAndWhiskerCategoryDataset ( ) ; d1 . add ( new org . jfree . data . statistics . BoxAndWhiskerItem ( new java . lang . Double ( 1.0 ) , new java . lang . Double ( 2.0 ) , ne...
org . junit . Assert . assertEquals ( d1 , d2 )
testEcho ( ) { org . apache . avro . generic . GenericRecord record = new org . apache . avro . generic . GenericData . Record ( org . apache . avro . TestProtocolGeneric . PROTOCOL . getType ( "TestRecord" ) ) ; record . put ( "name" , new org . apache . avro . util . Utf8 ( "foo" ) ) ; record . put ( "kind" , new org...
org . junit . Assert . assertEquals ( record , echoed )
testEntityWithContentLength ( ) { final org . apache . hc . core5 . http . ContentLengthStrategy lenStrategy = new org . apache . hc . core5 . http . impl . DefaultContentLengthStrategy ( ) ; final org . apache . hc . core5 . http . HttpMessage message = new org . apache . hc . core5 . http . impl . TestDefaultContentL...
org . junit . Assert . assertEquals ( 100 , lenStrategy . determineLength ( message ) )
testtimeStamp ( ) { jee . setExpression ( "timeStamp<sp>><sp>10" ) ; jee . start ( ) ; ch . qos . logback . classic . spi . ILoggingEvent event = makeLoggingEvent ( null ) ; "<AssertPlaceHolder>" ; } evaluate ( ch . qos . logback . access . spi . IAccessEvent ) { java . lang . String url = event . getRequestURL ( ) ; f...
org . junit . Assert . assertTrue ( jee . evaluate ( event ) )
testGetDisplayEventsSameStartEnd ( ) { org . joda . time . DateTimeZone tz = org . joda . time . DateTimeZone . forID ( "America/Los_Angeles" ) ; org . joda . time . DateTime eventStart = new org . joda . time . DateTime ( 2012 , 1 , 4 , 17 , 0 ) ; org . joda . time . DateTime eventEnd = new org . joda . time . DateTim...
org . junit . Assert . assertEquals ( 1 , events . size ( ) )
testParseSuperErr ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "aaa" , "bbb" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionPushPbbQuery ( actions ) ; "<AssertPlaceHolder>" ; } parse ( ) { if ( ! ( sup...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testHtmlSanitizerDefault ( ) { javax . ws . rs . core . Response response = org . jboss . resteasy . test . providers . html . HtmlSanitizerOptionalTest . client . target ( generateURL ( "/test" , org . jboss . resteasy . test . providers . html . HtmlSanitizerOptionalTest . DEFAULT ) ) . request ( ) . get ( ) ; "<Asse...
org . junit . Assert . assertEquals ( org . jboss . resteasy . test . providers . html . HtmlSanitizerOptionalTest . output , response . readEntity ( java . lang . String . class ) )
testGreaterOrEqualThan_Comparable ( ) { final java . lang . String check = "quality" ; final java . lang . String expected = "check" ; "<AssertPlaceHolder>" ; } greaterOrEqualThan ( T extends net . sf . qualitycheck . Comparable , T extends net . sf . qualitycheck . Comparable ) { net . sf . qualitycheck . Check . notN...
org . junit . Assert . assertEquals ( "quality" , net . sf . qualitycheck . Check . greaterOrEqualThan ( expected , check ) )
testTranslationCanAccessArrayByIndex ( ) { com . codiform . moo . TranslationExpressionTest . UserFirstRole ufr = new com . codiform . moo . Moo ( ) . translate ( new com . codiform . moo . TranslationExpressionTest . User ( "Geoffrey" , "Wiseman" , "ADMIN" , "NEWBIE" ) , com . codiform . moo . TranslationExpressionTes...
org . junit . Assert . assertEquals ( "ADMIN" , ufr . getFirstRole ( ) )
testGetUtilizationOfRam ( ) { "<AssertPlaceHolder>" ; } getUtilizationOfRam ( ) { return getContainerVmRamProvisioner ( ) . getUsedVmRam ( ) ; }
org . junit . Assert . assertEquals ( 0 , host . getUtilizationOfRam ( ) , 0 )
testPercolateQuery ( ) { java . util . List < java . lang . String > documentJSONs = new java . util . ArrayList ( ) ; com . liferay . portal . search . query . PercolateQuery percolateQuery = com . liferay . portal . search . query . test . QueriesInstantiationTest . _queries . percolate ( "field" , documentJSONs ) ; ...
org . junit . Assert . assertNotNull ( percolateQuery )
test_getLocalNexusServer_local_defaultRepo ( ) { org . talend . core . nexus . ArtifactRepositoryBean localNexusServer = org . talend . updates . runtime . nexus . component . NexusServerManager . getInstance ( ) . getLocalNexusServer ( ) ; "<AssertPlaceHolder>" ; validateNexusServerInfo ( getNexusServerInfo ( "release...
org . junit . Assert . assertNotNull ( localNexusServer )
findByAppIdAndVerifierTokenBlankIdTest ( ) { org . kaaproject . kaa . server . common . dao . model . sql . UserVerifier verifier = generateUserVerifier ( null , null ) ; org . kaaproject . kaa . server . common . dao . model . sql . UserVerifier result = verifierDao . findByAppIdAndVerifierToken ( "" , verifier . getV...
org . junit . Assert . assertNull ( result )
testPercentEncode_1 ( ) { java . lang . String string = "" ; java . lang . String result = org . jinstagram . http . URLUtils . percentEncode ( string ) ; "<AssertPlaceHolder>" ; } percentEncode ( java . lang . String ) { java . lang . String encoded = org . jinstagram . http . URLUtils . formURLEncode ( string ) ; for...
org . junit . Assert . assertEquals ( "" , result )
shouldReturnNullWhenThereIsNoCommand ( ) { org . neo4j . kernel . impl . transaction . log . entry . LogEntryVersion version = LogEntryVersion . CURRENT ; final org . neo4j . kernel . impl . transaction . log . InMemoryClosableChannel channel = new org . neo4j . kernel . impl . transaction . log . InMemoryClosableChann...
org . junit . Assert . assertNull ( logEntry )
testSerialization4 ( ) { org . jfree . data . category . DefaultCategoryDataset dataset = new org . jfree . data . category . DefaultCategoryDataset ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createBarChart ( "Test<sp>Chart" , "Category<sp>Axis" , "Value<sp>Axis" , dataset , Plo...
org . junit . Assert . assertEquals ( chart , chart2 )
testGetNoConditionReturnsUndefined ( ) { com . eclipsesource . v8 . debug . DebugHandler handler = new com . eclipsesource . v8 . debug . DebugHandler ( v8 ) ; int breakPointID = handler . setScriptBreakpoint ( "script" , 3 ) ; com . eclipsesource . v8 . debug . ScriptBreakPoint breakPoint = handler . getScriptBreakPoi...
org . junit . Assert . assertEquals ( "undefined" , result )
testDetectMediaTypesWithPath ( ) { for ( edu . illinois . library . cantaloupe . image . Format format : edu . illinois . library . cantaloupe . image . MediaTypeTest . files . keySet ( ) ) { java . nio . file . Path file = edu . illinois . library . cantaloupe . image . MediaTypeTest . files . get ( format ) ; edu . i...
org . junit . Assert . assertTrue ( result )
testBasic ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; when ( pcollection . getSize ( ) ) . thenReturn ( ( ( ( 7 * 1000L ) * 1000L ) * 1000L ) ) ; when ( pcollection . getPipeline ( ) ) . thenReturn ( pipeline ) ; when ( pipeline . getConfiguration ( )...
org . junit . Assert . assertEquals ( 8 , org . apache . crunch . util . PartitionUtils . getRecommendedPartitions ( pcollection ) )
TestCreateToken01 ( ) { org . terasoluna . gfw . web . token . transaction . TransactionTokenInfo beginTransactionToken = new org . terasoluna . gfw . web . token . transaction . TransactionTokenInfo ( "testTokenAttribute1" , TransactionTokenType . BEGIN ) ; org . terasoluna . gfw . web . token . transaction . Transact...
org . junit . Assert . assertThat ( resultCommand , org . hamcrest . CoreMatchers . is ( expectedCommand ) )
testNativeContentStreaming ( ) { com . xrtb . common . HttpPostGet http = new com . xrtb . common . HttpPostGet ( ) ; java . lang . String bid = java . nio . charset . Charset . defaultCharset ( ) . decode ( java . nio . ByteBuffer . wrap ( java . nio . file . Files . readAllBytes ( java . nio . file . Paths . get ( "....
org . junit . Assert . assertNotNull ( s )
testSetEnding_Instant ( ) { org . apache . sis . referencing . NamedIdentifier name = new org . apache . sis . referencing . NamedIdentifier ( null , "Ending" ) ; final java . util . Map < java . lang . String , java . lang . Object > properties = new java . util . HashMap ( ) ; properties . put ( IdentifiedObject . NA...
org . junit . Assert . assertFalse ( period1 . getEnding ( ) . equals ( result ) )
rank ( ) { quize . number01 . RankingService rankingService = new quize . number01 . KeesunRankService ( ) ; int [ ] rankings = rankingService . rank ( new int [ ] { 5 , 1 , 2 , 2 } ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertArrayEquals ( rankings , new int [ ] { 1 , 4 , 2 , 2 } )
copyFolder_NotExists ( ) { java . io . File folderSrc = new java . io . File ( "absolutely_bogus/" ) ; java . io . File folderTgt = com . archimatetool . tests . TestUtils . createTempFolder ( "tgt" ) ; try { com . archimatetool . editor . utils . FileUtils . copyFolder ( folderSrc , folderTgt ) ; org . junit . Assert ...
org . junit . Assert . assertTrue ( true )
testDoWork ( ) { com . captaindebug . threading . semaphore . ThreadWrapper instance = new com . captaindebug . threading . semaphore . ThreadWrapper ( ) ; java . util . concurrent . Semaphore semaphore = new java . util . concurrent . Semaphore ( 1 ) ; instance . doWork ( semaphore ) ; semaphore . acquire ( ) ; boolea...
org . junit . Assert . assertTrue ( result )
shouldCreateClasspathFile ( ) { java . io . File classpathFile = org . infinitest . environment . FakeEnvironments . fakeEnvironment ( ) . createClasspathFile ( ) ; "<AssertPlaceHolder>" . exists ( ) ; } createClasspathFile ( ) { try { java . io . File classpathFile = java . io . File . createTempFile ( "infinitest-" ,...
org . junit . Assert . assertThat ( classpathFile )
getCommandClassName_A$Crontab ( ) { java . lang . String arg0 = "com.m3.RunnableImpl*23" ; com . github . seratch . taskun . scheduler . crond . CrontabCommandClassNameElement actual = parser . getCommandClassNameElement ( arg0 ) ; com . github . seratch . taskun . scheduler . crond . CrontabCommandClassNameElement exp...
org . junit . Assert . assertEquals ( expected , actual )
copyTags ( ) { java . lang . String origName = "origMik" 0 ; java . lang . String origComment = "origMik" 5 ; java . lang . String origDefaultValue = "origDefaultVal" ; java . lang . String origExampleValue = "origMik" 3 ; java . lang . String origMik = "origMik" ; java . lang . String origDisplayName = "origDisplayNam...
org . junit . Assert . assertEquals ( allTagNames , target . getPropertyTagsNameSet ( ) )
testHead ( ) { javax . ws . rs . client . Invocation . Builder request = org . jboss . resteasy . test . rx . rxjava2 . Rx2ObservableServerAsyncTest . client . target ( org . jboss . resteasy . test . rx . rxjava2 . Rx2ObservableServerAsyncTest . generateURL ( "/head/string" ) ) . request ( ) ; javax . ws . rs . core ....
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
test_compareTo ( ) { "<AssertPlaceHolder>" ; } compareTo ( com . psddev . dari . db . Record ) { return com . psddev . dari . util . ObjectUtils . compare ( getLabel ( ) , other . getLabel ( ) , true ) ; }
org . junit . Assert . assertThat ( ref . compareTo ( null ) , equalTo ( 0 ) )
parseTagWithDIPHardwareAddress ( ) { cern . c2mon . shared . common . datatag . address . HardwareAddress address = new cern . c2mon . shared . common . datatag . address . impl . DIPHardwareAddressImpl ( "itemName" , "fieldName" , 1 ) ; cern . c2mon . shared . common . datatag . address . HardwareAddress readAddress =...
org . junit . Assert . assertEquals ( address , readAddress )
resolveSibling ( ) { final java . nio . file . Path path = fileSystem . getPath ( "/toplevel/myDir/" ) ; final java . nio . file . Path other = fileSystem . getPath ( "/toplevel/myDir/myAsset" ) ; final java . nio . file . Path resolved = path . resolveSibling ( other ) ; "<AssertPlaceHolder>" ; } toString ( ) { return...
org . junit . Assert . assertEquals ( other . toString ( ) , resolved . toString ( ) )
isSensitive ( ) { "<AssertPlaceHolder>" ; } isSensitive ( ) { org . junit . Assert . assertTrue ( endpoint . isSensitive ( ) ) ; }
org . junit . Assert . assertTrue ( endpoint . isSensitive ( ) )
test2502355_zoomOutDomain ( ) { org . jfree . data . xy . DefaultXYDataset dataset = new org . jfree . data . xy . DefaultXYDataset ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createXYLineChart ( "TestChart" , "X" , "Y" , dataset ) ; org . jfree . chart . plot . XYPlot plot = ( (...
org . junit . Assert . assertEquals ( 1 , this . chartChangeEvents . size ( ) )
testSerialization ( ) { org . jfree . chart . needle . PlumNeedle n1 = new org . jfree . chart . needle . PlumNeedle ( ) ; org . jfree . chart . needle . PlumNeedle n2 = ( ( org . jfree . chart . needle . PlumNeedle ) ( org . jfree . chart . TestUtils . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } equals ( java . ...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
testGeefFragmentFiles_FileBestaatNiet ( ) { org . mockito . Mockito . when ( configuratieService . getBerichtResultaatFolder ( ) ) . thenReturn ( "test" ) ; java . util . List < java . nio . file . Path > files = selectieFileService . geefFragmentFiles ( nl . bzk . brp . delivery . selectie . fileaccess . SelectieFileS...
org . junit . Assert . assertTrue ( files . isEmpty ( ) )
test ( com . github . horrorho . inflatabledonkey . crypto . xts . XTSAESTestVector ) { org . bouncycastle . crypto . params . KeyParameter key = new org . bouncycastle . crypto . params . KeyParameter ( testVector . key2 ( ) ) ; com . github . horrorho . inflatabledonkey . crypto . xts . XTSTweak tweak = new com . git...
org . junit . Assert . assertArrayEquals ( testVector . id ( ) , expected , value )