input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testFilterLessEqual ( ) { io . katharsis . queryspec . QuerySpec querySpec = new io . katharsis . queryspec . QuerySpec ( io . katharsis . jpa . model . TestEntity . class ) ; querySpec . addFilter ( new io . katharsis . queryspec . FilterSpec ( java . util . Arrays . asList ( "longValue" ) , io . katharsis . queryspec...
org . junit . Assert . assertEquals ( 3 , list . size ( ) )
testDeleteNominalLabelByID ( ) { qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestNominalLabelResourceFacadeImp . entityManager . getTransaction ( ) . begin ( ) ; java . lang . Integer result = qa . qcri . aidr . dbmanager . ejb . remote . facade . imp . TestNominalLabelResourceFacadeImp . nominalLabelR...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , result )
testExpiringDateForCertificate ( ) { org . opennms . netmgt . poller . monitors . SSLCertMonitor monitor = new org . opennms . netmgt . poller . monitors . SSLCertMonitor ( ) { @ org . opennms . netmgt . poller . monitors . Override protected java . util . Calendar getCalendarInstance ( ) { final java . util . Calendar...
org . junit . Assert . assertTrue ( status . isUnavailable ( ) )
testExportApplicationsGet ( ) { org . wso2 . carbon . apimgt . rest . api . store . impl . ExportApiServiceImplTestCase . printTestMethodName ( ) ; org . wso2 . carbon . apimgt . rest . api . store . impl . ExportApiServiceImpl exportApiService = new org . wso2 . carbon . apimgt . rest . api . store . impl . ExportApiS...
org . junit . Assert . assertEquals ( response . getStatus ( ) , 200 )
testHarakiriMonitor_isEC2_withFailure ( ) { final java . util . concurrent . CountDownLatch countDownLatch = new java . util . concurrent . CountDownLatch ( 1 ) ; java . lang . Thread thread = new java . lang . Thread ( ) { @ com . hazelcast . simulator . harakiri . Override public void run ( ) { harakiriMonitor = new ...
org . junit . Assert . assertEquals ( 1 , countDownLatch . getCount ( ) )
testAgentActive ( ) { java . lang . instrument . Instrumentation inst = mock ( java . lang . instrument . Instrumentation . class ) ; com . amadeus . session . agent . SessionAgent . premain ( "" , inst ) ; "<AssertPlaceHolder>" ; verify ( inst ) . addTransformer ( any ( com . amadeus . session . agent . SessionSupport...
org . junit . Assert . assertTrue ( com . amadeus . session . agent . SessionAgent . isAgentActive ( ) )
is_it_when_ends_with_IntegrationTest ( ) { fr . norad . visuwall . providers . hudson . domain . HudsonTest hudsonTest = new fr . norad . visuwall . providers . hudson . domain . HudsonTest ( "net.awired.MyIntegrationTest" , "SUCCESS" ) ; "<AssertPlaceHolder>" ; } isIntegrationTest ( ) { if ( className . contains ( ".i...
org . junit . Assert . assertTrue ( hudsonTest . isIntegrationTest ( ) )
testTruncateToSizeSingleWordEqualToMax ( ) { int size = _randomSize ( ) ; java . lang . String text = com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( size ) ; "<AssertPlaceHolder>" ; } truncateToSize ( java . lang . String , int ) { byte [ ] bytes = content . getBytes ( StandardCharsets ...
org . junit . Assert . assertEquals ( text , com . liferay . asset . auto . tagger . google . cloud . natural . language . internal . util . GCloudNaturalLanguageUtil . truncateToSize ( text , size ) )
shouldReturnEqualNodeInfosForSameNodeBoundAndNotBoundPredecessors ( ) { com . spotify . trickle . Graph < java . lang . String > root = com . spotify . trickle . Trickle . call ( func1 ) . with ( input ) ; com . spotify . trickle . Graph < java . lang . String > g1 = com . spotify . trickle . Trickle . call ( func0 ) ....
org . junit . Assert . assertThat ( info1 , org . hamcrest . CoreMatchers . equalTo ( info2 ) )
testJavascriptTypeWordWithApostrophe ( ) { wd . open ( org . finra . jtaf . ewd . widget . element . InteractiveElementTest . url ) ; wd . setTypeMode ( true ) ; org . finra . jtaf . ewd . widget . IInteractiveElement field = new org . finra . jtaf . ewd . widget . element . InteractiveElement ( "//input[@id='inputFiel...
org . junit . Assert . assertEquals ( "What's<sp>up<sp>doc?" , i . getValue ( ) )
testConcurrentConnectionCloseOperation ( ) { com . amazon . sqs . javamessaging . MessageListenerConcurrentOperationTest . ConcurrentOperation closeConnectionOperation = new com . amazon . sqs . javamessaging . MessageListenerConcurrentOperationTest . ConcurrentOperation ( ) { @ com . amazon . sqs . javamessaging . Ove...
org . junit . Assert . assertTrue ( connection . isClosed ( ) )
case8 ( ) { org . openstack . atlas . usagerefactor . List < org . openstack . atlas . service . domain . usage . entities . LoadBalancerMergedHostUsage > mergedRecords = usagePollerHelper . processExistingEvents ( lbHostMap ) ; "<AssertPlaceHolder>" ; org . openstack . atlas . usagerefactor . junit . AssertLoadBalance...
org . junit . Assert . assertEquals ( 2 , mergedRecords . size ( ) )
shouldConsiderTwoEquivalentPathsEqual ( ) { org . modeshape . jcr . value . Path path1 = pathFactory . create ( "/a/b/c" ) ; org . modeshape . jcr . value . Path path2 = pathFactory . create ( "/a/b/c" ) ; "<AssertPlaceHolder>" ; } equals ( org . modeshape . jca . JcrConnectionRequestInfo ) { return ( equals ( workspac...
org . junit . Assert . assertThat ( path1 . equals ( path2 ) , org . hamcrest . core . Is . is ( true ) )
testpplist ( ) { fr . inria . corese . core . Graph gg = fr . inria . corese . core . Graph . create ( ) ; fr . inria . corese . core . query . QueryProcess exec = fr . inria . corese . core . query . QueryProcess . create ( gg ) ; java . lang . String i = "insert<sp>data<sp>{<sp>" + ( ( "graph<sp>us:g1<sp>{<sp>us:John...
org . junit . Assert . assertEquals ( 20 , dt . intValue ( ) )
givenAllHighEnddParts_whenBuildingComputer_thenTwoParts ( ) { com . baeldung . templatemethod . test . TemplateMethodPatternIntegrationTest . highEndComputerBuilder . buildComputer ( ) ; "<AssertPlaceHolder>" ; } getComputerParts ( ) { return computerParts ; }
org . junit . Assert . assertEquals ( 2 , com . baeldung . templatemethod . test . TemplateMethodPatternIntegrationTest . highEndComputerBuilder . getComputerParts ( ) . size ( ) )
testDisassemble ( ) { org . lnu . is . domain . common . RowStatus value = org . lnu . is . domain . common . RowStatus . ACTIVE ; java . io . Serializable actual = unit . disassemble ( value ) ; "<AssertPlaceHolder>" ; } disassemble ( java . lang . Object ) { return ( ( java . lang . Enum ) ( value ) ) ; }
org . junit . Assert . assertEquals ( value , actual )
testGetMenuItem_With_Both_Parameters ( ) { when ( element . getName ( ) ) . thenReturn ( getLocal ( "menu.file" ) ) ; mmarquee . automation . AutomationElement menuItemElement1 = org . mockito . Mockito . mock ( mmarquee . automation . AutomationElement . class ) ; mmarquee . automation . pattern . ExpandCollapse expan...
org . junit . Assert . assertEquals ( menuItemElement2 , item . getElement ( ) )
testSerialization ( ) { org . jfree . data . xy . MatrixSeries m1 = new org . jfree . data . xy . MatrixSeries ( "Test" , 8 , 3 ) ; m1 . update ( 0 , 0 , 11.0 ) ; m1 . update ( 7 , 2 , 22.0 ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java...
org . junit . Assert . assertEquals ( m1 , m2 )
test ( ) { _events . consumer ( java . util . function . Consumer . class , ( c ) -> { com . caucho . junit . State . addText ( c . toString ( ) ) ; } , io . baratine . service . Result . ignore ( ) ) ; io . baratine . service . ResultFuture < java . util . function . Consumer > result = new io . baratine . service . R...
org . junit . Assert . assertEquals ( "Hello<sp>World!" , com . caucho . junit . State . state ( ) )
nonSuggestIndex ( ) { java . lang . String indexNodeType = "nt:base" ; java . lang . String queryNodeType = "nt:base" ; boolean enableSuggestionIndex = false ; boolean enableSpellcheckIndex = false ; boolean queryForSugggestion = true ; org . apache . jackrabbit . oak . plugins . index . lucene . LuceneIndexNode node =...
org . junit . Assert . assertNull ( plan )
shouldAuditViewEntryIsRelevantBecauseOldAndNewValueAreNotEqual ( ) { java . lang . String oldValue = "Technical<sp>Key:<sp>appLogLevel-tmp" ; java . lang . String newValue = "Technical<sp>Key:<sp>appLogLevel" ; ch . puzzle . itc . mobiliar . business . database . entity . MyRevisionEntity revisionEntity = new ch . puzz...
org . junit . Assert . assertThat ( relevant , org . hamcrest . Matchers . is ( true ) )
testCompareToSame ( ) { final com . orientechnologies . orient . core . index . OCompositeKey compositeKey = new com . orientechnologies . orient . core . index . OCompositeKey ( ) ; compositeKey . addKey ( "a" ) ; compositeKey . addKey ( "b" ) ; final com . orientechnologies . orient . core . index . OCompositeKey ano...
org . junit . Assert . assertEquals ( compositeKey . compareTo ( anotherCompositeKey ) , 0 )
test3 ( ) { symbolic_examples . symbolic_example_3 . NopolExample ex = new symbolic_examples . symbolic_example_3 . NopolExample ( ) ; "<AssertPlaceHolder>" ; } isOddNumber ( int ) { int tmp = ( a - 1 ) % 2 ; if ( tmp != 0 ) { return true ; } return false ; }
org . junit . Assert . assertTrue ( ex . isOddNumber ( ( - 1 ) ) )
shouldReturnFalseIfEntityIsNotTrackingRecordForOrdersType ( ) { when ( trackingRecord . getStringField ( "entityType" ) ) . thenReturn ( "01simple" ) ; boolean result = com . qcadoo . mes . advancedGenealogyForOrders . AdvancedGenealogyForOrdersService . isTrackingRecordForOrder ( trackingRecord ) ; "<AssertPlaceHolder...
org . junit . Assert . assertFalse ( result )
copyBlockTest ( ) { int [ ] [ ] cellData = new int [ ] [ ] { new int [ ] { 0 } , new int [ ] { 1 } , new int [ ] { 2 } } ; org . openscience . cdk . group . Partition p = new org . openscience . cdk . group . Partition ( cellData ) ; int cellIndex = 1 ; java . util . SortedSet < java . lang . Integer > copyCell = p . c...
org . junit . Assert . assertTrue ( ( copyCell != refCell ) )
getCreatedAtReferenceMutableObject ( ) { org . eclipse . egit . github . core . Comment comment = new org . eclipse . egit . github . core . Comment ( ) ; comment . setCreatedAt ( new java . util . Date ( 12345 ) ) ; comment . getCreatedAt ( ) . setTime ( 0 ) ; "<AssertPlaceHolder>" ; } getCreatedAt ( ) { return org . ...
org . junit . Assert . assertTrue ( ( ( comment . getCreatedAt ( ) . getTime ( ) ) != 0 ) )
testSetDestinationKey ( ) { System . out . println ( "setDestinationKey" ) ; java . lang . String destinationKey = "test.hex" ; edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . ParseBuilder instance = new edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . ParseBuilder ( "test.csv" ) ; java...
org . junit . Assert . assertEquals ( expResult , result )
testReadable ( ) { java . io . File searchHbmXml = new java . io . File ( outputDir , "org/hibernate/tool/hbm2x/hbm2hbmxml/SetElementTest/Search.hbm.xml" ) ; java . util . Properties properties = new java . util . Properties ( ) ; properties . setProperty ( AvailableSettings . DIALECT , HibernateUtil . Dialect . class ...
org . junit . Assert . assertNotNull ( metadataDescriptor . createMetadata ( ) )
parse_extra ( ) { com . psddev . dari . db . Predicate pred = parser . parse ( "b<sp>=<sp>?" , "1" , "2" ) ; com . psddev . dari . db . Predicate expect = new com . psddev . dari . db . ComparisonPredicate ( PredicateParser . EQUALS_ANY_OPERATOR , false , "b" , java . util . Arrays . asList ( "1" ) ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( expect , pred )
testSessionId_isEmptyWhenNoHeaderWasSent ( ) { connectionProvider . setConnection ( new org . eclipse . rap . rwt . cluster . testfixture . test . TestHttpUrlConnection ( "" ) ) ; org . eclipse . rap . rwt . cluster . testfixture . client . RWTClient client = new org . eclipse . rap . rwt . cluster . testfixture . clie...
org . junit . Assert . assertEquals ( "" , client . getSessionId ( ) )
exec ( ) { final com . amazonaws . services . glacier . model . InitiateJobRequest jobRequest = createMock ( com . amazonaws . services . glacier . model . InitiateJobRequest . class ) ; final com . amazonaws . services . glacier . model . InitiateJobResult jobResult = new com . amazonaws . services . glacier . model ....
org . junit . Assert . assertTrue ( command . valid ( options , optionParser ) )
shouldCompleteCloseHandshakeWhenClientSendCloseFrameWithCode1000 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; final java . util . concurrent . CountDownLatch close = new java . util . concurrent . CountDownLatch ( 1 ...
org . junit . Assert . assertTrue ( close . await ( 10 , java . util . concurrent . TimeUnit . SECONDS ) )
readData_IOException ( ) { org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) ) . thenThrow ( new java . io . IOException ( "test<sp>exception" ) ) ; java . util . Date traceDateTime = new java . util . Date ( ) ; org . mockito . Mockito . when ( filereader . fileExist...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 0 ) )
testGlobalSubjects ( ) { for ( org . biojava . bio . alignment . AlignmentPair alignmentPair : align . global ( query , subjects ) ) { "<AssertPlaceHolder>" ; } } global ( org . biojava . bio . seq . Sequence , org . biojava . bio . seq . Sequence ) { return global ( com . google . common . collect . ImmutableList . of...
org . junit . Assert . assertNotNull ( alignmentPair )
testIdenticalOBODocDiffer ( ) { org . obolibrary . oboformat . model . OBODoc obodoc1 = parseOBOFile ( "caro.obo" ) ; org . obolibrary . oboformat . model . OBODoc obodoc2 = parseOBOFile ( "caro.obo" ) ; java . util . List < org . obolibrary . oboformat . diff . Diff > diffs = org . obolibrary . oboformat . diff . OBOD...
org . junit . Assert . assertEquals ( 0 , diffs . size ( ) )
test_plusMonths_int_noChange ( ) { java . time . LocalDateTime t = TEST_2007_07_15_12_30_40_987654321 . plusMonths ( 0 ) ; "<AssertPlaceHolder>" ; } plusMonths ( long ) { if ( monthsToAdd == 0 ) { return this ; } return java . time . Period . create ( years , java . lang . Math . toIntExact ( java . lang . Math . addEx...
org . junit . Assert . assertSame ( t , TEST_2007_07_15_12_30_40_987654321 )
testGetTitle ( ) { final java . lang . String expectedTitle = "Decision<sp>Navigator" ; when ( translationService . format ( org . kie . workbench . common . dmn . client . decision . DecisionNavigatorPresenter_DecisionNavigator ) ) . thenReturn ( expectedTitle ) ; final java . lang . String actualTitle = presenter . g...
org . junit . Assert . assertEquals ( expectedTitle , actualTitle )
canRemoveAllEmails ( ) { int emailsNumber = 5 ; java . util . List < com . cognifide . qa . bb . email . EmailData > sentEmails = dataGenerator . generateEmailData ( emailsNumber ) ; sentEmails . forEach ( sender :: sendEmail ) ; client . connect ( ) ; client . removeAllEmails ( ) ; client . close ( ) ; client . connec...
org . junit . Assert . assertTrue ( latest . isEmpty ( ) )
shouldReturnTheCorrectContainerTypeForAnOptionalCollection ( ) { @ com . facebook . buck . util . SuppressWarnings ( "unused" ) class Contained { public java . util . Optional < com . google . common . collect . ImmutableSortedSet < ? extends java . util . Calendar > > field ; } java . lang . reflect . Field field = Co...
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableSortedSet . class , container )
testConversionCharacterToJodaTime ( ) { org . simpleflatmapper . reflect . meta . ClassMeta < java . util . List < org . joda . time . DateTime > > classMeta = org . simpleflatmapper . reflect . ReflectionService . disableAsm ( ) . < java . util . List < org . joda . time . DateTime > > getClassMeta ( new org . simplef...
org . junit . Assert . assertEquals ( now , map . get ( 0 ) )
testJoin ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; io . ebean . Query < org . tests . model . basic . Order > query = io . ebean . Ebean . find ( org . tests . model . basic . Order . class ) . where ( ) . ilike ( "customer.name" , "rob%" ) . query ( ) ; query . findList ( ) ; java . lang . Strin...
org . junit . Assert . assertTrue ( query . getGeneratedSql ( ) . contains ( expectedSql ) )
supports_invalid_version ( ) { com . asakusafw . testdriver . excel . ExcelRuleExtractor extractor = new com . asakusafw . testdriver . excel . DefaultExcelRuleExtractor ( ) ; org . apache . poi . ss . usermodel . Sheet sheet = sheet ( "invalid_format_version.xls" ) ; "<AssertPlaceHolder>" ; } supports ( org . apache ....
org . junit . Assert . assertThat ( extractor . supports ( sheet ) , is ( false ) )
testGetSchemaNames ( ) { "<AssertPlaceHolder>" ; } getSchemaNames ( org . talend . components . api . container . RuntimeContainer ) { return null ; }
org . junit . Assert . assertNull ( source . getSchemaNames ( null ) )
testLowOscillChanges ( ) { for ( int i = 0 ; i < 7 ; i ++ ) { dataTagCacheObject . setValue ( ( i % 2 ) ) ; oscUpdater . update ( alarmCacheObject , dataTagCacheObject ) ; log . info ( "ALARM<sp>ACTIVE:<sp>{}<sp>-<sp>INTERNAL<sp>ACTIVE:<sp>{}<sp>-<sp>OSCILLATION:<sp>{}" , alarmCacheObject . isActive ( ) , alarmCacheObj...
org . junit . Assert . assertTrue ( alarmCacheObject . isOscillating ( ) )
testUnicodeVariable3 ( ) { net . objecthunter . exp4j . function . Function log = new net . objecthunter . exp4j . function . Function ( "" , 1 ) { @ net . objecthunter . exp4j . Override public double apply ( double ... args ) { return log ( args [ 0 ] ) ; } } ; net . objecthunter . exp4j . Expression e = new net . ob...
org . junit . Assert . assertEquals ( log ( net . objecthunter . exp4j . PI ) , e . evaluate ( ) , 0.0 )
testGetPrivilegeNamesFromCache ( ) { java . util . Set < java . lang . String > names = bitsProvider . getPrivilegeNames ( bits ) ; "<AssertPlaceHolder>" ; } getPrivilegeNames ( org . apache . jackrabbit . oak . spi . security . privilege . PrivilegeBits ) { if ( ( privilegeBits == null ) || ( privilegeBits . isEmpty (...
org . junit . Assert . assertSame ( names , bitsProvider . getPrivilegeNames ( bits ) )
testEnumerationSearchConditionStringNullFacetValues ( ) { facetValues . setFacetValues ( null ) ; "<AssertPlaceHolder>" ; } createEnumerationSearchCondition ( org . sagebionetworks . repo . model . table . FacetColumnValuesRequest ) { if ( ( ( facetValues == null ) || ( ( facetValues . getFacetValues ( ) ) == null ) ) ...
org . junit . Assert . assertNull ( org . sagebionetworks . table . query . util . FacetRequestColumnModel . createEnumerationSearchCondition ( facetValues ) )
eenPrivateConstructorTest ( ) { java . lang . reflect . Constructor < nl . bzk . brp . beheer . webapp . validatie . ValidatieUtils > c = nl . bzk . brp . beheer . webapp . validatie . ValidatieUtils . class . getDeclaredConstructor ( ) ; c . setAccessible ( true ) ; nl . bzk . brp . beheer . webapp . validatie . Valid...
org . junit . Assert . assertNotNull ( validatieUtils )
inputSplitAllocatorTest ( ) { LOG = org . slf4j . LoggerFactory . getLogger ( org . goldenorb . io . TestInputSplitAllocator . class ) ; java . lang . String [ ] rs1l = new java . lang . String [ ] { "A" , "B" } ; org . goldenorb . io . RawSplitWithID rs1 = new org . goldenorb . io . RawSplitWithID ( "E" 0 , rs1l ) ; j...
org . junit . Assert . assertTrue ( ( ( assignedSplits . get ( orbPartitionMember ) . size ( ) ) < 2 ) )
givenAfternoonTime_ifAfternoonMessage_thenSuccess ( ) { java . lang . String expected = "Hello<sp>World,<sp>Good<sp>Afternoon" ; com . baeldung . greeter . library . Greeter greeter = new com . baeldung . greeter . library . Greeter ( com . baeldung . greeter . GreeterIntegrationTest . greetingConfig ) ; java . lang . ...
org . junit . Assert . assertEquals ( expected , actual )
moon_is_building_for_2_minutes ( ) { java . util . Date estimatedFinishTime = connection . getEstimatedFinishTime ( fr . norad . visuwall . plugin . demo . SoftwareProjectIds . moon , "" ) ; "<AssertPlaceHolder>" ; } getEstimatedFinishTime ( fr . norad . visuwall . api . domain . SoftwareProjectId , java . lang . Strin...
org . junit . Assert . assertNotNull ( estimatedFinishTime )
setsContentTypeIfNotNull ( ) { org . apache . http . entity . ContentType expectedContentType = org . apache . http . entity . ContentType . APPLICATION_JSON ; org . apache . http . client . entity . ByteBufHttpEntity entity = new org . apache . http . client . entity . ByteBufHttpEntity ( createDefaultTestByteBuf ( ) ...
org . junit . Assert . assertEquals ( expectedContentType . toString ( ) , contentType . getValue ( ) )
testSetWithInteger ( ) { preferences . set ( "Developer<sp>Tools" , "Proxy<sp>Port" , 1234 ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . String ) { for ( com . opera . core . systems . preferences . OperaPreference p : this ) { if ( ( p . getSection ( ) . equalsIgnoreCase ( section ) ) && ( p...
org . junit . Assert . assertEquals ( 1234 , preferences . get ( "Developer<sp>Tools" , "Proxy<sp>Port" ) . getValue ( ) )
getReportProfilingEnabled ( ) { "<AssertPlaceHolder>" ; } getReportProfilingEnabled ( ) { org . junit . Assert . assertThat ( controller . getReportProfilingEnabled ( ) , hasEntry ( "enabled" , ( ( java . lang . Object ) ( Boolean . FALSE ) ) ) ) ; }
org . junit . Assert . assertThat ( controller . getReportProfilingEnabled ( ) , hasEntry ( "enabled" , ( ( java . lang . Object ) ( Boolean . FALSE ) ) ) )
testDelete ( ) { java . util . concurrent . Future < java . lang . String > future = contentLengthFuture ( org . apache . hadoop . hdfs . web . TestWebHdfsContentLength . errResponse ) ; try { org . apache . hadoop . hdfs . web . TestWebHdfsContentLength . fs . delete ( org . apache . hadoop . hdfs . web . TestWebHdfsC...
org . junit . Assert . assertEquals ( null , getContentLength ( future ) )
testSymmetricAnnotation ( ) { com . github . anno4j . schema_parsing . building . AnnotationSpec symmetricAnnotation = getBuiltAnnotation ( "http://example.de/ont#Dish" , "http://example.de/ont#fits_with" , com . github . anno4j . schema_parsing . building . Symmetric . class ) ; "<AssertPlaceHolder>" ; } getBuiltAnnot...
org . junit . Assert . assertNotNull ( symmetricAnnotation )
testEditingCol ( ) { final org . drools . workbench . models . guided . dtable . shared . model . ActionCol52 expectedAction = mock ( org . drools . workbench . models . guided . dtable . shared . model . ActionCol52 . class ) ; doReturn ( expectedAction ) . when ( editingWrapper ) . getActionCol52 ( ) ; final org . dr...
org . junit . Assert . assertEquals ( expectedAction , actualAction )
testSetWorkingDirectory ( ) { java . lang . String requestedWorkDir = "dir_" ; java . lang . String fileSeparator = java . lang . System . getProperty ( "file.separator" ) ; java . lang . System . setProperty ( KaaClientProperties . KAA_CLIENT_PROPERTIES_FILE , "client-test.properties" ) ; org . kaaproject . kaa . clie...
org . junit . Assert . assertEquals ( ( requestedWorkDir + fileSeparator ) , properties . getWorkingDirectory ( ) )
testGetLimitSQLResultTabs ( ) { classUnderTest . setLimitSQLResultTabs ( true ) ; "<AssertPlaceHolder>" ; } getLimitSQLResultTabs ( ) { return _limitSqlResultTabs ; }
org . junit . Assert . assertEquals ( true , classUnderTest . getLimitSQLResultTabs ( ) )
testTimeSeriesGroupAggregateRead ( ) { long startTime = java . lang . System . currentTimeMillis ( ) ; testWrite1000Metrics ( ) ; long endTime = java . lang . System . currentTimeMillis ( ) ; org . apache . eagle . storage . operation . RawQuery rawQuery = new org . apache . eagle . storage . operation . RawQuery ( ) ;...
org . junit . Assert . assertTrue ( ( ( queryResult . getSize ( ) ) >= 1 ) )
getValue_Min ( ) { int value = ControlType . None . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return this . value ; }
org . junit . Assert . assertEquals ( 0 , value )
testAnd ( ) { org . opengis . filter . Filter f = ff . and ( ff . bbox ( "geom" , ( - 10 ) , ( - 10 ) , 10 , 10 , null ) , ff . equals ( ff . property ( "att" ) , ff . literal ( "10" ) ) ) ; com . vividsolutions . jts . geom . Envelope env = ( ( com . vividsolutions . jts . geom . Envelope ) ( f . accept ( visitor , nu...
org . junit . Assert . assertEquals ( new com . vividsolutions . jts . geom . Envelope ( ( - 10 ) , 10 , ( - 10 ) , 10 ) , env )
testDontInjectRegexIsNullByDefault ( ) { "<AssertPlaceHolder>" ; } getDontInjectRegex ( ) { return dontInjectRegex ; }
org . junit . Assert . assertNull ( configuration . getDontInjectRegex ( ) )
name ( ) { org . gatein . api . navigation . Node c = root . addChild ( "child" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return pathElement . getValue ( ) ; }
org . junit . Assert . assertEquals ( "child" , c . getName ( ) )
initGeoJson ( ) { java . lang . String input = fi . nls . test . util . ResourceHelper . readStringResource ( "WFSFilterTest-geojson-point-input.json" , this ) ; fi . nls . oskari . pojo . GeoJSONFilter geoJson = fi . nls . oskari . pojo . GeoJSONFilter . setParamsJSON ( input ) ; fi . nls . oskari . wfs . WFSFilter wf...
org . junit . Assert . assertNotNull ( f )
testGetPrefixes ( ) { java . util . Iterator < java . lang . String > iterator = com . google . cloud . tools . eclipse . appengine . validation . JavaContextTest . CONTEXT . getPrefixes ( "http://java.sun.com/xml/ns/javaee" ) ; "<AssertPlaceHolder>" ; } getPrefixes ( java . lang . String ) { com . google . common . ba...
org . junit . Assert . assertEquals ( "prefix" , iterator . next ( ) )
testDeOverlap ( ) { net . tomp2p . peers . Number256 sender = new net . tomp2p . peers . Number256 ( ( - 2 ) , ( - 3 ) , ( - 4 ) , ( - 5 ) ) ; net . tomp2p . peers . Number256 recipient = new net . tomp2p . peers . Number256 ( ( - 6 ) , ( - 7 ) , ( - 8 ) , ( - 9 ) ) ; byte [ ] overlap = sender . xorOverlappedBy4 ( reci...
org . junit . Assert . assertEquals ( sender , sender2 )
testWithText ( ) { final org . jbasics . codec . XOrCryptCodec codec = new org . jbasics . codec . XOrCryptCodec ( "Hello<sp>World!" ) ; final java . lang . CharSequence expected = "This<sp>is<sp>my<sp>world" ; final byte [ ] data = codec . encode ( expected ) ; final java . lang . CharSequence actual = codec . decode ...
org . junit . Assert . assertEquals ( expected , actual )
getResultSetShouldNotReturnNull ( ) { org . neo4j . jdbc . bolt . BoltNeo4jStatement statement = mock ( org . neo4j . jdbc . bolt . BoltNeo4jStatement . class ) ; when ( statement . isClosed ( ) ) . thenReturn ( false ) ; when ( statement . getResultSet ( ) ) . thenCallRealMethod ( ) ; org . mockito . internal . util ....
org . junit . Assert . assertTrue ( ( ( statement . getResultSet ( ) ) != null ) )
testIdentifierConversion ( ) { if ( ( receiver ) != null ) { receiver . close ( ) ; } receiver = receiverSession . createReceiver ( receiverQueue , "NumberOfOrders<sp>><sp>1" ) ; javax . jms . TextMessage dummyMessage = senderSession . createTextMessage ( ) ; dummyMessage . setStringProperty ( "NumberOfOrders" , "2" ) ...
org . junit . Assert . assertEquals ( "testIdentifierConversion:2" , msg . getText ( ) )
testDataSetActions ( ) { final java . lang . String dataSetId = testClient . createDataset ( "dataset/dataset.csv" , "testDataset" ) ; final java . lang . String contentAsString = when ( ) . get ( "/api/datasets/{id}/actions" , dataSetId ) . asString ( ) ; final com . fasterxml . jackson . databind . JsonNode jsonNode ...
org . junit . Assert . assertThat ( lookups . size ( ) , org . hamcrest . Matchers . is ( 1 ) )
testCreateConnectionGoodProviderString ( ) { try ( org . apache . qpid . jms . test . testpeer . TestAmqpPeer testPeer = new org . apache . qpid . jms . test . testpeer . TestAmqpPeer ( ) ) { testPeer . setSuppressReadExceptionOnClose ( true ) ; testPeer . expectSaslAnonymous ( ) ; org . apache . qpid . jms . JmsConnec...
org . junit . Assert . assertNotNull ( connection )
noFolders ( ) { httpSession . setAttribute ( SConsts . USER_SESS_ATTR , testUser ) ; try { java . util . List < org . apache . hupa . shared . domain . ImapFolder > folders = fetchFoldersService . fetch ( null , false ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . ju...
org . junit . Assert . assertTrue ( folders . isEmpty ( ) )
runTestReflection2 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "Reflection/Reflection2.apk" , null , enableReflectionCallback ) ; "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
testCompress_DoubleIntSmaller_Success ( ) { de . fraunhofer . iosb . ilt . frostserver . query . expression . Expression expectedResult = new de . fraunhofer . iosb . ilt . frostserver . query . expression . constant . BooleanConstant ( false ) ; de . fraunhofer . iosb . ilt . frostserver . query . expression . Express...
org . junit . Assert . assertEquals ( expectedResult , result )
givenRequestWithNoAcceptHeader_whenRequestIsExecuted_thenDefaultResponseContentTypeIsJson ( ) { final java . lang . String jsonMimeType = "application/json" ; final org . apache . http . client . methods . HttpUriRequest request = new org . apache . http . client . methods . HttpGet ( "https://api.github.com/users/euge...
org . junit . Assert . assertEquals ( jsonMimeType , mimeType )
testCreateLinkCanCreateParent ( ) { org . apache . hadoop . fs . Path file = new org . apache . hadoop . fs . Path ( ( ( testBaseDir1 ( ) ) + "/file" ) ) ; org . apache . hadoop . fs . Path link = new org . apache . hadoop . fs . Path ( ( ( testBaseDir2 ( ) ) + "/linkToFile" ) ) ; org . apache . hadoop . fs . FileConte...
org . junit . Assert . assertFalse ( exists ( org . apache . hadoop . fs . FileContextSymlinkBaseTest . fc , new org . apache . hadoop . fs . Path ( testBaseDir2 ( ) ) ) )
testConfigureCircle_15_15 ( ) { final org . jtrfp . trcl . obj . MiniMap mm = getSubject ( ) ; mm . configureCircle ( ) ; final org . jtrfp . trcl . gpu . SettableTexture [ ] [ ] grid = mm . getGrid ( ) ; "<AssertPlaceHolder>" ; } getGrid ( ) { if ( ( grid ) == null ) { final int diameterInTiles = getDiameterInTiles ( ...
org . junit . Assert . assertNull ( grid [ 15 ] [ 15 ] )
test_format_missing_args ( ) { final java . lang . String pattern = "getNextPrintPackage/{SessionID}/{TransactionID}/and_a_missing_arg/{MissingArgID}/end" ; final java . util . Map < java . lang . String , java . lang . String > args = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; args...
org . junit . Assert . assertEquals ( strExpected , strActual )
expire ( ) { doReturn ( value ) . when ( client ) . expire ( key ) ; byte [ ] actualValue = redisClient . expire ( key ) ; "<AssertPlaceHolder>" ; } expire ( byte [ ] ) { return getClient ( ) . expire ( key ) ; }
org . junit . Assert . assertEquals ( value , actualValue )
testUniquenessCriterionWithUniqueId ( ) { org . gbif . dwc . validator . result . accumulator . InMemoryResultAccumulator resultAccumulator = new org . gbif . dwc . validator . result . accumulator . InMemoryResultAccumulator ( ) ; try { org . gbif . dwc . validator . criteria . dataset . DatasetCriterion valueEvaluato...
org . junit . Assert . assertTrue ( resultAccumulator . getValidationResultList ( ) . isEmpty ( ) )
writeReadByteBuffer ( ) { net . openhft . chronicle . bytes . Bytes < java . nio . ByteBuffer > bytes = net . openhft . chronicle . bytes . Bytes . elasticByteBuffer ( ) ; net . openhft . chronicle . wire . Wire wire = new net . openhft . chronicle . wire . RawWire ( bytes ) ; net . openhft . chronicle . wire . marshal...
org . junit . Assert . assertEquals ( o1 , o2 )
test_CaptureEnPassantRightFalse ( ) { classUnderTest = addWhitePawn ( GenericPosition . e5 ) ; pl . add ( new eubos . board . pieces . Rook ( eubos . board . pieces . Piece . Colour . white , GenericPosition . d7 ) ) ; pm = new eubos . board . pieces . PositionManager ( new eubos . board . Board ( pl ) , eubos . board ...
org . junit . Assert . assertFalse ( ml . contains ( expectedMove ) )
messageArrivedShouldShowMessageAndNotifyUserInterfaceAndSetNewMessageFlagWhenVisibleButNotFocused ( ) { setUpExistingUser ( ) ; when ( userInterface . isVisible ( ) ) . thenReturn ( true ) ; when ( userInterface . isFocused ( ) ) . thenReturn ( false ) ; responder . messageArrived ( 100 , "msg" , 200 ) ; verify ( messa...
org . junit . Assert . assertTrue ( me . isNewMsg ( ) )
testCreateMerger ( ) { com . ctrip . platform . dal . dao . task . BatchDeleteTask < com . ctrip . platform . dal . dao . task . ClientTestModel > test = new com . ctrip . platform . dal . dao . task . BatchDeleteTask ( ) ; "<AssertPlaceHolder>" ; } createMerger ( ) { return new com . ctrip . platform . dal . dao . tas...
org . junit . Assert . assertNotNull ( test . createMerger ( ) )
testLength ( ) { org . nd4j . linalg . api . ndarray . INDArray values = org . nd4j . linalg . factory . Nd4j . create ( 2 , 2 ) ; org . nd4j . linalg . api . ndarray . INDArray values2 = org . nd4j . linalg . factory . Nd4j . create ( 2 , 2 ) ; values . put ( 0 , 0 , 0 ) ; values2 . put ( 0 , 0 , 2 ) ; values . put ( ...
org . junit . Assert . assertEquals ( expected , results )
testGetWarnings ( ) { "<AssertPlaceHolder>" ; } getWarnings ( ) { edu . illinois . library . cantaloupe . processor . Processor proc = ( ( edu . illinois . library . cantaloupe . processor . Processor ) ( object ) ) ; java . util . List < java . lang . String > warnings = new java . util . ArrayList ( ) ; java . lang ....
org . junit . Assert . assertEquals ( 0 , instance . getWarnings ( ) . size ( ) )
whenSearchingWithLogicalOperators_thenAllMatchingItemsShouldAvialble ( ) { com . baeldung . solr . fulltext . search . service . ItemSearchServiceLiveTest . itemSearchService . index ( "hm0001" , "Brand1<sp>Washing<sp>Machine" , "Home<sp>Appliances" , 450.0F ) ; com . baeldung . solr . fulltext . search . service . Ite...
org . junit . Assert . assertEquals ( 2 , items . size ( ) )
readData_NoFile ( ) { java . util . List < com . att . aro . core . peripheral . pojo . WifiInfo > wifiInfos = null ; org . mockito . Mockito . when ( filereader . fileExist ( wifi_events ) ) . thenReturn ( false ) ; org . mockito . Mockito . when ( filereader . readAllLine ( org . mockito . Mockito . anyString ( ) ) )...
org . junit . Assert . assertEquals ( 0 , wifiInfos . size ( ) , 0 )
shouldReturnHighlightedFieldsForChildForm ( ) { when ( sharedPreferences . getString ( FormService . FORM_SECTIONS_PREF , null ) ) . thenReturn ( null ) ; java . util . List < com . rapidftr . forms . FormField > formFields = formService . getHighlightedFields ( Child . CHILD_FORM_NAME ) ; int expectedNoOfHighlightedFi...
org . junit . Assert . assertEquals ( expectedNoOfHighlightedFields , formFields . size ( ) )
ShouldGetArrayByMap ( ) { org . atomhopper . postgres . query . PostgreSQLTextArray array = new org . atomhopper . postgres . query . PostgreSQLTextArray ( multiEntry ) ; java . lang . String [ ] s = ( ( java . lang . String [ ] ) ( array . getArray ( null ) ) ) ; "<AssertPlaceHolder>" ; } getArray ( java . util . Map ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( s , multiEntry ) )
testHashCodeEqual ( ) { org . oregami . service . ServiceError c1 = new org . oregami . service . ServiceError ( new org . oregami . service . ServiceErrorContext ( FieldNames . TASK_NAME ) , ServiceErrorMessage . TASK_TASKNAME_EMPTY ) ; org . oregami . service . ServiceError c2 = new org . oregami . service . ServiceE...
org . junit . Assert . assertTrue ( ( ( c1 . hashCode ( ) ) == ( c2 . hashCode ( ) ) ) )
decode ( ) { final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( encoded ) ; final com . flagstone . transform . coder . SWFDecoder decoder = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; fixture = new com . flagstone . transform . image . DefineJPEGImage ( decoder...
org . junit . Assert . assertNotNull ( fixture )
testQuoteList2 ( ) { "<AssertPlaceHolder>" ; } quote ( java . lang . String ) { final java . lang . StringBuilder escaped = new java . lang . StringBuilder ( ) ; for ( final char c : arg . toCharArray ( ) ) { if ( ( c == ( org . jacoco . core . runtime . CommandLineSupport . QUOTE ) ) || ( c == ( org . jacoco . core . ...
org . junit . Assert . assertEquals ( "a" , org . jacoco . core . runtime . CommandLineSupport . quote ( java . util . Arrays . asList ( "a" ) ) )
testCreaAlumnoPaquete ( ) { mx . edu . um . mateo . general . model . Usuario usuario = obtieneUsuario ( ) ; mx . edu . um . mateo . inscripciones . model . Paquete paquete = new mx . edu . um . mateo . inscripciones . model . Paquete ( "Test" , "Test1" , new java . math . BigDecimal ( "1110475" ) , new java . math . B...
org . junit . Assert . assertNotNull ( alumnoPaquete . getId ( ) )
testRenderingTransform ( ) { java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; builder . append ( "transform:" ) . append ( "\n" ) . append ( "<sp>name:<sp>ras:Contour" ) . append ( "\n" ) . append ( "<sp>input:<sp>data" ) . append ( "\n" ) . append ( "<sp>levels:" 2 ) . append ( "\n" ) . appe...
org . junit . Assert . assertThat ( errors , org . hamcrest . Matchers . empty ( ) )
testsWithSingleResource ( ) { context . build ( ) . resource ( "/querynode" , com . google . common . collect . ImmutableMap . of ( DynamicSelectDataSource . PN_DROP_DOWN_QUERY_LANGUAGE , Query . JCR_SQL2 , DynamicSelectDataSource . PN_DROP_DOWN_QUERY , queryStatement , DynamicSelectDataSource . PN_ALLOW_PROPERTY_NAMES...
org . junit . Assert . assertEquals ( 1 , dsCaptor . getValue ( ) . size ( ) )
copyToLocalWildcard ( ) { java . lang . String testDir = alluxio . client . cli . fs . FileSystemShellUtilsTest . resetFileHierarchy ( mFileSystem ) ; int ret = mFsShell . run ( "copyToLocal" , ( testDir + "/*/foo*" ) , ( ( mLocalAlluxioCluster . getAlluxioHome ( ) ) + "/testDir" ) ) ; "<AssertPlaceHolder>" ; fileReadT...
org . junit . Assert . assertEquals ( 0 , ret )
testSerialization ( ) { org . jfree . data . xy . DefaultHighLowDataset d1 = new org . jfree . data . xy . DefaultHighLowDataset ( "Series<sp>1" , new java . util . Date [ ] { new java . util . Date ( 123L ) } , new double [ ] { 1.2 } , new double [ ] { 3.4 } , new double [ ] { 5.6 } , new double [ ] { 7.8 } , new doub...
org . junit . Assert . assertEquals ( d1 , d2 )
testBNodeBindingSet2 ( ) { tqr1 . append ( new org . eclipse . rdf4j . query . impl . ListBindingSet ( twoBindingNames , foo , bnode1 ) ) ; tqr2 . append ( new org . eclipse . rdf4j . query . impl . ListBindingSet ( twoBindingNames , foo , lit1 ) ) ; "<AssertPlaceHolder>" ; } equals ( org . eclipse . rdf4j . query . Tu...
org . junit . Assert . assertFalse ( org . eclipse . rdf4j . query . QueryResults . equals ( tqr1 , tqr2 ) )