input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
listResults2 ( ) { com . querydsl . sql . QueryResults < java . lang . Integer > results = query ( ) . from ( employee ) . limit ( 2 ) . offset ( 10 ) . orderBy ( employee . id . asc ( ) ) . select ( employee . id ) . fetchResults ( ) ; "<AssertPlaceHolder>" ; } getTotal ( ) { return total ; }
org . junit . Assert . assertEquals ( 10 , results . getTotal ( ) )
givenVoidAsMethodReturnType_whenBuildRepresentation_thenDoNotAddAnything ( ) { final com . autentia . web . rest . wadl . builder . ApplicationContext appCtx = new com . autentia . web . rest . wadl . builder . ApplicationContext ( com . autentia . web . rest . wadl . builder . RepresentationBuilderTest . IGNORED_METHO...
org . junit . Assert . assertThat ( representations , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . empty ( ) ) )
testSerialization ( ) { org . jfree . chart . labels . HighLowItemLabelGenerator g1 = new org . jfree . chart . labels . HighLowItemLabelGenerator ( ) ; org . jfree . chart . labels . HighLowItemLabelGenerator g2 = ( ( org . jfree . chart . labels . HighLowItemLabelGenerator ) ( org . jfree . chart . TestUtilities . se...
org . junit . Assert . assertEquals ( g1 , g2 )
testSocialPreloadViewResolution ( ) { org . apache . shindig . gadgets . spec . GadgetSpec spec = new org . apache . shindig . gadgets . spec . GadgetSpec ( GADGET_URL , org . apache . shindig . gadgets . preload . PipelinedDataPreloaderTest . XML_IN_DEFAULT_CONTAINER ) ; java . lang . String socialResult = "[{id:'p',<...
org . junit . Assert . assertEquals ( 1 , tasks . size ( ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . ihe . operations . HospitalAdmissionDiagnosisSectionOperations obj = new org . openhealthtools . mdht . uml . cda . ihe . operations . HospitalAdmissionDiagnosisSectionOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
hasFiveGroups ( ) { final java . lang . String uuid = org . uberfire . commons . uuid . UUID . uuid ( ) ; final java . lang . String [ ] split = uuid . split ( "-" ) ; "<AssertPlaceHolder>" ; } split ( java . lang . String ) { final java . lang . String [ ] s = new java . lang . String [ 2 ] ; final int pos = attribute...
org . junit . Assert . assertEquals ( 5 , split . length )
testPutWithDeferredAllocation ( ) { java . util . List < com . google . datastore . v1 . Mutation > pbs = new java . util . LinkedList ( ) ; pbs . add ( com . google . cloud . datastore . com . google . datastore . v1 . Mutation . newBuilder ( ) . setInsert ( com . google . cloud . datastore . BaseDatastoreBatchWriterT...
org . junit . Assert . assertEquals ( pbs , batchWriter . toMutationPbList ( ) )
testBuildWithParameters ( ) { org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; org . lnu . is . domain . family . type . FamilyType addressType = new org . lnu . is . domain . family . type . FamilyType ( ) ; java . lang . String value = "fasd" ; org . lnu . is . do...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testCallback ( ) { org . apache . jackrabbit . oak . spi . security . authentication . callback . UserManagerCallback cb = new org . apache . jackrabbit . oak . spi . security . authentication . callback . UserManagerCallback ( ) ; org . apache . jackrabbit . api . security . user . UserManager uMgr = org . mockito . M...
org . junit . Assert . assertSame ( uMgr , cb . getUserManager ( ) )
testCreateMessageStoreWithEnableSSLInputTrue ( ) { org . powermock . api . mockito . PowerMockito . whenNew ( java . util . Properties . class ) . withNoArguments ( ) . thenReturn ( propertiesMock ) ; org . powermock . api . mockito . PowerMockito . whenNew ( io . cloudslang . content . mail . entities . SimpleAuthenti...
org . junit . Assert . assertEquals ( storeMock , getMailMessageSpy . createMessageStore ( ) )
recordingLookuo ( ) { java . lang . String expected = "http://musicbrainz.org/ws/2/recording/470d06f8-6c0c-443d-b521-4c4eed9f0e7e?inc=artists+tags+ratings" ; java . lang . String actual = org . musicbrainz . android . api . webservice . QueryBuilder . recordingLookup ( "470d06f8-6c0c-443d-b521-4c4eed9f0e7e" ) ; "<Asser...
org . junit . Assert . assertEquals ( expected , actual )
entrySet ( ) { "<AssertPlaceHolder>" ; } entrySet ( ) { return new EntrySet ( ) ; }
org . junit . Assert . assertEquals ( expected . entrySet ( ) , map . entrySet ( ) )
testBRY9902Normaal ( ) { final nl . bzk . brp . model . bijhouding . BijhoudingsBericht simplegGeboorteBericht = maakSimpleInschrijvingBericht2 ( ) ; nl . bzk . brp . bijhouding . business . util . BerichtAdministratieUtil . verrijktBerichtMetIdentificeerbaarObjectIndex ( simplegGeboorteBericht ) ; final java . util . ...
org . junit . Assert . assertEquals ( 0 , berichtenDieDeRegelOvertreden . size ( ) )
testInvalidPort ( ) { com . streamsets . pipeline . stage . origin . mongodb . MongoDBSource origin = new com . streamsets . pipeline . stage . origin . mongodb . MongoDBSourceBuilder ( ) . connectionString ( ( ( "mongodb://" + ( com . streamsets . pipeline . stage . origin . mongodb . MongoDBSourceIT . mongoContainerI...
org . junit . Assert . assertEquals ( 1 , issues . size ( ) )
testIterate ( ) { com . samskivert . util . AbstractIntSet set = createSet ( new int [ ] { 3 , 5 , 5 , 9 , 5 , 7 , 1 } ) ; java . util . Set < java . lang . Integer > jset = new java . util . TreeSet < java . lang . Integer > ( ) ; jset . addAll ( set ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { retu...
org . junit . Assert . assertTrue ( jset . equals ( set ) )
testBounceString ( ) { java . lang . String received = server . bounce_string ( org . jacorb . test . bugs . bug739 . Bug739Test . line ) ; "<AssertPlaceHolder>" ; } bounce_string ( java . lang . String ) { return value ; }
org . junit . Assert . assertEquals ( org . jacorb . test . bugs . bug739 . Bug739Test . line , received )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . RecentLayoutRevision . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
shouldValidateWellFormedCertificate ( ) { java . util . List < org . openstack . atlas . util . ca . zeus . ErrorEntry > errors = new java . util . ArrayList < org . openstack . atlas . util . ca . zeus . ErrorEntry > ( ) ; org . openstack . atlas . util . ca . zeus . ZeusUtils . parseCert ( org . openstack . atlas . u...
org . junit . Assert . assertTrue ( errors . isEmpty ( ) )
testReportZeroTTL ( ) { java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; int modOperationsTTL = 0 ; map . put ( "instance-modification" , "P0D" ) ; processEngineConfiguration . setBatchOperationsForHistoryCleanup ( ma...
org . junit . Assert . assertNotNull ( result )
getInputStream ( ) { storage . addFileContentEntry ( entry1 , img1File ) ; java . io . InputStream is = storage . getInputStream ( entry1 ) ; "<AssertPlaceHolder>" ; is . close ( ) ; } getInputStream ( java . lang . String ) { if ( entryName != null ) { byte [ ] bytes = fdataTable . get ( entryName ) ; if ( bytes != nu...
org . junit . Assert . assertTrue ( ( is instanceof java . io . ByteArrayInputStream ) )
complexLocation ( ) { final org . sentilo . web . catalog . domain . LngLat point1 = new org . sentilo . web . catalog . domain . LngLat ( 0.0 , 0.0 ) ; final org . sentilo . web . catalog . domain . LngLat point2 = new org . sentilo . web . catalog . domain . LngLat ( 0.0 , 6.0 ) ; final org . sentilo . web . catalog ...
org . junit . Assert . assertTrue ( ( ( location . getNumberOfCoordinates ( ) ) == 3 ) )
testGetAdHocDataProviderForReadWhenExists ( ) { org . apache . hadoop . fs . Path testPath = org . mrgeo . hdfs . utils . HadoopFileUtils . createUniqueTmp ( ) ; try { org . mrgeo . data . adhoc . AdHocDataProvider dp = org . mrgeo . data . DataProviderFactory . getAdHocDataProvider ( testPath . toString ( ) , AccessMo...
org . junit . Assert . assertNotNull ( dp )
testDisabled ( ) { codeine . jsons . project . DiscardOldCommandsJson discardOldCommandsJson = new codeine . jsons . project . DiscardOldCommandsJson ( ) ; codeine . plugins . DiscardOldCommandSelector tested = new codeine . plugins . DiscardOldCommandSelector ( discardOldCommandsJson , allsCommands , TimeUnit . DAYS ....
org . junit . Assert . assertEquals ( com . google . common . collect . Lists . newArrayList ( ) , tested . commandsToDelete ( ) )
testConstructor ( ) { org . openhealthtools . mdht . uml . cda . hitsp . operations . ProblemListSectionOperations obj = new org . openhealthtools . mdht . uml . cda . hitsp . operations . ProblemListSectionOperations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
cascadeFromMethodReturningAThrowableSubclass ( mockit . CascadingParametersTest$AClass ) { mockit . CascadingParametersTest . CustomException t = mock . getException ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNull ( t )
toTextShouldWriteAvroDataAsDatumText ( ) { org . apache . avro . generic . GenericRecord savedRecord = new org . apache . avro . generic . GenericData . Record ( org . apache . crunch . test . Person . SCHEMA$ ) ; savedRecord . put ( "name" , "John<sp>Doe" ) ; savedRecord . put ( "age" , 42 ) ; savedRecord . put ( "sib...
org . junit . Assert . assertTrue ( outputString . contains ( person . toString ( ) ) )
testGetParameters ( ) { org . lnu . is . domain . paper . usage . PaperUsage entity = new org . lnu . is . domain . paper . usage . PaperUsage ( ) ; java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; entity . setName ( name ) ; entity . setAbbrName ( abbrName ) ; java . util . Map < j...
org . junit . Assert . assertEquals ( expected , actual )
testCombinedPositionCalculator2 ( ) { org . eclipse . birt . data . engine . olap . data . impl . facttable . DimensionDivision [ ] subDimensions ; subDimensions = new org . eclipse . birt . data . engine . olap . data . impl . facttable . DimensionDivision [ 5 ] ; subDimensions [ 0 ] = new org . eclipse . birt . data ...
org . junit . Assert . assertEquals ( bigInteger , bigInteger1 )
testBenchmarksFromFiles ( ) { java . lang . String path = "../examples/" ; java . util . List < java . lang . String > examples = new java . util . ArrayList < java . lang . String > ( ) ; examples . add ( "mamdani/AllTerms" ) ; examples . add ( "takagi-sugeno/matlab/invkine1" 3 ) ; examples . add ( "takagi-sugeno/matl...
org . junit . Assert . assertThat ( ( ( "../examples/" 5 + ( examples . get ( i ) ) ) + "../examples/" 3 ) , errors [ i ] , org . hamcrest . CoreMatchers . is ( 0 ) )
testCreatesDispatcherAsSingleton ( ) { com . eclipsesource . tabris . tracking . internal . EventDispatcher dispatcher1 = com . eclipsesource . tabris . tracking . internal . EventDispatcherProvider . getDispatcher ( ) ; com . eclipsesource . tabris . tracking . internal . EventDispatcher dispatcher2 = com . eclipsesou...
org . junit . Assert . assertSame ( dispatcher1 , dispatcher2 )
testSamplerAggregation ( ) { com . liferay . portal . search . aggregation . bucket . SamplerAggregation samplerAggregation = com . liferay . portal . search . aggregations . test . AggregationsInstantiationTest . _aggregations . sampler ( "name" ) ; "<AssertPlaceHolder>" ; } sampler ( java . lang . String ) { return n...
org . junit . Assert . assertNotNull ( samplerAggregation )
testGetHeaderTooltip_Initial ( ) { "<AssertPlaceHolder>" ; } getHeaderTooltip ( ) { checkWidget ( ) ; return headerTooltip ; }
org . junit . Assert . assertNull ( column . getHeaderTooltip ( ) )
testEncryptUsernameToken ( ) { org . apache . cxf . service . Service service = createService ( ) ; org . apache . wss4j . stax . ext . WSSSecurityProperties inProperties = new org . apache . wss4j . stax . ext . WSSSecurityProperties ( ) ; inProperties . setCallbackHandler ( new org . apache . cxf . ws . security . ws...
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
testNameNodeAdded ( ) { final org . apache . oozie . fluentjob . api . action . SparkActionBuilder builder = getBuilderInstance ( ) ; builder . withNameNode ( org . apache . oozie . fluentjob . api . action . TestSparkActionBuilder . NAME_NODE ) ; final org . apache . oozie . fluentjob . api . action . SparkAction acti...
org . junit . Assert . assertEquals ( org . apache . oozie . fluentjob . api . action . TestSparkActionBuilder . NAME_NODE , action . getNameNode ( ) )
testParseActionTypeErr ( ) { params = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "aaa" , "bbb" ) ; put ( "ccc" , "ddd" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . FlowActionOutputQuery ( params ) ; "<AssertPlaceHolder>" ; } p...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
validationOfUnknownPropertyDefaultNamespaceSuccess ( ) { java . lang . String roomWithValidNamespaces = "<?xml<sp>version='1.0'<sp>encoding='UTF-8'?>" + ( ( ( ( ( ( ( ( ( ( ( ( "Rooms" 0 http : org . apache . olingo . odata2 . api . edm . EdmEntitySet entitySet = org . apache . olingo . odata2 . testutil . mock . MockF...
org . junit . Assert . assertNotNull ( result )
testUnit ( ) { System . out . println ( "Testing<sp>unit<sp>1" ) ; java . lang . String expResult = "0.1<sp>km/h" ; java . lang . String result = com . github . kayak . core . description . SignalDescriptionTest . data . getUnit ( ) ; "<AssertPlaceHolder>" ; } getUnit ( ) { return unit ; }
org . junit . Assert . assertEquals ( expResult , result )
testStructSizes ( ) { if ( ! ( BridJ . Switch . StructsByValue . enabled ) ) return ; org . bridj . StructIO io = org . bridj . StructIO . getInstance ( org . bridj . StructByValueTest . SimpleStruct . class ) ; org . bridj . Pointer < org . bridj . dyncall . DyncallLibrary . DCstruct > struct = org . bridj . DyncallSt...
org . junit . Assert . assertNotNull ( struct )
testSequentialMeansPlaceholder ( ) { org . nd4j . OpValidationSuite . ignoreFailing ( ) ; for ( int dim0 : new int [ ] { 10 , - 1 } ) { java . lang . String msg = "Dimension<sp>0<sp>=<sp>" + dim0 ; System . out . println ( msg ) ; org . nd4j . autodiff . samediff . SameDiff sd = org . nd4j . autodiff . samediff . SameD...
org . junit . Assert . assertArrayEquals ( msg , new long [ ] { 10 } , shape )
testGetStagingBucketName_OneFolder ( ) { java . lang . String expectedBucketName = "test" ; org . powermock . api . mockito . PowerMockito . doReturn ( "/test" ) . when ( jobExecutor , "getS3FileObjectPath" ) ; java . lang . String bucketName = jobExecutor . getStagingBucketName ( ) ; "<AssertPlaceHolder>" ; } getStagi...
org . junit . Assert . assertEquals ( expectedBucketName , bucketName )
testOrOnEmptyOptionalAndEmptySupplierOptional ( ) { final com . annimon . stream . Optional < java . lang . Integer > optional = com . annimon . stream . Optional . < java . lang . Integer > empty ( ) . or ( new com . annimon . stream . function . Supplier < com . annimon . stream . Optional < java . lang . Integer > >...
org . junit . Assert . assertThat ( optional , isEmpty ( ) )
testIndexOutOfBoundsException ( ) { com . ibm . ws . logging . internal . impl . CountingOutputStream out = new com . ibm . ws . logging . internal . impl . CountingOutputStream ( new java . io . ByteArrayOutputStream ( ) ) ; try { out . write ( new byte [ 0 ] , 0 , ( - 1 ) ) ; } catch ( java . lang . IndexOutOfBoundsE...
org . junit . Assert . assertEquals ( 0 , out . count ( ) )
ResolverShouldHaveCorrectAuthority ( ) { com . salesforce . grpc . contrib . NameResolverProvider provider = com . salesforce . grpc . contrib . StaticResolver . provider ( staticAddress ) ; com . salesforce . grpc . contrib . NameResolver resolver = provider . newNameResolver ( java . net . URI . create ( "mesh://some...
org . junit . Assert . assertThat ( resolver . getServiceAuthority ( ) )
testGetContentWithoutContent ( ) { com . documentum . fc . client . IDfSession session = getRepository ( ) . getSessionForOperator ( getRepository ( ) . getRepositoryName ( ) ) ; try { final java . lang . String expectedName = "_#_" + ( name . getMethodName ( ) ) ; final com . documentum . fc . client . IDfSysObject dm...
org . junit . Assert . assertNotNull ( document )
deveObterDataUltimaModificacaoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral retorno = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral ( ) ; final java . time . LocalDat...
org . junit . Assert . assertEquals ( dataUltimaModificacaoSituacaoCadastral , retorno . getDataUltimaModificacaoSituacaoCadastral ( ) )
testTranslateContextKnownTypeVeryPositive ( ) { int context = 2 ; java . lang . String result = org . goodoldai . jeff . report . xml . XMLChunkUtility . translateContext ( context , textEchunk1 ) ; java . lang . String expResult = "VERY_POSITIVE" . toLowerCase ( ) ; "<AssertPlaceHolder>" ; } translateContext ( int , o...
org . junit . Assert . assertEquals ( expResult , result )
testParse7 ( ) { java . lang . String input = "<sp>" ; long [ ] result = org . drools . core . base . evaluators . TimeIntervalParser . parse ( input ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( ( paramText == null ) || ( ( paramText . trim ( ) . length ( ) ) == 0 ) ) { return new long [ 0 ] ; } ...
org . junit . Assert . assertEquals ( 0 , result . length )
shouldExistsById ( ) { repository . save ( person ) ; "<AssertPlaceHolder>" ; } exists ( T extends com . github . jloisel . reactive . entity . api . ReactiveEntity ) { return exists ( entity . getId ( ) ) ; }
org . junit . Assert . assertTrue ( repository . exists ( person . getId ( ) ) )
testSendRawMessage_noOutbound ( ) { com . streamreduce . core . model . Connection connection = org . mockito . Mockito . mock ( com . streamreduce . core . model . Connection . class ) ; com . streamreduce . core . model . Account account = org . mockito . Mockito . mock ( com . streamreduce . core . model . Account ....
org . junit . Assert . assertEquals ( 0 , outboundStorageService . sendRawMessage ( jsonObject , connection ) )
pi ( ) { org . arend . core . context . param . SingleDependentLink x = singleParam ( "x" , Nat ( ) ) ; org . arend . core . context . param . SingleDependentLink y = singleParam ( "y" , Nat ( ) ) ; org . arend . core . context . param . SingleDependentLink xy = singleParam ( true , vars ( "x" , "y" ) , Nat ( ) ) ; org...
org . junit . Assert . assertEquals ( expr1 , expr2 )
testUpdateCalendarField_Null ( ) { com . jmethods . catatumbo . entities . CalendarField entity = new com . jmethods . catatumbo . entities . CalendarField ( ) ; java . util . Calendar now = java . util . Calendar . getInstance ( ) ; entity . setCreationDate ( now ) ; entity = com . jmethods . catatumbo . EntityManager...
org . junit . Assert . assertTrue ( ( ( entity . getCreationDate ( ) ) == null ) )
testOverwriteEntry ( ) { com . google . code . siren4j . converter . ResourceRegistry registry = com . google . code . siren4j . converter . ResourceRegistryImpl . newInstance ( "com.google.code.siren4j" ) ; registry . putEntry ( "course" , com . google . code . siren4j . component . testpojos . Author . class , true )...
org . junit . Assert . assertEquals ( com . google . code . siren4j . component . testpojos . Author . class , result )
testTransactionStatement ( ) { java . lang . String script = "transaction<sp>{}" ; cfml . parsing . cfscript . script . CFScriptStatement scriptStatement = null ; scriptStatement = parseScript ( script ) ; if ( ( fCfmlParser . getMessages ( ) . size ( ) ) > 0 ) { org . junit . Assert . fail ( ( "whoops!<sp>" + ( fCfmlP...
org . junit . Assert . assertNotNull ( scriptStatement )
testDoesLspDbMatchPositive ( ) { final org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . pcep . types . rev181109 . open . object . open . Tlvs tlvs = org . opendaylight . bgpcep . pcep . topology . provider . SyncOptimizationTest . createTlvs ( 1L , false , false ) ; org . mockito ...
org . junit . Assert . assertTrue ( syncOpt . doesLspDbMatch ( ) )
metadata_xmlAssociationEndMultiplicityfalse ( ) { final java . lang . String entryName = "bar/90_contents/odatacol1/00_$metadata.xml" ; final java . lang . String filename = "/00_$metadata_associaton_multi_attr_notexist.xml" ; java . net . URL fileUrl = java . lang . ClassLoader . getSystemResource ( ( ( com . fujitsu ...
org . junit . Assert . assertFalse ( res )
testNewAdductFormula_IMolecularFormula ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IAdductFormula af = builder . newInstance ( org . openscience . cdk . interfaces...
org . junit . Assert . assertNotNull ( af )
testDestroyTaskNotFound ( ) { mockMvc . perform ( delete ( "/tasks/definitions/myTask" ) . accept ( MediaType . APPLICATION_JSON ) ) . andDo ( print ( ) ) . andExpect ( status ( ) . isNotFound ( ) ) ; "<AssertPlaceHolder>" ; } status ( ) { java . lang . String uriTemplate = appStatusesUriTemplate . expand ( ) . getHref...
org . junit . Assert . assertEquals ( 0 , repository . count ( ) )
escapeJSON_2 ( ) { java . lang . String input = "\\" ; java . lang . String escaped = org . oscm . json . EscapeUtils . escapeJSON ( input ) ; "<AssertPlaceHolder>" ; } escapeJSON ( java . lang . String ) { if ( aText == null ) { return null ; } final java . lang . StringBuilder result = new java . lang . StringBuilder...
org . junit . Assert . assertEquals ( "\\\\" , escaped )
testRoundPriceUseTicksizeScale ( ) { double value = 16.778 ; java . math . BigDecimal price = new java . math . BigDecimal ( value ) . setScale ( 3 , RoundingMode . HALF_UP ) ; java . math . BigDecimal scale = new java . math . BigDecimal ( "0.01" ) . setScale ( 2 , RoundingMode . HALF_UP ) ; java . math . BigDecimal a...
org . junit . Assert . assertEquals ( expected , actual )
testUsingANotCompleteQueue ( ) { net . openhft . chronicle . bytes . ref . BinaryLongReference . startCollecting ( ) ; java . io . File tmpDir = net . openhft . chronicle . queue . impl . single . DirectoryUtils . tempDir ( "testUsingANotCompleteQueue" ) ; try { try ( final net . openhft . chronicle . queue . impl . si...
org . junit . Assert . assertEquals ( "data" , dc . wire ( ) . read ( ( ) -> "some" ) . text ( ) )
evaluate ( ) { org . jpmml . evaluator . ModelEvaluator < ? > evaluator = createModelEvaluator ( ) ; checkTargetFields ( java . util . Collections . singletonList ( null ) , evaluator ) ; java . util . Map < org . dmg . pmml . FieldName , ? > arguments = createArguments ( "input" , 1.0 ) ; java . util . Map < org . dmg...
org . junit . Assert . assertEquals ( "2" , affinityDistribution . getResult ( ) )
testCreateReasonForReferralSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . SectionBuilder < org . openhealthtools . mdht . uml . cda . ihe . ReasonForReferralSection > sectionBuilder = org . openhealthtools . mdht . uml . cda . ihe . builder . IHEBuilderFactory . createReasonForReferralSection...
org . junit . Assert . assertNotNull ( section )
testFormatOffset ( long , int , java . lang . String ) { java . lang . StringBuilder b = new java . lang . StringBuilder ( ) ; net . sf . extjwnl . princeton . file . PrincetonRandomAccessDictionaryFile . formatOffset ( i , l , b ) ; "<AssertPlaceHolder>" ; } toString ( ) { return net . sf . extjwnl . util . ResourceBu...
org . junit . Assert . assertEquals ( s , b . toString ( ) )
validateObjectFailures ( ) { doThrow ( new fm . last . moji . tracker . TrackerException ( ) ) . when ( mockBorrowedTracker ) . noop ( ) ; boolean isValid = factory . validateObject ( mockManagedHost , mockBorrowedTracker ) ; "<AssertPlaceHolder>" ; } validateObject ( fm . last . moji . tracker . pool . ManagedTrackerH...
org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( false ) )
testNumDimensions ( ) { setUp ( ) ; "<AssertPlaceHolder>" ; } getNumDimensions ( ) { return this . dims . length ; }
org . junit . Assert . assertEquals ( 4 , table . getNumDimensions ( ) )
compare ( ) { for ( com . dslplatform . json . DslJson < java . lang . Object > dslJson : dslJsons ) { com . dslplatform . json . TypesTest . All a = new com . dslplatform . json . TypesTest . All ( ) ; a . b = true ; java . io . ByteArrayOutputStream os = new java . io . ByteArrayOutputStream ( ) ; dslJson . serialize...
org . junit . Assert . assertEquals ( a . b , res . b )
mapAccessExpr3 ( ) { final org . drools . modelcompiler . builder . generator . TypedExpression expected = typedResult ( "$p.getItems().get(1)" , org . drools . modelcompiler . builder . generator . Integer . class , "$p.items[1]" ) ; final org . drools . modelcompiler . builder . generator . TypedExpression actual = t...
org . junit . Assert . assertEquals ( expected , actual )
testBasicProbabilitiesDynamicUpdate ( ) { org . evosuite . seeding . DynamicConstantVariableProbabilityPool pool = new org . evosuite . seeding . DynamicConstantVariableProbabilityPool ( ) ; for ( int i = 0 ; i < 99 ; i ++ ) { pool . add ( "Foo" ) ; } pool . add ( "Bar" ) ; int count1 = 0 ; for ( int i = 0 ; i < 100 ; ...
org . junit . Assert . assertTrue ( ( count1 < count2 ) )
testGetResultUrlwEntityId ( ) { org . sagebionetworks . client . AsynchJobType type = AsynchJobType . TableAppendRowSet ; java . lang . String actual = type . getResultUrl ( token , tableId ) ; java . lang . String expected = "/entity/0123456/table/append/async/get/abcdefgh" ; "<AssertPlaceHolder>" ; } getResultUrl ( j...
org . junit . Assert . assertEquals ( actual , expected )
testBuildEmptyParameters ( ) { org . lnu . is . domain . specoffer . SpecOffer specOffer = new org . lnu . is . domain . specoffer . SpecOffer ( ) ; org . lnu . is . domain . wave . type . WaveType waveType = new org . lnu . is . domain . wave . type . WaveType ( ) ; java . lang . Integer licCount = 1 ; java . lang . I...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testSharedSortVariables ( ) { com . epimorphics . lda . support . MultiMap < java . lang . String , java . lang . String > qp = com . epimorphics . lda . tests_support . MakeData . parseQueryString ( "" ) ; com . epimorphics . lda . bindings . Bindings bindings = com . epimorphics . lda . tests_support . MakeData . var...
org . junit . Assert . assertEquals ( 2 , opts . size ( ) )
removingUncommittedLabel ( ) { org . neo4j . graphdb . GraphDatabaseService beansAPI = dbRule . getGraphDatabaseAPI ( ) ; org . neo4j . graphdb . Label label = org . neo4j . graphdb . LabelsAcceptanceTest . Labels . MY_LABEL ; org . neo4j . graphdb . Node myNode ; try ( org . neo4j . graphdb . Transaction tx = beansAPI...
org . junit . Assert . assertFalse ( myNode . hasLabel ( label ) )
testFirstIteration ( ) { org . apache . spark . api . java . JavaSparkContext sc = getContext ( ) ; org . apache . spark . api . java . JavaRDD < java . lang . String > corpusRDD = getCorpusRDD ( sc ) ; org . apache . spark . broadcast . Broadcast < org . deeplearning4j . spark . text . Map < java . lang . String , jav...
org . junit . Assert . assertTrue ( ret . iterator ( ) . hasNext ( ) )
testBuildMapWithComlexBeanAndRebuild_shouldBeEqualToOriginalBean ( ) { org . openengsb . core . util . beans . BeanWithComplexAttributes bean = new org . openengsb . core . util . beans . BeanWithComplexAttributes ( new org . openengsb . core . util . beans . CustomStringClass ( "foo:bar" ) , new java . math . BigDecim...
org . junit . Assert . assertThat ( created , org . hamcrest . Matchers . is ( bean ) )
testPowerOfInteger ( ) { java . util . Map < java . lang . String , java . lang . Object > context = com . google . common . collect . Maps . newHashMap ( ) ; context . put ( "evenExponent" 1 , 2 ) ; context . put ( "evenExponent" , 8 ) ; context . put ( "oddExponent" , 7 ) ; context . put ( "evenExponent" 4 , ( - 2 ) ...
org . junit . Assert . assertEquals ( expected , rendered )
testMapGetterAttr ( ) { bean . put ( "test" , new com . jitlogic . zorka . core . mbeans . AttrGetter ( this , "class" ) ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { if ( ! ( attrs . containsKey ( attribute ) ) ) { throw new javax . management . AttributeNotFoundException ( ( ( "This<sp>MBean<s...
org . junit . Assert . assertSame ( this . getClass ( ) , bean . getAttribute ( "test" ) )
testLockWithProperAuth ( ) { final org . locationtech . geowave . adapter . vector . plugin . lock . LockingManagement memoryLockManager = new org . locationtech . geowave . adapter . vector . plugin . lock . MemoryLockManager ( "default" ) ; final org . geotools . data . Transaction t1 = org . geotools . data . Transa...
org . junit . Assert . assertTrue ( ( ( ( java . lang . System . currentTimeMillis ( ) ) - currentTime ) < 4000 ) )
defaultTopology ( ) { uk . ac . ebi . beam . Graph g = new uk . ac . ebi . beam . Graph ( 5 ) ; "<AssertPlaceHolder>" ; } topologyOf ( int ) { if ( ( topologies [ u ] ) == null ) return uk . ac . ebi . beam . Topology . unknown ( ) ; return topologies [ u ] ; }
org . junit . Assert . assertThat ( g . topologyOf ( 4 ) , org . hamcrest . CoreMatchers . is ( uk . ac . ebi . beam . Topology . unknown ( ) ) )
setPermutationTest ( ) { int size = 4 ; int [ ] target = new int [ ] { 3 , 1 , 0 , 2 } ; org . openscience . cdk . graph . Permutor permutor = new org . openscience . cdk . graph . Permutor ( size ) ; permutor . setPermutation ( target ) ; "<AssertPlaceHolder>" ; } getCurrentPermutation ( ) { return this . unrankPermut...
org . junit . Assert . assertArrayEquals ( target , permutor . getCurrentPermutation ( ) )
shouldNotChangeAListWhenRemovingAQueryThatIsNotInTheList ( ) { org . neo4j . kernel . api . query . ExecutingQuery query1 = createExecutingQuery ( 1 , "query1" ) ; org . neo4j . kernel . api . query . ExecutingQuery query2 = createExecutingQuery ( 2 , "query2" ) ; org . neo4j . kernel . impl . api . ExecutingQueryList ...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( list ) )
testHostIP ( ) { org . powermock . api . mockito . PowerMockito . when ( myAddress . getHostName ( ) ) . thenReturn ( me . moocar . logbackgelf . InternetUtilsTest . RESULT_HOSTNAME ) ; org . powermock . api . mockito . PowerMockito . when ( myAddress . getCanonicalHostName ( ) ) . thenReturn ( me . moocar . logbackgel...
org . junit . Assert . assertEquals ( me . moocar . logbackgelf . InternetUtilsTest . RESULT_HOSTNAME , me . moocar . logbackgelf . InternetUtils . getLocalHostName ( ) )
testCombinedSpanInMultipleFieldsQuery ( ) { java . lang . String query = "<sp>lin<sp>" ; java . util . ArrayList < java . lang . String > attributeNames = new java . util . ArrayList ( ) ; attributeNames . add ( TestConstants . FIRST_NAME ) ; attributeNames . add ( TestConstants . LAST_NAME ) ; attributeNames . add ( T...
org . junit . Assert . assertTrue ( contains )
testGetDefaultPort ( ) { System . out . println ( "testGetDefaultPort" ) ; int expResult = 5432 ; team . bus . model . bean . DataBaseInfo instance = new team . bus . model . bean . DataBaseInfo ( ) ; int result = instance . getPort ( ) ; "<AssertPlaceHolder>" ; } getPort ( ) { return this . port ; }
org . junit . Assert . assertEquals ( expResult , result )
shouldConstructScopeWithNullProperties ( ) { com . oracle . bedrock . runtime . java . container . ContainerScope scope = new com . oracle . bedrock . runtime . java . container . ContainerScope ( "test" ) ; "<AssertPlaceHolder>" ; } getProperties ( ) { return com . oracle . bedrock . runtime . DummyApp . properties ; ...
org . junit . Assert . assertThat ( scope . getProperties ( ) . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
invalidKeyWordsInOperationThrowsException ( ) { final io . cloudslang . lang . compiler . parser . model . ParsedSlang mockParsedSlang = mockOperationsSlangFile ( ) ; java . util . Map < java . lang . String , java . lang . Object > executableRawData = new java . util . HashMap ( ) ; java . lang . String key = "a" ; ex...
org . junit . Assert . assertNotNull ( op )
maximumPacketLengthForInboundSequencedData ( ) { java . lang . String message = repeat ( 'X' , com . paritytrading . nassau . soupbintcp . SoupBinTCPSessionTest . MAX_RX_PAYLOAD_LENGTH ) ; server . send ( wrap ( message ) ) ; while ( ( clientMessages . collect ( ) . size ( ) ) != 1 ) client . receive ( ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( asList ( message ) , clientMessages . collect ( ) )
testPeekOnEmptyDeque ( ) { com . sun . sgs . test . app . util . TestScalableDeque . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) throws com . sun . sgs . test . app . util . Exception { com . sun . sgs . app . util . ScalableDeque < java . lang . Int...
org . junit . Assert . assertEquals ( null , d . peek ( ) )
drainInputStream_RemainingBytesInStream_ReadsAllRemainingData ( ) { final java . io . InputStream inputStream = randomInputStream ( ) ; software . amazon . awssdk . utils . IoUtils . drainInputStream ( inputStream ) ; "<AssertPlaceHolder>" ; } read ( ) { int read = inputStream . read ( ) ; if ( ( read != ( - 1 ) ) && (...
org . junit . Assert . assertEquals ( ( - 1 ) , inputStream . read ( ) )
isSameWhenCoreAttributesNotModCreatedChecksumChanged ( ) { cachedMetacard . setAttribute ( Core . DERIVED_RESOURCE_DOWNLOAD_URL , "testExpirationCached" 9 ) ; cachedMetacard . setAttribute ( Core . DATATYPE , "testLocationUpdated" 3 ) ; cachedMetacard . setAttribute ( Core . DERIVED_RESOURCE_URI , "testLocationUpdated"...
org . junit . Assert . assertThat ( ddf . catalog . cache . impl . CachedResourceMetacardComparator . isSame ( cachedMetacard , updatedMetacard ) , org . hamcrest . CoreMatchers . is ( true ) )
testTimeManager ( ) { org . openscience . cdk . smsd . tools . TimeManager tMan = new org . openscience . cdk . smsd . tools . TimeManager ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( tMan )
testBsonObjectEquality2 ( ) { io . mewbase . bson . BsonObject obj1 = new io . mewbase . bson . BsonObject ( ) . put ( "arr" , new io . mewbase . bson . BsonArray ( ) . add ( "x" ) ) ; io . mewbase . bson . List < io . mewbase . bson . BsonValue > list = new io . mewbase . bson . ArrayList ( ) ; list . add ( io . mewba...
org . junit . Assert . assertEquals ( obj2 , obj1 )
serializes_nested_rekords ( ) { com . noodlesandwich . rekord . Rekord < com . noodlesandwich . rekord . serialization . Person > person = Person . rekord . with ( Person . firstName , "Queen<sp>Elizabeth" ) . with ( Person . lastName , "house<sp>number" 0 ) . with ( Person . address , Address . rekord . with ( Address...
org . junit . Assert . assertThat ( serialized , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expected ) ) )
testRealLifeRTL2 ( ) { java . lang . String expectedCsv = technology . tabula . UtilsForTesting . loadCsv ( "src/test/resources/technology/tabula/csv/indictb1h_14.csv" ) ; technology . tabula . Page page = technology . tabula . UtilsForTesting . getAreaFromPage ( "src/test/resources/technology/tabula/indictb1h_14.pdf" ...
org . junit . Assert . assertEquals ( expectedCsv , sb . toString ( ) )
calculateRetrieveSizeShouldReturnNoOfPipelinesWhenPagingDisabled ( ) { se . diabol . jenkins . pipeline . domain . Component component = mock ( se . diabol . jenkins . pipeline . domain . Component . class ) ; when ( component . isFullScreenView ( ) ) . thenReturn ( false ) ; final int numberOfPipelines = 9 ; int retri...
org . junit . Assert . assertThat ( retrieveSize , org . hamcrest . core . Is . is ( numberOfPipelines ) )
testTerugConversieUitBlob ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Persoon persoon = persoonRepository . haalPersoonOp ( 1 ) ; final java . util . List < nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonAfnemerindicatie > persoonAfnemerindicaties = afnemerindicatieRepository . haa...
org . junit . Assert . assertEquals ( bewaardeAfdruk , afdruk )
shouldAnalyzeReturnsTrueIfTheFileTypeAnalyzersAcceptsTheDependency ( ) { final java . io . File dependencyFile = new java . io . File ( "" ) ; new mockit . Expectations ( ) { { dependency . getActualFile ( ) ; result = dependencyFile ; fileTypeAnalyzer . accept ( dependencyFile ) ; result = true ; } } ; org . owasp . d...
org . junit . Assert . assertTrue ( shouldAnalyze )
testShouldTransform_does_filter_correctly_a_non_static_inner_class ( ) { dst = new javassist . CtClass ( ( "Dst" + ( TestCounter . testCounter ) ) ) { @ com . github . stephanenicolas . mimic . Override public javassist . CtClass [ ] getDeclaredClasses ( ) throws javassist . NotFoundException { javassist . CtClass inne...
org . junit . Assert . assertFalse ( filter )
doublestream_generate ( ) { java . util . OptionalDouble one = java . util . stream . DoubleStream . generate ( ( ) -> 1 ) . limit ( 10 ) . distinct ( ) . findFirst ( ) ; "<AssertPlaceHolder>" ; } getAsDouble ( ) { return 10 ; }
org . junit . Assert . assertEquals ( 1 , one . getAsDouble ( ) , 0 )
pairFrom ( ) { com . gs . collections . api . tuple . Pair < java . lang . String , java . lang . String > pair = com . gs . collections . impl . tuple . Tuples . pair ( "1" , "2" ) ; Map . Entry < java . lang . String , java . lang . String > entry = pair . toEntry ( ) ; com . gs . collections . api . tuple . Pair < j...
org . junit . Assert . assertEquals ( pair , pair2 )
testUnnestGroupByList ( ) { com . dremio . dac . explore . model . DatasetUI dataset = createDatasetFromParentAndSave ( "unnestAndGroupBy" , "cp.\"json/nested.json\"" ) ; com . dremio . dac . explore . model . InitialPreviewResponse response2 = transform ( dataset , new com . dremio . dac . proto . model . dataset . Tr...
org . junit . Assert . assertEquals ( 6 , data . getReturnedRowCount ( ) )