input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testCommandHelpWithDollarZero ( ) { int rc = run ( "--dollar-zero" , "datasets" , "test" , "Command<sp>options" 1 ) ; verify ( console ) . info ( "Command<sp>options" 0 , new java . lang . Object [ ] { "datasets" , "test" , "<test<sp>dataset<sp>names>" } ) ; verify ( console ) . info ( contains ( "Description" ) ) ; ve...
org . junit . Assert . assertEquals ( 0 , rc )
testHVals ( ) { doCmdTest ( new org . cyy . fw . nedis . test . cmd . TestAction ( ) { @ org . cyy . fw . nedis . test . cmd . Override public void doTest ( ) throws org . cyy . fw . nedis . test . cmd . InterruptedException , org . cyy . fw . nedis . util . NedisException { client . flushAll ( null ) ; java . lang . T...
org . junit . Assert . assertEquals ( 0 , result . length )
testSetPositionLongArray ( ) { final double [ ] initial = new double [ ] { 5.3 , 2.6 , 3.1 , - 852.1 } ; final long [ ] fynal = new long [ ] { 98 , - 16 , 44 , 0 } ; final net . imglib2 . RealPoint p1 = new net . imglib2 . RealPoint ( initial ) ; p1 . setPosition ( fynal ) ; for ( int j = 0 ; j < 4 ; j ++ ) { "<AssertP...
org . junit . Assert . assertEquals ( p1 . getDoublePosition ( j ) , fynal [ j ] , 0 )
givenNewArrayList_whenCheckCapacity_thenDefaultValue ( ) { org . baeldung . java . collections . List < java . lang . String > list = new org . baeldung . java . collections . ArrayList ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( internal . length ) == 0 ; }
org . junit . Assert . assertTrue ( list . isEmpty ( ) )
testGetCursorControl_withNestedControl ( ) { org . eclipse . swt . widgets . Display_Test . setCursorLocation ( display , 234 , 345 ) ; org . eclipse . swt . widgets . Shell shell = new org . eclipse . swt . widgets . Shell ( display ) ; shell . setBounds ( 100 , 100 , 500 , 500 ) ; shell . setVisible ( true ) ; org . ...
org . junit . Assert . assertSame ( control , display . getCursorControl ( ) )
testBuildWithParametersWithDisabledDefaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String abbrName = "abbrNAme" ; java . lang . String name = "name" ; org . lnu . is . domain . timeperiod . TimePeriodType context = new org . lnu . is . domain . timeperiod . TimePeriodT...
org . junit . Assert . assertEquals ( expected , actualQuery )
testAllAvroTypes ( ) { org . apache . avro . Schema r = org . apache . avro . SchemaBuilder . record ( "r" ) . fields ( ) . requiredBoolean ( "boolF" ) . requiredInt ( "intF" ) . requiredLong ( "r" 0 ) . requiredFloat ( "floatF" ) . requiredDouble ( "doubleF" ) . requiredString ( "r" 2 ) . requiredBytes ( "bytesF" ) . ...
org . junit . Assert . assertTrue ( org . kitesdk . data . spi . SchemaValidationUtil . canRead ( r , r ) )
testRemoveAllScheduled ( ) { final int COUNT = 5 ; javax . jms . Connection connection = createConnection ( ) ; scheduleMessage ( connection , TimeUnit . SECONDS . toMillis ( 6 ) , COUNT ) ; javax . jms . Session session = connection . createSession ( false , Session . AUTO_ACKNOWLEDGE ) ; javax . jms . Destination man...
org . junit . Assert . assertEquals ( latch . getCount ( ) , COUNT )
testInkomend ( ) { org . mockito . Mockito . when ( configTree . getAttribute ( "kanaal" ) ) . thenReturn ( "TEST" ) ; org . mockito . Mockito . when ( configTree . getAttribute ( "richting" ) ) . thenReturn ( "INKOMEND" ) ; final org . jboss . soa . esb . message . Message message = org . mockito . Mockito . mock ( or...
org . junit . Assert . assertSame ( message , result )
testGroovyVersionSupportsActionFalse ( ) { doReturn ( org . codehaus . gmavenplus . model . Version . parseFromString ( "1.0" ) ) . when ( groovyDocMojo . classWrangler ) . getGroovyVersion ( ) ; "<AssertPlaceHolder>" ; } groovyVersionSupportsAction ( ) { return ( ( classWrangler . getGroovyVersion ( ) ) != null ) && (...
org . junit . Assert . assertFalse ( groovyDocMojo . groovyVersionSupportsAction ( ) )
testParseSimpleWithClosingRowSeparator ( ) { java . lang . String source = "{{1,<sp>1,<sp>1},{1,<sp>1,<sp>1},<sp>}}" ; org . apache . commons . math3 . linear . RealMatrix expected = org . apache . commons . math3 . linear . MatrixUtils . createRealMatrix ( new double [ ] [ ] { new double [ ] { 1 , 1 , 1 } , new double...
org . junit . Assert . assertEquals ( expected , actual )
testOpenedRemoteTCP ( ) { org . evosuite . runtime . testdata . EvoSuiteLocalAddress addr = new org . evosuite . runtime . testdata . EvoSuiteLocalAddress ( "127.42.42.42" , 42 ) ; org . evosuite . runtime . testdata . NetworkHandling . sendDataOnTcp ( addr , null ) ; org . evosuite . runtime . mock . java . net . Mock...
org . junit . Assert . assertNotNull ( socket )
testSetProjectId ( ) { com . google . cloud . compute . deprecated . DiskId diskId = com . google . cloud . compute . deprecated . DiskId . of ( com . google . cloud . compute . deprecated . DiskIdTest . PROJECT , com . google . cloud . compute . deprecated . DiskIdTest . ZONE , com . google . cloud . compute . depreca...
org . junit . Assert . assertSame ( diskId , diskId . setProjectId ( com . google . cloud . compute . deprecated . DiskIdTest . PROJECT ) )
shouldSearchAllPropertiesUsingDotSelectorJCRSql2FullTextSearch ( ) { java . lang . String sql = "SELECT<sp>cars.[jcr:path]<sp>FROM<sp>[car:Car]<sp>AS<sp>cars<sp>WHERE<sp>contains(.,<sp>'Toyota')<sp>" ; javax . jcr . query . Query query = session . getWorkspace ( ) . getQueryManager ( ) . createQuery ( sql , Query . JCR...
org . junit . Assert . assertEquals ( expected , actual )
boolean_array_index ( ) { boolean [ ] booleanArray = new boolean [ ] { true , false , true , false } ; int index = com . google . common . primitives . Booleans . indexOf ( booleanArray , false ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1 , index )
testProbability ( ) { double [ ] points = new double [ ] { - 2.0 , - 1.0 , 0.0 , 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 } ; double [ ] results = new double [ ] { 0 , 0.2 , 0 , 0 , 0 , 0.5 , 0 , 0 , 0 , 0.3 , 0 } ; for ( int p = 0 ; p < ( points . length ) ; p ++ ) { double density = testDistribution . probabilit...
org . junit . Assert . assertEquals ( results [ p ] , density , 0.0 )
testCountRowsUnboundedPrecedingUnboundedFollowing ( ) { java . lang . String sqlText = java . lang . String . format ( ( "<sp>55<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>7<sp>|\n" 0 + ( "<sp>55<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>7<sp>|\n" 1 + "<sp>90<sp>|<sp>2<sp>|<sp>51000<sp>|<sp>4<sp>|\n" 0 ) ) , this . getTableReference ( com ...
org . junit . Assert . assertEquals ( ( ( "<sp>55<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>7<sp>|\n" 6 + sqlText ) + "<sp>55<sp>|<sp>1<sp>|<sp>52000<sp>|<sp>7<sp>|\n" 6 ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testDeleteAttributeValue ( ) { final java . util . List < ? extends org . yes . cart . domain . dto . AttrValueDTO > list = dtoService . getEntityAttributes ( 105L ) ; final int totalSize = list . size ( ) ; getTx ( ) . execute ( new org . springframework . transaction . support . TransactionCallbackWithoutResult ( ) {...
org . junit . Assert . assertNull ( dto . getVal ( ) )
shouldTurnAnalysisOff ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "smembers" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "simpleKey" ) ; when ( localParamsMock . get ( "useAnalyzer" ) ) . thenReturn ( "false" ) ; when ( localParamsMock . get ( QueryParsing . V ) ) . thenReturn ( "s...
org . junit . Assert . assertEquals ( 2 , terms . size ( ) )
testFindByName ( ) { java . lang . String name1 = "alpha" ; java . lang . String name2 = "bravo" ; java . lang . String name3 = "charlie" ; org . oscarehr . common . model . LookupList lookupList1 = new org . oscarehr . common . model . LookupList ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . gene...
org . junit . Assert . assertEquals ( expectedResult , result )
shouldThrowExceptionWhenCreateIngestElementKeyIfElementBelongsToGroupThatDoesntExistInSchema ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = createSchema ( ) ; final uk . gov . gchq . gaffer . data . element . Element element = new uk . gov . gchq . gaffer . data . element . Entity . Builder ( )...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
testToBuilder ( ) { org . batfish . datamodel . GeneratedRoute gr = org . batfish . datamodel . GeneratedRoute . builder ( ) . setNetwork ( org . batfish . datamodel . Prefix . parse ( "1.1.1.0/24" ) ) . setMetric ( 1L ) . build ( ) ; "<AssertPlaceHolder>" ; } toBuilder ( ) { return org . batfish . datamodel . EigrpInt...
org . junit . Assert . assertThat ( gr . toBuilder ( ) . build ( ) , org . hamcrest . Matchers . equalTo ( gr ) )
test_getManifest_nonJar ( ) { java . io . File testFile = new java . io . File ( tmpFolder , "abc.txt" ) ; testFile . createNewFile ( ) ; java . util . jar . Manifest manifest = org . talend . updates . runtime . utils . JarMenifestUtil . getManifest ( testFile ) ; "<AssertPlaceHolder>" ; } getManifest ( java . io . Fi...
org . junit . Assert . assertNull ( manifest )
detachParent_appendChildOnDetach_noEvents ( ) { com . vaadin . flow . internal . StateNodeTest . TestStateTree tree = new com . vaadin . flow . internal . StateNodeTest . TestStateTree ( ) ; com . vaadin . flow . internal . StateNode a = com . vaadin . flow . internal . StateNodeTest . createEmptyNode ( "a" ) ; com . v...
org . junit . Assert . assertEquals ( 0 , events . get ( ) )
testMergeParentWithoutLocationAttribute ( ) { org . apache . ivy . ant . IvyResolve resolve = new org . apache . ivy . ant . IvyResolve ( ) ; resolve . setProject ( project ) ; resolve . setFile ( new java . io . File ( "test/java/org/apache/ivy/ant/extends/child1/ivy-child1.xml" ) ) ; resolve . execute ( ) ; publish ....
org . junit . Assert . assertTrue ( published . exists ( ) )
testComputeIndexMapEnd ( ) { int [ ] expectedIndexMap = new int [ ] { 0 , 1 , 2 , - 1 } ; org . apache . avro . Schema designSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Record" ) . prop ( DiSchemaConstants . TALEND6_DYNAMIC_COLUMN_POSITION , "3" ) . prop ( SchemaConstants . INCLUDE_ALL_FIELDS...
org . junit . Assert . assertArrayEquals ( expectedIndexMap , actualIndexMap )
testSelectStatementForArrayTypes ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) , org . apache . phoenix . util . PropertiesUtil . deepCopy ( TestUtil . TEST_PROPERTIES ) ) ; final java . lang . String tableName = "TEST_TABLE" ; try { java . lang . String ddl = ( "CREATE<sp...
org . junit . Assert . assertEquals ( expectedSelectStatement , selectStatement )
ignoresFilesWithNonSupportedFileName ( ) { com . github . marabou . audio . loader . AudioFileFilter audioFileFilter = new com . github . marabou . audio . loader . AudioFileFilter ( ) ; java . io . File unsupportedFile = mock ( java . io . File . class ) ; when ( unsupportedFile . getName ( ) ) . thenReturn ( "foo.ogg...
org . junit . Assert . assertFalse ( audioFileFilter . accept ( unsupportedFile ) )
shouldClearMillisecondsWhenSavingANewObject ( ) { java . util . Date dateWithMillisecond = new java . util . Date ( 567L ) ; java . util . Date dateWithoutMillisecond = new java . util . Date ( 0L ) ; org . openmrs . Person person = new org . openmrs . Person ( ) ; person . addName ( new org . openmrs . PersonName ( "A...
org . junit . Assert . assertThat ( person . getBirthdate ( ) , org . hamcrest . core . Is . is ( dateWithoutMillisecond ) )
testTransversion1 ( ) { byte chr = 3 ; jannovar . exome . Variant v = new jannovar . exome . Variant ( chr , 13 , "C" , "G" , null , dummyPhred ) ; boolean b = v . isTransversion ( ) ; "<AssertPlaceHolder>" ; } isTransversion ( ) { if ( ! ( is_single_nucleotide_variant ( ) ) ) return false ; return true ; }
org . junit . Assert . assertEquals ( true , b )
testGetFromAnotherThreadWithSpin ( ) { final com . allanbank . mongodb . client . FutureCallback < java . lang . Object > callback = new com . allanbank . mongodb . client . FutureCallback < java . lang . Object > ( com . allanbank . mongodb . LockType . LOW_LATENCY_SPIN ) ; final java . lang . Object result = new java...
org . junit . Assert . assertSame ( result , callback . get ( ) )
shouldStartPreviousTimedOutMutationsAtAStatusOfTimedOutWhenClassHasNotChanged ( ) { final org . pitest . mutationtest . engine . MutationDetails md = makeMutation ( "foo" ) ; setHistoryForAllMutationsTo ( DetectionStatus . TIMED_OUT ) ; when ( this . history . hasClassChanged ( any ( org . pitest . classinfo . ClassNam...
org . junit . Assert . assertEquals ( DetectionStatus . TIMED_OUT , actual . iterator ( ) . next ( ) . getStatus ( ) )
testDenseBiasInit ( ) { org . deeplearning4j . nn . conf . layers . DenseLayer build = new org . deeplearning4j . nn . conf . layers . DenseLayer . Builder ( ) . nIn ( 1 ) . nOut ( 3 ) . biasInit ( 1 ) . build ( ) ; org . deeplearning4j . nn . conf . NeuralNetConfiguration conf = new org . deeplearning4j . nn . conf . ...
org . junit . Assert . assertEquals ( 1 , layer . getParam ( "b" ) . size ( 0 ) )
testParseCatalog ( ) { com . openhtmltopdf . resource . FSCatalog instance = new com . openhtmltopdf . resource . FSCatalog ( ) ; java . lang . String catalogUri = "/resources/schema/openhtmltopdf/catalog-special.xml" ; java . util . Map < java . lang . String , java . lang . String > catalog = instance . parseCatalog ...
org . junit . Assert . assertTrue ( catalog . containsKey ( publicId ) )
parseSignature_1 ( ) { final java . lang . String sig = "aslsilpfd" ; final org . erlide . util . erlang . Signature [ ] result = org . erlide . util . erlang . Signature . parse ( sig ) ; final java . lang . String expect = "[a,<sp>s,<sp>l(s),<sp>i,<sp>l(p),<sp>f,<sp>d]" ; "<AssertPlaceHolder>" ; } toString ( int ) { ...
org . junit . Assert . assertEquals ( expect , java . util . Arrays . toString ( result ) )
convert_wrongGenericMetadata_notConverted ( ) { tikaMetadata . set ( "unknown:key" , "unknownPrefixValue" ) ; tikaMetadata . set ( "wrongKey" , "wrongKeyValue" ) ; com . adobe . xmp . XMPMeta xmp = org . apache . tika . xmp . convert . TikaToXMP . convert ( tikaMetadata , null ) ; com . adobe . xmp . XMPIterator iter =...
org . junit . Assert . assertFalse ( iter . hasNext ( ) )
sourceAt ( ) { com . github . jknack . handlebars . io . TemplateLoader loader = new com . github . jknack . handlebars . io . FileTemplateLoader ( new java . io . File ( "src/test/resources" ) ) ; com . github . jknack . handlebars . io . TemplateSource source = loader . sourceAt ( "template" ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertNotNull ( source )
runTestArrayAccess5 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "ArraysAndLists/ArrayAccess5.apk" ) ; if ( res != null ) "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , res . size ( ) )
testContainsArrayContainer_IncludeSelf ( ) { org . roaringbitmap . Container bc = new org . roaringbitmap . BitmapContainer ( ) . 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 ( bc . contains ( subset ) )
infiniteLoop ( ) { java . lang . String sentence = "There<sp>is<sp>no<sp>dot,<sp>it<sp>will<sp>loop<sp>forever" ; infinitel_examples . infinitel_example_5 . InfinitelExample example = new infinitel_examples . infinitel_example_5 . InfinitelExample ( sentence . length ( ) ) ; "<AssertPlaceHolder>" ; } consume ( java . l...
org . junit . Assert . assertTrue ( example . consume ( sentence ) )
testNiemandToegangMetLegePersoonIds ( ) { nl . bzk . brp . domein . lev . Abonnement abonnement = getAbonnementOpSoortBerichten ( "" , "" ) ; java . util . Map < java . lang . Long , java . lang . Boolean > resultaat = service . controleerLijstVanPersonenVoorAbonnement ( abonnement , new java . util . ArrayList < java ...
org . junit . Assert . assertTrue ( resultaat . isEmpty ( ) )
testOn ( ) { java . util . Optional < java . lang . Boolean > actual = org . openhab . io . transport . modbus . ModbusBitUtilities . translateCommand2Boolean ( OnOffType . ON ) ; "<AssertPlaceHolder>" ; } is ( org . eclipse . smarthome . core . thing . ThingTypeUID ) { return thingTypeUID . equals ( otherThingTypeUID ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( java . util . Optional . of ( true ) ) ) )
assertExecuteUpdateWithColumnIndexes ( ) { java . sql . Statement statement = getStatement ( ) ; when ( statement . executeUpdate ( org . apache . shardingsphere . shardingjdbc . executor . StatementExecutorTest . DML_SQL , new int [ ] { 1 } ) ) . thenReturn ( 10 ) ; setExecuteGroups ( java . util . Collections . singl...
org . junit . Assert . assertThat ( actual . executeUpdate ( new int [ ] { 1 } ) , org . hamcrest . CoreMatchers . is ( 10 ) )
testGetContentSupplier ( ) { final org . drools . workbench . screens . guided . dtable . client . widget . table . GuidedDecisionTableView . Presenter presenter = mock ( GuidedDecisionTableView . Presenter . class ) ; final org . drools . workbench . models . guided . dtable . shared . model . GuidedDecisionTable52 ex...
org . junit . Assert . assertEquals ( expected , actual )
testName ( ) { when ( element . getName ( ) ) . thenReturn ( "MENU-01" ) ; mmarquee . automation . controls . menu . AutomationSystemMenu item = new mmarquee . automation . controls . menu . AutomationSystemMenu ( element ) ; "<AssertPlaceHolder>" ; } getName ( ) { return this . name ; }
org . junit . Assert . assertEquals ( "MENU-01" , item . getName ( ) )
testFindByLHINCodeOrgName ( ) { java . lang . String orgLHINCode1 = "100" ; java . lang . String orgLHINCode2 = "200" ; java . lang . String orgName1 = "alpha" ; java . lang . String orgName2 = "bravo" ; java . lang . String programName1 = "Program1" ; java . lang . String programName2 = "Program2" ; java . lang . Stri...
org . junit . Assert . assertTrue ( true )
testLogVersion ( ) { org . apache . openmeetings . util . Version . logOMStarted ( ) ; "<AssertPlaceHolder>" ; } logOMStarted ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( "\n" ) ; org . apache . openmeetings . util . Version . getLine ( sb , "" , '#' ) ; org . apache . openmeetings . util . ...
org . junit . Assert . assertTrue ( true )
addSalePositionsTest ( ) { System . out . print ( "-><sp>addSalePositions()<sp>-<sp>" ) ; java . util . List < ua . com . alexcoffee . model . position . SalePosition > salePositions = getTenSalePositions ( ) ; ua . com . alexcoffee . model . order . Order order = ua . com . alexcoffee . model . order . Order . getBuil...
org . junit . Assert . assertEquals ( order . getSalePositions ( ) . size ( ) , 10 )
serializePublication ( ) { java . lang . Object response = new joynr . types . Localisation . GpsPosition ( 49.0065 , 11.65 ) ; java . lang . String subscriptionId = "1234" ; joynr . SubscriptionPublication publication = new joynr . SubscriptionPublication ( java . util . Arrays . asList ( response ) , subscriptionId )...
org . junit . Assert . assertEquals ( publication , receivedPublication )
testGetsActionOperatorDoesNotCreateANewInstance ( ) { com . eclipsesource . tabris . internal . ui . UIImpl ui = new com . eclipsesource . tabris . internal . ui . UIImpl ( display , controller , mock ( com . eclipsesource . tabris . ui . UIConfiguration . class ) ) ; ui . markInitialized ( ) ; com . eclipsesource . ta...
org . junit . Assert . assertSame ( operator1 , operator2 )
testMulLongInteger ( ) { long expected = 25L ; long actual = cFunction . mul ( 5L , 5 ) ; "<AssertPlaceHolder>" ; } mul ( java . lang . Long , java . lang . Double ) { return l1 * d2 ; }
org . junit . Assert . assertEquals ( expected , actual )
testMakeTreeListItems ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType item1 = makeDataType ( "item1" , "iITem1" ) ; final org . kie . workbench . common . dmn . client . editors . types . common . DataType item2 = makeDataType ( "item2" , "iITem2" ) ; final org . kie . wo...
org . junit . Assert . assertEquals ( 3 , listItems . size ( ) )
testSetWeight ( ) { org . neuroph . core . Weight weight = new org . neuroph . core . Weight ( 0.88 ) ; org . neuroph . core . Connection instance = new org . neuroph . core . Connection ( fromNeuron , toNeuron ) ; instance . setWeight ( weight ) ; "<AssertPlaceHolder>" ; } getWeight ( ) { return this . weight ; }
org . junit . Assert . assertEquals ( weight , instance . getWeight ( ) )
testExample9 ( ) { net . bramp . ffmpeg . builder . FFmpegBuilder builder = new net . bramp . ffmpeg . builder . FFmpegBuilder ( ) . setVerbosity ( FFmpegBuilder . Verbosity . DEBUG ) . setInput ( "input.mp3" ) . overrideOutputFiles ( true ) . addOutput ( "left.mp3" ) . addExtraArgs ( "-map_channel" , "0.0.0" ) . done ...
org . junit . Assert . assertEquals ( expected , actual )
testFtpsPutDotFile ( ) { setClientAuthConfiguration ( ddf . test . itests . catalog . NEED ) ; org . apache . commons . net . ftp . FTPSClient client = createSecureClient ( true ) ; java . lang . String dotFilename = ".foo" ; java . lang . String finalFilename = "test.txt" ; ftpPut ( client , ddf . test . itests . cata...
org . junit . Assert . assertTrue ( ret )
testGetSetInitializationVector ( ) { java . lang . String expectedInitializationVector = "testInitializationVector" ; com . microsoft . windowsazure . services . media . models . TaskInfo taskInfo = new com . microsoft . windowsazure . services . media . models . TaskInfo ( null , new com . microsoft . windowsazure . s...
org . junit . Assert . assertEquals ( expectedInitializationVector , actualInitializationVector )
testParseSubsystemXmlWithEnginesPropertiesPlugins ( ) { java . lang . String subsystemXml = org . camunda . bpm . container . impl . jboss . test . FileUtils . readFile ( org . camunda . bpm . container . impl . jboss . test . JBossSubsystemXMLTest . SUBSYSTEM_WITH_ENGINES_PROPERTIES_PLUGINS ) ; java . util . List < or...
org . junit . Assert . assertEquals ( 3 , operations . size ( ) )
testSearch_EmptySet ( ) { java . lang . String searchString = "service001" ; java . lang . String region = "ON" ; java . util . Date date = new java . util . Date ( dfm . parse ( "20091231" ) . getTime ( ) ) ; java . util . List < org . oscarehr . common . model . BillingService > resultList = dao . search ( searchStri...
org . junit . Assert . assertEquals ( expectedList , resultList )
checkErrorAfterDeconnection ( ) { try ( java . sql . Connection connection = getNewConnection ( "&retriesAllDown=6" , true ) ) { java . sql . Statement st = connection . createStatement ( ) ; int masterServerId = getServerId ( connection ) ; stopProxy ( masterServerId ) ; try { st . execute ( "SELECT<sp>1" ) ; org . ju...
org . junit . Assert . assertTrue ( connection . isClosed ( ) )
shouldBeImmediatelyReadyForData ( ) { "<AssertPlaceHolder>" ; } isReady ( ) { return false ; }
org . junit . Assert . assertTrue ( stream . isReady ( ) )
normalCreate ( ) { org . candlepin . model . Product prod = new org . candlepin . model . Product ( "cptest-label" , "My<sp>Product" ) ; productCurator . create ( prod ) ; java . util . List < org . candlepin . model . Product > results = this . getEntityManager ( ) . createQuery ( "select<sp>p<sp>from<sp>Product<sp>as...
org . junit . Assert . assertEquals ( 5 , results . size ( ) )
testDelimitedRecords ( ) { org . apache . apex . malhar . lib . fs . s3 . S3RecordReaderMockTest . DelimitedApplication app = new org . apache . apex . malhar . lib . fs . s3 . S3RecordReaderMockTest . DelimitedApplication ( ) ; com . datatorrent . api . LocalMode lma = com . datatorrent . api . LocalMode . newInstance...
org . junit . Assert . assertEquals ( expectedRecords , org . apache . apex . malhar . lib . fs . FSRecordReaderTest . DelimitedValidator . getRecords ( ) )
toJSON_PlotOptionsSeriesIsSet_SeriesSerializedWithoutType ( ) { com . vaadin . addon . charts . model . DataSeries series = new com . vaadin . addon . charts . model . DataSeries ( ) ; series . setPlotOptions ( new com . vaadin . addon . charts . model . PlotOptionsSeries ( ) ) ; java . lang . String expected = "{\"dat...
org . junit . Assert . assertEquals ( expected , toJSON ( series ) )
testCalendarParameter ( ) { com . github . davidmoten . rx . jdbc . Database db = db ( ) ; java . util . Calendar cal = java . util . Calendar . getInstance ( ) ; cal . setTimeInMillis ( 0 ) ; rx . Observable < java . lang . Integer > update = db . update ( "update<sp>person<sp>set<sp>registered=?<sp>where<sp>name=?" )...
org . junit . Assert . assertEquals ( 0 , t . getTime ( ) )
testFormatGMTDate ( ) { java . lang . String expectedRegex = "\\w{3},<sp>\\d{2}<sp>\\w{3}<sp>\\d{4}<sp>\\d{2}:\\d{2}:\\d{2}<sp>GMT" ; java . lang . String actual = com . aliyun . openservices . log . http . utils . DateUtil . formatRfc822Date ( new java . util . Date ( ) ) ; "<AssertPlaceHolder>" ; } formatRfc822Date (...
org . junit . Assert . assertTrue ( actual . matches ( expectedRegex ) )
optimisticLockingTestDefAe ( ) { org . dcm4chee . archive . conf . olock . Device device = dicomConfig . findDevice ( "dcm4chee-arc" ) ; java . util . Map deviceNode = ( ( java . util . Map ) ( dicomConfig . getConfigurationStorage ( ) . getConfigurationNode ( DicomPath . DeviceByName . set ( "deviceName" , "dcm4chee-a...
org . junit . Assert . assertNull ( node )
testClusterResource ( ) { rmMock . availableRes ( new org . apache . ignite . yarn . IgniteApplicationMasterSelfTest . MockResource ( 1024 , 2 ) ) ; appMaster . setRmClient ( rmMock ) ; appMaster . setNmClient ( new org . apache . ignite . yarn . IgniteApplicationMasterSelfTest . NMMock ( ) ) ; props . cpusPerNode ( 8 ...
org . junit . Assert . assertEquals ( 0 , contRequests . size ( ) )
should_verify_if_exists_user_with_same_name ( ) { java . lang . String name = "existentName" ; when ( users . existsWithName ( name ) ) . thenReturn ( true ) ; org . mamute . model . User user = user ( name , org . mamute . validators . SignupValidatorTest . VALID_EMAIL ) ; boolean valid = signupValidator . validate ( ...
org . junit . Assert . assertFalse ( valid )
constructWithSetAtSmallTickSize ( ) { double a = 4.2 ; double closeToA = net . finmath . time . TimeDiscretizationTest . getHalfTickMore ( a ) ; net . finmath . time . TimeDiscretizationFromArray discretization = new net . finmath . time . TimeDiscretizationFromArray ( java . util . Arrays . stream ( new double [ ] { a...
org . junit . Assert . assertThat ( discretization . getAsDoubleArray ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( new double [ ] { a , closeToA } ) ) )
testAnimal ( ) { it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . animals . Animal a = new it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . animals . Animal ( null ) ; a . setID ( ) ; "<AssertPlaceHolder>" ; } setID ( ) { id = ( it . polimi . dei...
org . junit . Assert . assertNotNull ( a )
testGetSettingsTab ( ) { System . out . println ( "getSettingsTab" ) ; javax . swing . JComponent result = instance . getSettingsTab ( ) ; "<AssertPlaceHolder>" ; } getSettingsTab ( ) { return settingsTab ; }
org . junit . Assert . assertNotNull ( result )
serverVersion ( ) { java . lang . String version = org . lightcouch . tests . DBServerTest . dbClient . context ( ) . serverVersion ( ) ; "<AssertPlaceHolder>" ; } serverVersion ( ) { java . lang . String version = org . lightcouch . tests . DBServerTest . dbClient . context ( ) . serverVersion ( ) ; org . junit . Asse...
org . junit . Assert . assertNotNull ( version )
shouldMakeUnauthenticatedBlame ( ) { svn = new org . repodriller . scm . SubversionRepository ( org . repodriller . scm . subversion . SubversionRepositoryTest . path ) ; java . lang . String revision = svn . blame ( "Arquivo.java" , "2" , 3 ) ; "<AssertPlaceHolder>" ; } blame ( java . lang . String , java . lang . Str...
org . junit . Assert . assertEquals ( "2" , revision )
shouldVisitInCorrectOrder ( ) { final org . openspotlight . persist . util . SimplePersistVisitorSupportTest . NodeObject root = new org . openspotlight . persist . util . SimplePersistVisitorSupportTest . NodeObject ( ) ; root . setName ( "0" ) ; final org . openspotlight . persist . util . SimplePersistVisitorSupport...
org . junit . Assert . assertThat ( foundNames . toString ( ) , org . hamcrest . core . Is . is ( expectedNames . toString ( ) ) )
readDeflate64CompressedStream ( ) { final java . io . File input = org . apache . commons . compress . AbstractTestCase . getFile ( "COMPRESS-380/COMPRESS-380-input" ) ; final java . io . File archive = org . apache . commons . compress . AbstractTestCase . getFile ( "COMPRESS-380/COMPRESS-380.zip" ) ; try ( java . io ...
org . junit . Assert . assertArrayEquals ( orig , fromZip )
testOkReferences ( ) { sculptormetamodel . Reference refAB = factory . createReference ( ) ; refAB . setTo ( b ) ; b . getReferences ( ) . add ( refAB ) ; sculptormetamodel . Reference refBC = factory . createReference ( ) ; refBC . setTo ( c ) ; b . getReferences ( ) . add ( refBC ) ; "<AssertPlaceHolder>" ; } checkAg...
org . junit . Assert . assertTrue ( org . sculptor . generator . check . AggregateConstraints . checkAggregateReferences ( app ) )
testStringConvertEmpty ( ) { org . apache . sqoop . mapreduce . db . TextSplitter splitter = new org . apache . sqoop . mapreduce . db . TextSplitter ( ) ; java . math . BigDecimal emptyBigDec = splitter . stringToBigDecimal ( "" ) ; "<AssertPlaceHolder>" ; } stringToBigDecimal ( java . lang . String ) { java . math . ...
org . junit . Assert . assertEquals ( BigDecimal . ZERO , emptyBigDec )
testIntrospect_Embedded_Imploded ( ) { com . jmethods . catatumbo . impl . EntityMetadata entityMetadata = com . jmethods . catatumbo . impl . EntityIntrospector . introspect ( com . jmethods . catatumbo . entities . Contact . class ) ; java . util . Map < com . jmethods . catatumbo . impl . EmbeddedField , com . jmeth...
org . junit . Assert . assertEquals ( 3 , embeddedMetadataMap . size ( ) )
getArrayFirstDate ( ) { org . spincast . core . json . JsonArray array = getJsonManager ( ) . createArray ( ) ; array . add ( new java . util . Date ( ) ) ; array . add ( "titi" ) ; org . spincast . core . json . JsonObject jsonObj = getJsonManager ( ) . create ( ) ; jsonObj . set ( "arr" , array ) ; java . util . Date...
org . junit . Assert . assertNotNull ( arrayFirst )
testMovingAverage ( ) { org . nd4j . linalg . api . ndarray . INDArray a = org . nd4j . linalg . factory . Nd4j . arange ( 0 , 20 ) ; org . nd4j . linalg . api . ndarray . INDArray result = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1.5F , 2.5F , 3.5F , 4.5F , 5.5F , 6.5F , 7.5F , 8.5F , 9.5F , 10...
org . junit . Assert . assertEquals ( result , movingAvg )
findProblems ( ) { org . osgi . framework . ServiceReference < com . liferay . blade . api . Migration > sr = _context . getServiceReference ( com . liferay . blade . api . Migration . class ) ; com . liferay . blade . api . Migration m = _context . getService ( sr ) ; java . util . List < com . liferay . blade . api ....
org . junit . Assert . assertEquals ( "" , 1 , problems . size ( ) )
testWithMinimimSet ( ) { java . util . Collection < org . apache . accumulo . core . security . Authorizations > toMinimize = com . google . common . collect . Lists . newArrayList ( new org . apache . accumulo . core . security . Authorizations ( "A" , "B" , "C" , "D" , "E" , "F" ) , new org . apache . accumulo . core...
org . junit . Assert . assertEquals ( expected , actual )
addToIndex ( ) { net . ripe . db . whois . common . dao . jdbc . index . IndexWithValueAndType subject = new net . ripe . db . whois . common . dao . jdbc . index . IndexWithValueAndType ( net . ripe . db . whois . common . rpsl . AttributeType . NOTIFY , "notify" , "notify" ) ; net . ripe . db . whois . common . dao ....
org . junit . Assert . assertThat ( added , org . hamcrest . core . Is . is ( 1 ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . workflow . kaleo . model . KaleoTaskAssignmentInstance . class , _dynamicQueryClassLoader ) ; dy...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testNotSeed ( ) { org . evosuite . Properties . SEED_PROBABILITY = 0 ; org . evosuite . seeding . factories . BIMutatedMethodSeedingTestSuiteChromosomeFactory bicf = new org . evosuite . seeding . factories . BIMutatedMethodSeedingTestSuiteChromosomeFactory ( defaultFactory , bestIndividual ) ; org . evosuite . testsui...
org . junit . Assert . assertFalse ( containsSeededMethod )
testSimpleInEquality4 ( ) { com . github . davidmoten . rtree3d . geometry . Box r = com . github . davidmoten . rtree3d . geometry . RectangleTest . box ( 0 , 0 , 2 , 2 ) ; com . github . davidmoten . rtree3d . geometry . Box r2 = com . github . davidmoten . rtree3d . geometry . RectangleTest . box ( 0 , 0 , 1 , 2 ) ;...
org . junit . Assert . assertFalse ( r . equals ( r2 ) )
testGetHeight2 ( ) { double minY = projectionRect . getY ( ) ; double maxY = projectionRect . getMaxY ( ) ; double testHeight = maxY - minY ; double height = projectionRect . getHeight ( ) ; "<AssertPlaceHolder>" ; } getHeight ( ) { return H ; }
org . junit . Assert . assertEquals ( testHeight , height , 0 )
getScenarioGridColumn2 ( ) { final org . drools . workbench . screens . scenariosimulation . client . widgets . ScenarioGridColumn retrieved = org . drools . workbench . screens . scenariosimulation . client . utils . ScenarioSimulationUtils . getScenarioGridColumn ( org . drools . workbench . screens . scenariosimulat...
org . junit . Assert . assertNotNull ( retrieved )
testEmptySchemaInvalidEncodingMediaTypeValidator ( ) { mediaType . setSchema ( new com . ibm . ws . microprofile . openapi . impl . model . media . SchemaImpl ( ) ) ; com . ibm . ws . microprofile . openapi . impl . model . media . EncodingImpl encoding = new com . ibm . ws . microprofile . openapi . impl . model . med...
org . junit . Assert . assertEquals ( 1 , validationHelper . getEventsSize ( ) )
testUrlsFromFile ( ) { "<AssertPlaceHolder>" ; } isValidURI ( java . lang . String , java . lang . String , boolean ) { boolean isValid = false ; boolean inputIsNullOrEmpty = ( input == null ) || ( "" . equals ( input ) ) ; org . owasp . esapi . Encoder encoder = org . owasp . esapi . ESAPI . encoder ( ) ; try { java ....
org . junit . Assert . assertEquals ( this . expected , v . isValidURI ( "URL" , uri , false ) )
testGeenGemeenteVerordening ( ) { java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > meldingen ; meldingen = bedrijfsregel . voerRegelUit ( null , bouwPersoon ( null ) , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
testCorruptedTicket ( ) { org . nuxeo . ecm . jwt . JWTAuthenticator auth = new org . nuxeo . ecm . jwt . JWTAuthenticator ( ) ; javax . servlet . http . HttpServletRequest request = mock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . HttpServletResponse response = mock ( javax . ser...
org . junit . Assert . assertNull ( uii )
getDetectedEncoding_A$InputStream_UTF8 ( ) { java . lang . String name = "UTF-8.txt" ; java . io . InputStream is = org . junithelper . core . util . IOUtil . getResourceAsStream ( name ) ; java . lang . String actual = org . junithelper . core . util . UniversalDetectorUtil . getDetectedEncoding ( is ) ; java . lang ....
org . junit . Assert . assertEquals ( expected , actual )
testBooleanEmpty ( ) { com . twelvemonkeys . util . MappedBeanFactoryTestCase . Foo foo = com . twelvemonkeys . util . MappedBeanFactory . as ( com . twelvemonkeys . util . MappedBeanFactoryTestCase . DefaultFoo . class , new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ) ; "<AssertPlaceHol...
org . junit . Assert . assertNotNull ( foo )
testUseProfile ( ) { org . apache . stanbol . commons . jsonld . JsonLd jsonLd = new org . apache . stanbol . commons . jsonld . JsonLd ( ) ; jsonLd . setUseCuries ( true ) ; jsonLd . addNamespacePrefix ( "http://www.w3.org/2001/XMLSchema#" , "xsd" ) ; jsonLd . addNamespacePrefix ( "http://xmlns.com/foaf/0.1/" , "foaf"...
org . junit . Assert . assertEquals ( expected , actual )
testParseWithInvalidAtWrong ( ) { "<AssertPlaceHolder>" . isEqualTo ( false ) ; formatter . parse ( int . class , "123,456.0abc" ) ; org . junit . Assert . fail ( ) ; } isLenient ( ) { return lenient ; }
org . junit . Assert . assertThat ( formatter . isLenient ( ) )
testCategoryLevelBlank ( ) { net . magja . soap . SoapConfig annafiSoap = new net . magja . soap . SoapConfig ( "sysadmin" , "" , "http://ceefour.annafi/demo/api/soap" ) ; net . magja . soap . SoapClient client = net . magja . soap . MagentoSoapClient . getInstance ( annafiSoap ) ; @ net . magja . soap . SuppressWarnin...
org . junit . Assert . assertEquals ( 0 , categories . size ( ) )
when_tryEmitTo1_then_emittedTo1 ( ) { boolean emitted = p . tryEmit ( com . hazelcast . jet . core . AbstractProcessorTest . ORDINAL_1 , com . hazelcast . jet . core . AbstractProcessorTest . MOCK_ITEM ) ; "<AssertPlaceHolder>" ; validateReceptionAtOrdinals ( com . hazelcast . jet . core . AbstractProcessorTest . MOCK_...
org . junit . Assert . assertTrue ( emitted )
testGetIpAddressNoXForwardedFor ( ) { java . lang . String ip = "123.123.123.123" ; when ( request . getHeader ( IpAddressUtil . X_FORWARDED_FOR ) ) . thenReturn ( null ) ; when ( request . getRemoteAddr ( ) ) . thenReturn ( ip ) ; "<AssertPlaceHolder>" ; } getIpAddress ( javax . servlet . http . HttpServletRequest ) {...
org . junit . Assert . assertEquals ( ip , org . sagebionetworks . repo . web . IpAddressUtil . getIpAddress ( request ) )
aComplexWildcardUriPathShould401OnAccessToProtectedSubPath ( ) { java . lang . String mountPoint = "/protected/wildcard_replacement/x/y/z/something/else/more_wildcard_replacement/a/b/c" + "/final/bit" ; server = org . neo4j . server . helpers . CommunityServerBuilder . serverOnRandomPorts ( ) . withDefaultDatabaseTunin...
org . junit . Assert . assertEquals ( 401 , clientResponse . getStatus ( ) )