input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testDefaultFormatVector3D ( ) { java . util . Locale defaultLocal = java . util . Locale . getDefault ( ) ; java . util . Locale . setDefault ( getLocale ( ) ) ; org . apache . commons . math . geometry . Vector3D c = new org . apache . commons . math . geometry . Vector3D ( 232.222 , ( - 342.33 ) , 432.444 ) ; java . ...
org . junit . Assert . assertEquals ( expected , actual )
testNextIgnored ( ) { System . out . println ( ( ( ( ( ( "next()<sp>ignored<sp>after<sp>next(combinations):<sp>" + ( subItems ) ) + ",<sp>" ) + ( items ) ) + ",<sp>" ) + ( combinationsExpected ) ) ) ; org . util . combinatorial . Combination instance = new org . util . combinatorial . Combination ( subItems , items ) ;...
org . junit . Assert . assertArrayEquals ( expIndexes , indexes )
testContainsMappeableBitmapContainer_IncludeSelf ( ) { org . roaringbitmap . buffer . MappeableContainer rc = new org . roaringbitmap . buffer . MappeableRunContainer ( ) . add ( 0 , 10 ) ; org . roaringbitmap . buffer . MappeableContainer subset = new org . roaringbitmap . buffer . MappeableBitmapContainer ( ) . add (...
org . junit . Assert . assertTrue ( rc . contains ( subset ) )
createBusinessArchiveWithProcessDefinition ( ) { final org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder processDefinitionBuilder = new org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionBuilder ( ) . createNewInstance ( "MyProcess" , "1.0" ) ; final org . bonitasoft . engine ...
org . junit . Assert . assertEquals ( process , result )
singletonBean_getBean_returnsSingleInstance ( ) { final com . baeldung . di . spring . IndexApp indexApp1 = applicationContext . getBean ( "indexApp" , com . baeldung . di . spring . IndexApp . class ) ; final com . baeldung . di . spring . IndexApp indexApp2 = applicationContext . getBean ( "indexApp" , com . baeldung...
org . junit . Assert . assertEquals ( indexApp1 , indexApp2 )
testGeenKind ( ) { final nl . bzk . brp . util . RelatieBuilder < nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht > relBuilder = new nl . bzk . brp . util . RelatieBuilder < nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht > ( ) ; final nl . bzk . brp . model ....
org . junit . Assert . assertEquals ( 0 , objecten . size ( ) )
testAnchor ( ) { net . kyori . text . Component component = TextParsers . XML . parse ( "<a<sp>href=\"bar\">foo</a>" ) ; net . kyori . text . TextComponent expected = net . kyori . text . TextComponent . of ( "" ) . append ( net . kyori . text . TextComponent . of ( "foo" ) . clickEvent ( new net . kyori . text . event...
org . junit . Assert . assertEquals ( expected , component )
testDeleteVolume ( ) { java . lang . String volumeName = java . util . UUID . randomUUID ( ) . toString ( ) ; org . apache . hadoop . ozone . client . rpc . TestOzoneRpcClientAbstract . store . createVolume ( volumeName ) ; org . apache . hadoop . ozone . client . OzoneVolume volume = org . apache . hadoop . ozone . cl...
org . junit . Assert . assertNotNull ( volume )
testExplainDelete ( ) { com . splicemachine . derby . impl . sql . execute . operations . ResultSet rs = methodWatcher . executeQuery ( java . lang . String . format ( "explain<sp>delete<sp>from<sp>%s<sp>where<sp>i<sp>=<sp>1" , this . getTableReference ( com . splicemachine . derby . impl . sql . execute . operations ....
org . junit . Assert . assertTrue ( ( count > 0 ) )
testGetInputAssignemntsData ( ) { when ( inputAssignmentsWidget . getData ( ) ) . thenReturn ( rows ) ; "<AssertPlaceHolder>" ; } getInputAssignmentData ( ) { return inputAssignmentsWidget . getData ( ) ; }
org . junit . Assert . assertEquals ( rows , view . getInputAssignmentData ( ) )
whenRemoveCharsNotInCharset_thenRemoved ( ) { final java . nio . charset . Charset charset = java . nio . charset . Charset . forName ( "cp437" ) ; final java . nio . charset . CharsetEncoder encoder = charset . newEncoder ( ) ; final com . google . common . base . Predicate < java . lang . Character > inRange = new co...
org . junit . Assert . assertEquals ( "hello" , result )
testMaps ( ) { java . lang . annotation . Annotation [ ] annotations = new java . lang . annotation . Annotation [ ] { io . leangen . geantyref . TypeFactory . annotation ( io . leangen . graphql . annotations . GraphQLNonNull . class , java . util . Collections . emptyMap ( ) ) } ; java . lang . reflect . AnnotatedTyp...
org . junit . Assert . assertTrue ( io . leangen . geantyref . GenericTypeReflector . equals ( expected , inferred ) )
shouldGetAllOrders ( ) { org . springframework . mock . web . MockHttpServletRequest req = request ( RequestMethod . GET , getURI ( ) ) ; org . openmrs . module . webservices . rest . SimpleObject result = deserialize ( handle ( req ) ) ; int count = service . getOrders ( org . openmrs . Order . class , null , null , n...
org . junit . Assert . assertEquals ( count , org . openmrs . module . webservices . rest . test . Util . getResultsSize ( result ) )
testNewStringUtf8 ( ) { final java . lang . String charsetName = "UTF-8" ; testNewString ( charsetName ) ; final java . lang . String expected = new java . lang . String ( org . apache . commons . codec . binary . StringUtilsTest . BYTES_FIXTURE , charsetName ) ; final java . lang . String actual = org . apache . commo...
org . junit . Assert . assertEquals ( expected , actual )
getPossibleUsersOfUnknownTaskDefinition ( ) { final org . bonitasoft . engine . bpm . process . DesignProcessDefinition designProcessDefinition = org . bonitasoft . engine . test . BuildTestUtil . buildProcessDefinitionWithHumanAndAutomaticSteps ( java . util . Arrays . asList ( "step1" ) , java . util . Arrays . asLis...
org . junit . Assert . assertEquals ( 0 , possibleUsers . size ( ) )
testCardinality ( ) { System . out . println ( "testing<sp>EWAH<sp>cardinality" ) ; com . googlecode . javaewah32 . EWAHCompressedBitmap32 bitmap = new com . googlecode . javaewah32 . EWAHCompressedBitmap32 ( ) ; bitmap . set ( ( ( Integer . MAX_VALUE ) - 32 ) ) ; "<AssertPlaceHolder>" ; } cardinality ( ) { int counter...
org . junit . Assert . assertTrue ( ( ( bitmap . cardinality ( ) ) == 1 ) )
getFormattedElementOnNoTimezone ( ) { org . apache . servicecomb . transport . rest . vertx . accesslog . element . impl . DatetimeConfigurableItem element = new org . apache . servicecomb . transport . rest . vertx . accesslog . element . impl . DatetimeConfigurableItem ( "yyyy/MM/dd<sp>zzz||zh-CN" ) ; java . text . S...
org . junit . Assert . assertEquals ( simpleDateFormat . format ( org . apache . servicecomb . transport . rest . vertx . accesslog . element . impl . DatetimeConfigurableItemTest . START_MILLISECOND ) , result )
testFormatApplyReturnsNull ( ) { com . sun . mail . util . logging . CollectorFormatter f = new com . sun . mail . util . logging . CollectorFormatterTest . ApplyReturnsNull ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { java . lang . String o = f . format ( new com . sun . mail . util . logging . LogRecord ( Level . INFO ,...
org . junit . Assert . assertNotNull ( o )
setContext_samplePeriodic_contextIsSet ( ) { java . lang . String readingContext = "Sample.Periodic" ; sampledValue . setContext ( readingContext ) ; "<AssertPlaceHolder>" ; } getContext ( ) { return context ; }
org . junit . Assert . assertThat ( sampledValue . getContext ( ) , org . hamcrest . CoreMatchers . equalTo ( readingContext ) )
getMasterInfoWebPort ( ) { try ( alluxio . client . MetaMasterClient client = new alluxio . client . RetryHandlingMetaMasterClient ( alluxio . master . MasterClientContext . newBuilder ( alluxio . ClientContext . create ( alluxio . conf . ServerConfiguration . global ( ) ) ) . build ( ) ) ) { alluxio . grpc . MasterInf...
org . junit . Assert . assertEquals ( mWebPort , info . getWebPort ( ) )
test1 ( ) { java . util . TreeMap < org . apache . accumulo . core . data . Key , org . apache . accumulo . core . data . Value > tm1 = new java . util . TreeMap ( ) ; put ( tm1 , "r1" , "cf1" , "cq1" , 5 , "v1" ) ; put ( tm1 , "r1" , "cf1" , "cq3" , 5 , "v2" ) ; put ( tm1 , "r2" , "cf1" , "cq1" , 5 , "v3" ) ; org . ap...
org . junit . Assert . assertFalse ( ssi . hasTop ( ) )
testBitCoinSerialization ( ) { com . google . dogecoin . core . Block block = new com . google . dogecoin . core . Block ( com . google . dogecoin . core . BlockTest . params , com . google . dogecoin . core . BlockTest . blockBytes ) ; "<AssertPlaceHolder>" ; } bitcoinSerialize ( ) { return new byte [ 0 ] ; }
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( com . google . dogecoin . core . BlockTest . blockBytes , block . bitcoinSerialize ( ) ) )
saveLocation_shouldReturnSavedObject ( ) { org . openmrs . Location location = new org . openmrs . Location ( ) ; location . setName ( "Some<sp>name" ) ; location . setDescription ( "Some<sp>description" ) ; org . openmrs . Location savedLocation = org . openmrs . api . context . Context . getLocationService ( ) . save...
org . junit . Assert . assertEquals ( location , savedLocation )
chainVoidMethodCalls ( ) { mock . simpleMethodWithArgument ( "4" ) ; expectLastCall ( ) . andThrow ( new java . lang . RuntimeException ( "Test" ) ) . andVoid ( ) ; replay ( mock ) ; try { mock . simpleMethodWithArgument ( "4" ) ; } catch ( java . lang . RuntimeException e ) { "<AssertPlaceHolder>" ; } mock . simpleMet...
org . junit . Assert . assertEquals ( "Test" , e . getMessage ( ) )
shouldHaveCorrectBalanceAfterDepositAndAdjustment ( ) { createCenterGroupClientHierarchy ( aWeeklyMeeting ) ; org . mifos . accounts . productdefinition . business . SavingsOfferingBO savingsProduct = new org . mifos . domain . builders . SavingsProductBuilder ( ) . mandatory ( ) . withMandatoryAmount ( "33.0" ) . appl...
org . junit . Assert . assertThat ( savingsAccount . getSavingsBalance ( ) , org . hamcrest . CoreMatchers . is ( org . mifos . framework . TestUtils . createMoney ( "35" ) ) )
testWaitForReportReady_polls ( ) { com . google . api . client . util . Sleeper sleeper = mock ( com . google . api . client . util . Sleeper . class ) ; com . google . api . ads . admanager . axis . utils . v201808 . ReportDownloader downloader = new com . google . api . ads . admanager . axis . utils . v201808 . Repo...
org . junit . Assert . assertTrue ( downloader . waitForReportReady ( ) )
min ( ) { final java . lang . String sparql = "SELECT<sp>(min(?price)<sp>as<sp>?minPrice)<sp>{<sp>" + ( "?item<sp><urn:price><sp>?price<sp>.<sp>" + "}" ) ; final org . eclipse . rdf4j . model . ValueFactory vf = org . eclipse . rdf4j . model . impl . SimpleValueFactory . getInstance ( ) ; final java . util . Collection...
org . junit . Assert . assertEquals ( expectedResult , result )
testIsNull ( ) { template . isNull ( "name" ) ; java . util . List < java . lang . Object > list = template . getResultList ( ) ; "<AssertPlaceHolder>" ; } getResultList ( ) { return resultList ; }
org . junit . Assert . assertTrue ( list . isEmpty ( ) )
testParseZeroX ( ) { java . lang . String source = ( ( ( ( ( "{0" + ( getDecimalCharacter ( ) ) ) + "0;<sp>-1" ) + ( getDecimalCharacter ( ) ) ) + "4343;<sp>1" ) + ( getDecimalCharacter ( ) ) ) + "6333}" ; org . apache . commons . math . linear . ArrayRealVector expected = new org . apache . commons . math . linear . A...
org . junit . Assert . assertEquals ( expected , actual )
testNodeChildrenUpdatedSinceUntil ( ) { long start = java . lang . System . currentTimeMillis ( ) ; activity = createActivity ( ( "ActivityDescendantsUpdatedSinceUntil-" + start ) ) ; java . util . List < com . ibm . sbt . services . client . connections . activities . ActivityNode > nodes = createActivityDescendants (...
org . junit . Assert . assertEquals ( 2 , activityNodes . size ( ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . Team newTeam = addTeam ( ) ; com . liferay . portal . kernel . model . Team existingTeam = _persistence . fetchByPrimaryKey ( newTeam . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntryId ; }
org . junit . Assert . assertEquals ( existingTeam , newTeam )
hasNonConfigurableJobChangesJobStatus ( ) { final org . hisp . dhis . scheduling . JobConfiguration jc = new org . hisp . dhis . scheduling . JobConfiguration ( ) ; jc . setJobType ( JobType . ANALYTICS_TABLE ) ; jc . setJobStatus ( JobStatus . STOPPED ) ; jc . setJobParameters ( jobParameters ) ; jc . setContinuousExe...
org . junit . Assert . assertTrue ( jobConfiguration . hasNonConfigurableJobChanges ( jc ) )
testValidateStorageUnitS3FilesNotRegisteredS3FileFound ( ) { org . finra . herd . model . api . xml . StorageUnit storageUnit = createStorageUnit ( org . finra . herd . service . helper . TEST_S3_KEY_PREFIX , new java . util . ArrayList ( ) , org . finra . herd . service . helper . FILE_SIZE_1_KB ) ; java . util . List...
org . junit . Assert . assertEquals ( expectedErrMsg , e . getMessage ( ) )
returnQuantumInfoAsExpected ( ) { final com . basho . riak . client . core . query . timeseries . FullColumnDescription quantumFld = new com . basho . riak . client . core . query . timeseries . FullColumnDescription ( "quantum" , ColumnDescription . ColumnType . TIMESTAMP , false , 4 , new com . basho . riak . client ...
org . junit . Assert . assertEquals ( quantumFld , foo . getQuantumDescription ( ) )
testMSE ( ) { org . apache . ignite . ml . math . functions . IgniteDifferentiableVectorToDoubleFunction f = LossFunctions . MSE . apply ( new org . apache . ignite . ml . math . primitives . vector . impl . DenseVector ( new double [ ] { 2.0 , 1.0 } ) ) ; "<AssertPlaceHolder>" ; test ( new double [ ] { 1.0 , 3.0 } , f...
org . junit . Assert . assertNotNull ( f )
testRetryIOExceptionFromExecute ( ) { java . io . IOException exception = new java . io . IOException ( "BOOM" ) ; org . easymock . EasyMock . expect ( httpClient . execute ( org . easymock . EasyMock . < com . amazonaws . http . HttpRequest > anyObject ( ) ) ) . andThrow ( exception ) . times ( 4 ) ; org . easymock . ...
org . junit . Assert . assertSame ( exception , e . getCause ( ) )
backhaulViolationAtEnd_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; jsprit . core . reporting . SolutionPrinter . print ( vrp , solution , SolutionPrinter . Print . VERBOSE ) ; jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analysis . SolutionAn...
org . junit . Assert . assertFalse ( violation )
testRegistrationDisabled ( ) { deployContrib ( org . nuxeo . ecm . platform . ec . notification . TestRegisterNotificationService . BUNDLE_TEST_NAME , "notification-contrib-disabled.xml" ) ; java . util . List < org . nuxeo . ecm . platform . notification . api . Notification > notifications = getService ( ) . getNotif...
org . junit . Assert . assertEquals ( 0 , notifications . size ( ) )
testThrowRuntimeException ( ) { org . apache . aries . jmx . whiteboard . MBeanHolder mbh = new org . apache . aries . jmx . whiteboard . MBeanHolder ( new java . lang . Object ( ) , new javax . management . ObjectName ( "foo:bar=123" ) ) ; java . util . Map < ? , ? > registrations = ( ( java . util . Map < ? , ? > ) (...
org . junit . Assert . assertEquals ( 0 , registrations . size ( ) )
testRemoveTokenRemovesNode ( ) { org . apache . jackrabbit . oak . spi . security . authentication . token . TokenInfo info = tokenProvider . createToken ( userId , java . util . Collections . < java . lang . String , java . lang . Object > emptyMap ( ) ) ; org . apache . jackrabbit . oak . api . Tree userTree = root ....
org . junit . Assert . assertFalse ( root . getTree ( tokenNodePath ) . exists ( ) )
testFind ( ) { org . geotools . data . Parameter p = new org . geotools . data . Parameter ( "test" , org . geoserver . wps . ppio . EnumPPIOTest . TestEnum . class , "Test" , "This<sp>is<sp>a<sp>test" ) ; org . geoserver . wps . ppio . ProcessParameterIO ppio = org . geoserver . wps . ppio . ProcessParameterIO . find ...
org . junit . Assert . assertTrue ( ( ppio instanceof org . geoserver . wps . ppio . EnumPPIO ) )
testGeldigeLandGebiedPeildatumValtInDePeriodeDatHetLandGeldigWas ( ) { nl . bzk . brp . model . operationeel . kern . ActieModel actie = maakActie ( 20120601 ) ; nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoonBericht . ...
org . junit . Assert . assertTrue ( fouteEntiteiten . isEmpty ( ) )
testBooleanMethodCalledFromScriptWithResult ( ) { com . eclipsesource . v8 . V8CallbackTest . ICallback callback = mock ( com . eclipsesource . v8 . V8CallbackTest . ICallback . class ) ; doReturn ( true ) . when ( callback ) . booleanMethodNoParameters ( ) ; v8 . registerJavaMethod ( callback , "booleanMethodNoParamet...
org . junit . Assert . assertTrue ( result )
testContentTypeCharsetWrongBoundaryAtBeginning ( ) { final java . lang . String contentType = "multipart/mixed;<sp>charset=UTF-8;boundary=wrong_boundary;boundary=" + ( org . apache . olingo . odata2 . core . batch . BatchRequestParserTest . BOUNDARY ) ; final java . lang . String batch = ( ( ( ( ( "--" + ( org . apache...
org . junit . Assert . assertEquals ( 1 , parts . size ( ) )
testGetColumnsToParameters ( ) { com . streamsets . pipeline . api . Record record = com . streamsets . pipeline . sdk . RecordCreator . create ( ) ; java . util . Map < java . lang . String , com . streamsets . pipeline . api . Field > fields = new java . util . HashMap ( ) ; fields . put ( "field1" , com . streamsets...
org . junit . Assert . assertEquals ( 2 , res . size ( ) )
testLeeg ( ) { final nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder builder = new nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder ( nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortPersoon . INGESCHREVENE ) ; final nl . bzk . brp . model . hisvolledig ...
org . junit . Assert . assertNull ( brpInhoud )
testIO ( ) { ivory . bloomir . data . CompressedPostings postings = ivory . bloomir . data . CompressedPostings . newInstance ( ivory . bloomir . data . CompressedPostingsTest . largeDataset ) ; java . io . ByteArrayOutputStream byteOut = new java . io . ByteArrayOutputStream ( ) ; java . io . DataOutputStream dataOut ...
org . junit . Assert . assertEquals ( postings , postingsCopy )
testSelectKnowledges ( ) { java . util . List < java . lang . Long > knowledgeIds = new java . util . ArrayList < java . lang . Long > ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { if ( ( i % 2 ) == 0 ) { org . support . project . ormapping . common . DBUserPool . get ( ) . setUser ( loginedUser . getUserId ( ) ) ; } else ...
org . junit . Assert . assertNotNull ( knowledgesEntity . getInsertUserName ( ) )
testExecute ( ) { final org . jsoar . util . ByRef < java . lang . Boolean > matched = org . jsoar . util . ByRef . create ( Boolean . FALSE ) ; agent . getRhsFunctions ( ) . registerHandler ( new org . jsoar . kernel . rhs . functions . StandaloneRhsFunctionHandler ( "(<s><sp>^copy<sp>(deep-copy<sp><tc>))" 6 ) { @ org...
org . junit . Assert . assertTrue ( matched . value )
testSendNotificationWithAppKeyInvalidAppKey ( ) { java . lang . String appkey = "57b9ef19d4be5de08df12ac1" ; jpush = new cn . jpush . api . JPushClient ( appkey , appkey ) ; int erroCode = ErrorCodeEnum . InvalidAppKey . value ( ) ; java . lang . String msgTitle = "jpush1" ; java . lang . String msgContent = "jpush1" ;...
org . junit . Assert . assertEquals ( erroCode , result . getErrcode ( ) )
testSplit_2 ( ) { java . util . Set < java . util . List < java . lang . Integer > > matchers = new java . util . HashSet ( java . util . Arrays . asList ( java . util . Arrays . asList ( 67 , 112 , 96 ) , java . util . Arrays . asList ( 74 , 112 , 76 ) ) ) ; org . apache . fontbox . ttf . gsub . GlyphArraySplitter tes...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( java . util . Arrays . asList ( 67 , 112 , 96 ) , java . util . Arrays . asList ( 103 , 93 , 108 , 93 ) ) , tokens )
testIUSJaxb ( ) { net . sourceforge . seqware . common . model . IUS ius = new net . sourceforge . seqware . common . model . IUS ( ) ; ius . setIusId ( Integer . MIN_VALUE ) ; net . sourceforge . seqware . common . model . IUSAttribute sa1 = new net . sourceforge . seqware . common . model . IUSAttribute ( ) ; sa1 . s...
org . junit . Assert . assertEquals ( ius , st )
testCannotRenewTokenUsingToken ( ) { org . apache . hadoop . security . token . delegation . web . DelegationTokenAuthenticator . DelegationTokenOperation op = DelegationTokenAuthenticator . DelegationTokenOperation . RENEWDELEGATIONTOKEN ; javax . servlet . http . HttpServletRequest request = org . mockito . Mockito ....
org . junit . Assert . assertFalse ( handler . managementOperation ( null , request , response ) )
listResults ( ) { final java . lang . String sparql = "testPcj" 0 + ( ( ( ( "{" + "FILTER(?age<sp><<sp>30)<sp>." ) + "?name<sp><http://hasAge><sp>?age." ) + "?name<sp><http://playsSport><sp>\"Soccer\"<sp>" ) + "}" ) ; final java . lang . String pcjTableName = "testPcj" ; final org . apache . rya . indexing . pcj . stor...
org . junit . Assert . assertEquals ( expected , results )
startProcess ( ) { org . activiti . engine . RepositoryService repositoryService = activitiRule . getRepositoryService ( ) ; repositoryService . createDeployment ( ) . addInputStream ( "process1.bpmn20.xml" , new java . io . FileInputStream ( filename ) ) . deploy ( ) ; org . activiti . engine . RuntimeService runtimeS...
org . junit . Assert . assertNotNull ( processInstance . getId ( ) )
whenValidationWithValidCascadedValue_thenCorrectNumberOfVoilations ( ) { org . baeldung . javaxval . methodvalidation . model . ReservationManagement object = new org . baeldung . javaxval . methodvalidation . model . ReservationManagement ( ) ; java . lang . reflect . Method method = org . baeldung . javaxval . method...
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
testDecodeNegativeInteger ( ) { final byte [ ] data = kieker . test . common . util . dataformat . VariableLengthEncodingTest . asByteArray ( 151 , 221 , 195 , 249 , 15 ) ; final int expected = - 13570409 ; final int actual = this . decodeInt ( data ) ; "<AssertPlaceHolder>" ; } decodeInt ( java . nio . ByteBuffer ) { ...
org . junit . Assert . assertEquals ( expected , actual )
sendAuthorizationListNotSupportedVerifyReturnValue ( ) { when ( chargePointService . sendLocalList ( any ( io . motown . ocpp . v15 . soap . chargepoint . SendLocalListRequest . class ) , eq ( io . motown . ocpp . v15 . soap . chargepoint . CHARGING_STATION_ID . getId ( ) ) ) ) . thenReturn ( getSendLocalListResponse (...
org . junit . Assert . assertEquals ( RequestResult . FAILURE , requestResult )
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 , PlotOrientation . VERTICAL , false , false , fal...
org . junit . Assert . assertEquals ( 1 , this . chartChangeEvents . size ( ) )
test_whitelabel_links__id__validate_post ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method ...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
testRemoveAllSpecificQueryBySQL ( ) { java . lang . String query = "select<sp>count(data_id)<sp>from<sp>r_data_main" ; org . irods . jargon . core . packinstr . GeneralAdminInpForSQ pi = org . irods . jargon . core . packinstr . GeneralAdminInpForSQ . instanceForRemoveSpecificQueryByAlias ( query ) ; "<AssertPlaceHolde...
org . junit . Assert . assertNotNull ( pi )
TestRemoveToken01 ( ) { 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 ) )
testGetUploadStatusByUserIdAndHashDoesNotExist ( ) { hash = "unknownHash" ; org . sagebionetworks . repo . model . dbo . file . CompositeMultipartUploadStatus fetched = multipartUplaodDAO . getUploadStatus ( userId , hash ) ; "<AssertPlaceHolder>" ; } getUploadStatus ( java . lang . Long , java . lang . String ) { org ...
org . junit . Assert . assertEquals ( null , fetched )
testJoiningWithDelimiterPrefixAndSuffixEmpty ( ) { java . lang . String text = com . annimon . stream . Stream . < java . lang . String > empty ( ) . collect ( com . annimon . stream . Collectors . joining ( ",<sp>" , "prefix|" , "|suffix" , "empty" ) ) ; "<AssertPlaceHolder>" ; } joining ( java . lang . CharSequence ,...
org . junit . Assert . assertEquals ( "empty" , text )
testLangProfile ( ) { com . optimaize . langdetect . cybozu . util . LangProfile profile = new com . optimaize . langdetect . cybozu . util . LangProfile ( ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( profile . getName ( ) , null )
testNotAllVariables ( ) { final java . lang . String [ ] names = new java . lang . String [ ] { "ade" , "lsmf" } ; final ucar . nc2 . Variable [ ] result = org . esa . beam . dataio . netcdf . util . ReaderUtils . getVariables ( variables , names ) ; "<AssertPlaceHolder>" ; } getVariables ( java . util . List , java . ...
org . junit . Assert . assertNull ( result )
testVoerRegelUitZonderOverlijden ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht nieuweSituatie = maakNieuweSituatie ( null ) ; nieuweSituatie . setOverlijden ( null ) ; final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > resultaat = brby0906 . voerRegelUit ( null , nieuwe...
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
findType ( ) { org . ext . uberfire . social . activities . model . SocialEventType dummyType = socialEventTypeRepository . findType ( "DUMMY_EVENT" ) ; "<AssertPlaceHolder>" ; } name ( ) { return "dcore" ; }
org . junit . Assert . assertEquals ( "DUMMY_EVENT" , dummyType . name ( ) )
testOpenOpenAscending ( ) { org . apache . commons . functor . range . FloatRange range = org . apache . commons . functor . range . Ranges . floatRange ( ( - 5.0F ) , BoundType . OPEN , 5.0F , BoundType . OPEN , 3.0F ) ; java . util . List < java . lang . Float > expected = java . util . Arrays . asList ( ( - 2.0F ) ,...
org . junit . Assert . assertEquals ( expected , elements )
testWhetherRootNodeHasBeenExchanged ( ) { final thredds . catalog . InvDatasetImpl fileDataset = createDataset ( catalog , "second" , "file" ) ; final java . util . ArrayList < thredds . catalog . InvDataset > otherDatasets = new java . util . ArrayList < thredds . catalog . InvDataset > ( ) ; otherDatasets . add ( fil...
org . junit . Assert . assertEquals ( false , root . equals ( otherRoot ) )
annotatedWildcardTypeNameWithExtends ( ) { java . lang . String expected = ( "?<sp>extends<sp>@" + ( com . wrmsr . wava . java . poet . TestAnnotatedTypeName . NN ) ) + "<sp>java.lang.String" ; com . wrmsr . wava . java . poet . TypeName type = com . wrmsr . wava . java . poet . TypeName . get ( java . lang . String . ...
org . junit . Assert . assertEquals ( expected , actual )
testUsingKeys ( ) { byte [ ] plaintext = org . cryptonode . jncryptor . AES256JNCryptorInputStreamTest . getRandomBytes ( 256 ) ; byte [ ] encryptionSalt = org . cryptonode . jncryptor . AES256JNCryptorInputStreamTest . getRandomBytes ( 8 ) ; byte [ ] hmacSalt = org . cryptonode . jncryptor . AES256JNCryptorInputStream...
org . junit . Assert . assertArrayEquals ( plaintext , result )
testGetLocalHomeCommunityId ( ) { final java . lang . String localCommunityId = "1.1" ; gov . hhs . fha . nhinc . util . HomeCommunityMap . setPropertyAccessor ( accessor ) ; when ( accessor . getProperty ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( localCommuni...
org . junit . Assert . assertEquals ( localCommunityId , retrievedId )
testXConstructorWithNullConstructorNoException ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "new()" ) ; _builder . newLine ( ) ; final org . eclipse . xtext . xbase . XConstructorCall constructorCall = this . parseHe...
org . junit . Assert . assertNull ( result )
testPauseResume ( ) { cnx . runUpdate ( "node_update_enabled_by_id" , false , TestHelpers . node . getId ( ) ) ; cnx . commit ( ) ; com . enioka . jqm . tools . JqmSimpleTest . create ( cnx , "pyl.PckMain" , "jqm-test-pyl-nodep" ) . addWaitTime ( 3000 ) . expectNonOk ( 0 ) . expectOk ( 0 ) . run ( this ) ; this . engin...
org . junit . Assert . assertEquals ( 1 , com . enioka . jqm . test . helpers . TestHelpers . getOkCount ( cnx ) )
testSetName ( ) { System . out . println ( "setName" ) ; mudmap2 . backend . PlaceGroup instance = new mudmap2 . backend . PlaceGroup ( "myGroup" , java . awt . Color . CYAN ) ; java . lang . String name = "Another<sp>area" ; instance . setName ( name ) ; java . lang . String result = instance . getName ( ) ; "<AssertP...
org . junit . Assert . assertEquals ( name , result )
urlIsCreatedFromFileUrl ( ) { java . net . URL url = converter . convert ( "file:/path/to/something" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( _firstName ) + "<sp>" ) + ( this . _lastName ) ; }
org . junit . Assert . assertThat ( url . toString ( ) , is ( "file:/path/to/something" ) )
testValid ( ) { java . util . Set < javax . validation . ConstraintViolation < com . cloudera . csd . descriptors . ServiceDescriptor > > violations = violations ( "service_valid.sdl" ) ; "<AssertPlaceHolder>" ; } violations ( java . lang . String ) { return validator . getViolations ( com . cloudera . parcel . validat...
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
testEmptyVars ( ) { java . util . List < org . wikidata . query . rdf . blazegraph . mwapi . ApiTemplate . OutputVariable > outputVars = com . google . common . collect . Lists . newArrayList ( ) ; java . io . InputStream responseStream = new java . io . ByteArrayInputStream ( "not<sp>even<sp>xml" . getBytes ( "UTF-8" ...
org . junit . Assert . assertNull ( results )
compareSameMedicationsWarnings ( ) { final java . util . Comparator < com . marand . thinkmed . medicationsexternal . dto . MedicationsWarningDto > comparator = therapyWarningsProvider . getMedicationsWarningDtoComparator ( ) ; final com . marand . thinkmed . medicationsexternal . dto . MedicationsWarningDto o1 = getMe...
org . junit . Assert . assertEquals ( 0 , compare )
testSerialization ( ) { org . jfree . data . time . TimePeriodValues s1 = new org . jfree . data . time . TimePeriodValues ( "A<sp>test" ) ; s1 . add ( new org . jfree . data . time . Year ( 2000 ) , 13.75 ) ; s1 . add ( new org . jfree . data . time . Year ( 2001 ) , 11.9 ) ; s1 . add ( new org . jfree . data . time ....
org . junit . Assert . assertTrue ( s1 . equals ( s2 ) )
testSingleLinkageSameResultTwoAlg ( ) { org . clueminer . dataset . api . Dataset < ? extends org . clueminer . dataset . api . Instance > dataset = org . clueminer . fixtures . clustering . FakeDatasets . kumarData ( ) ; org . clueminer . clustering . api . AgglomerativeClustering alg1 = new org . clueminer . clusteri...
org . junit . Assert . assertEquals ( true , ref . equals ( other ) )
testLoadProps ( ) { final java . lang . String filename = "./conf/server.properties" ; if ( new java . io . File ( filename ) . exists ( ) ) { java . util . Properties props = io . jafka . utils . Utils . loadProps ( filename ) ; "<AssertPlaceHolder>" ; } if ( ! ( new java . io . File ( ( filename + "-1" ) ) . exists (...
org . junit . Assert . assertTrue ( ( ( props . size ( ) ) > 0 ) )
shouldReturnAllCustomerApplicableFees ( ) { java . util . List < org . mifos . dto . domain . FeeDto > feeDtos = this . feeDao . retrieveAllCustomerFees ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return fieldErrors . size ( ) ; }
org . junit . Assert . assertThat ( feeDtos . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testGetSubscriptionsListSize ( ) { when ( beanUnderTheTest . getCachedList ( ) ) . thenReturn ( prepareList ( ) ) ; org . richfaces . model . ArrangeableState arrangeable = new org . richfaces . model . ArrangeableState ( ) { @ org . oscm . ui . model . Override public java . util . List < org . richfaces . model . Fil...
org . junit . Assert . assertEquals ( 1 , totalCount )
testSelectQuery ( ) { java . lang . String text = ( ( ( ( ( ( "PREFIX<sp>foaf:<sp><" + ( org . eclipse . rdf4j . model . vocabulary . FOAF . NAMESPACE ) ) + ">\n" ) + "SELECT<sp>*<sp>WHERE<sp>{\n" ) + "<sp>?x<sp>a<sp>foaf:Person<sp>.\n" ) + "<sp>?y<sp>a<sp>foaf:Person<sp>.\n" ) + "<sp>?x<sp>foaf:knows<sp>?y<sp>.\n" ) +...
org . junit . Assert . assertEquals ( expected , visitor . getAntecedents ( ) )
testGetBestCandidateForGroup1 ( ) { final com . github . davidmoten . rtree3d . Mbr r1 = com . github . davidmoten . rtree3d . QuadraticSplitterTest . r ( 1 ) ; final com . github . davidmoten . rtree3d . Mbr r2 = com . github . davidmoten . rtree3d . QuadraticSplitterTest . r ( 2 ) ; final java . util . List < com . g...
org . junit . Assert . assertEquals ( r1 , r )
shouldCheckSearchCustomerURI ( ) { javax . ws . rs . core . Response response = org . agoncal . book . javaee7 . chapter15 . ex07 . CustomerRestService07IT . client . target ( "http://localhost:8282/07/customer/search/agoncal" ) . request ( ) . get ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
shouldBeAbleToIterateNodes ( ) { org . neo4j . neode . test . Db . usingSampleDataset ( new org . neo4j . neode . test . Db . WithSampleDataset ( ) { @ org . neo4j . neode . Override public void execute ( org . neo4j . graphdb . GraphDatabaseService db , org . neo4j . graphdb . Node firstNode , org . neo4j . graphdb . ...
org . junit . Assert . assertThat ( nodeCollection , returnsSameItems ( expectedNodes ) )
equals_sameObject ( ) { com . icantrap . collections . dawg . Node node = new com . icantrap . collections . dawg . Node ( 'x' ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return false ; if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) return false ; com . icantrap . collectio...
org . junit . Assert . assertTrue ( node . equals ( node ) )
testMultiLayerIndex ( ) { de . vandermeer . svg2vector . applications . fh . Svg2Vector_FH app = new de . vandermeer . svg2vector . applications . fh . Svg2Vector_FH ( ) ; java . lang . String [ ] args = org . apache . commons . lang3 . ArrayUtils . addAll ( de . vandermeer . svg2vector . applications . fh . Test_Svg2V...
org . junit . Assert . assertEquals ( 0 , app . executeApplication ( args ) )
testDoubleClickLine ( ) { org . eclipse . debug . core . ILaunchConfiguration config = createConfiguration ( proj . getProject ( ) ) ; doLaunch ( config , "testDoubleClickFunction" ) ; org . eclipse . linuxtools . internal . valgrind . cachegrind . CachegrindViewPart view = ( ( org . eclipse . linuxtools . internal . v...
org . junit . Assert . assertEquals ( line . getLine ( ) , actualLine )
test_matchSubUrls_fail_one_param_suffix2 ( ) { java . util . Map < java . lang . String , java . lang . String > params = urlMarcher . matchSubUrls ( "{id}-testX" , "abctestX" ) ; "<AssertPlaceHolder>" ; } matchSubUrls ( java . lang . String , java . lang . String ) { boolean canContinue = true ; java . util . Map < ja...
org . junit . Assert . assertTrue ( ( params == null ) )
testRequestWithValidLimitQuery ( ) { org . apache . hadoop . yarn . api . protocolrecords . GetApplicationsRequest request = org . apache . hadoop . yarn . server . resourcemanager . webapp . ApplicationsRequestBuilder . create ( ) . withLimit ( "999" ) . build ( ) ; org . apache . hadoop . yarn . api . protocolrecords...
org . junit . Assert . assertEquals ( expectedRequest , request )
testConstructorCenter3 ( ) { de . nx42 . maps4cim . util . gis . Coordinate center = new de . nx42 . maps4cim . util . gis . Coordinate ( 48.0 , 10.0 ) ; de . nx42 . maps4cim . util . gis . Area result = new de . nx42 . maps4cim . util . gis . Area ( center , 100.0 , de . nx42 . maps4cim . util . gis . UnitOfLength . K...
org . junit . Assert . assertEquals ( expResult , result )
shouldNotAllowNegativeGreenMana ( ) { mage . Mana mana = mage . Mana . GreenMana ( ( - 1 ) ) ; "<AssertPlaceHolder>" ; } getGreen ( ) { return green ; }
org . junit . Assert . assertEquals ( 0 , mana . getGreen ( ) )
testMatches_ComplyingStrictOrder ( ) { de . persosim . simulator . apdumatching . TlvSpecificationContainer containerSpec = new de . persosim . simulator . apdumatching . TlvSpecificationContainer ( DO_NOT_ALLOW_FURTHER_TAGS , STRICT_ORDER ) ; containerSpec . add ( new de . persosim . simulator . apdumatching . TlvSpec...
org . junit . Assert . assertTrue ( containerSpec . matches ( containerTlv ) )
test_success_equals_message_older_equals_flag_false ( ) { defaultEntityAgeFilterService . initialise ( "client-d" ) ; defaultEntityAgeFilterService . setOlderIfEquals ( false ) ; org . ikasan . filter . duplicate . model . FilterEntry aMessage = new org . ikasan . filter . duplicate . model . DefaultFilterEntry ( "busi...
org . junit . Assert . assertFalse ( result )
parse_params ( ) { com . psddev . dari . db . Predicate pred = parser . parse ( "b<sp>=<sp>?" , "1" ) ; com . psddev . dari . db . Predicate expect = new com . psddev . dari . db . ComparisonPredicate ( PredicateParser . EQUALS_ANY_OPERATOR , false , "b" , java . util . Arrays . asList ( "1" ) ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( expect , pred )
testClear ( ) { instance . clear ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return pairs . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( instance . isEmpty ( ) )