input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testShowMessageDialog1 ( ) { org . evosuite . testsuite . TestSuiteChromosome suite = new org . evosuite . testsuite . TestSuiteChromosome ( ) ; org . evosuite . instrumentation . InstrumentingClassLoader cl = new org . evosuite . instrumentation . InstrumentingClassLoader ( ) ; org . evosuite . testcase . TestCase t0 ...
org . junit . Assert . assertEquals ( 3 , coveredGoals . size ( ) )
testOrder ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "brown" , "dog" , "fox" , "jumps" , "lazy" , "over" , "quick" , "the" } ; for ( int i = 0 ; i < ( expected . length ) ; i ++ ) { "<AssertPlaceHolder>" ; } } idToSortPosition ( int , boolean ) { return sensitive ? sortPositionPerId [ id ]...
org . junit . Assert . assertEquals ( expected [ t . idToSortPosition ( i , true ) ] , t . get ( i ) )
test ( ) { org . tests . model . basic . ResetBasicData . reset ( ) ; io . ebean . EbeanServer server = io . ebean . Ebean . getServer ( null ) ; io . ebean . Query < org . tests . model . basic . Customer > query = server . find ( org . tests . model . basic . Customer . class ) . setAutoTune ( false ) . fetch ( "cont...
org . junit . Assert . assertEquals ( 2 , counter . get ( ) )
testAddCluster ( ) { java . lang . String className = "testAddCluster" ; com . orientechnologies . orient . core . metadata . schema . OSchema schema = com . orientechnologies . orient . core . sql . executor . OAlterClassStatementExecutionTest . db . getMetadata ( ) . getSchema ( ) ; schema . createClass ( className )...
org . junit . Assert . assertTrue ( found )
testExonOverlapNoFrameshiftOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t58946844\t.\tN\t<DEL:ME>\t.\t.\tSVTYPE=DEL;END=58946946" ) ; final java . lang . String expected = "1\t58946844\t.\tN\t<DEL:ME>\t.\t.\tEND=58946946;" + ( "SVANN=feature_truncation&mobile_element_dele...
org . junit . Assert . assertEquals ( expected , actual )
readWithEmptyDataDoesNothing ( ) { final org . json . JSONObject json = new org . json . JSONObject ( ) ; json . put ( org . phenotips . data . internal . controller . LabeledExternalIdentifiersControllerTest . CONTROLLER_NAME , new org . json . JSONArray ( ) ) ; final org . phenotips . data . PatientData < org . apach...
org . junit . Assert . assertNull ( result )
testFailingWithException ( ) { java . lang . String nullString = null ; "<AssertPlaceHolder>" ; new java . util . ArrayList ( ) . get ( ( - 100 ) ) ; }
org . junit . Assert . assertEquals ( ( - 1 ) , nullString . length ( ) )
getValueFromJsonObject_input_key_empty ( ) { java . lang . String jsonString = "{\"deviceId\":\"xxx-device\",\"generationId\":\"111111111111111111\",\"etag\":\"MA==\",\"connectionState\":\"Disconnected\",\"status\":\"Disabled\",\"statusReason\":null,\"connectionStateUpdatedTime\":\"0001-01-01T00:00:00\",\"statusUpdated...
org . junit . Assert . assertEquals ( expResult , result )
withAbsolutePath ( ) { final com . azure . common . implementation . http . UrlBuilder builder = new com . azure . common . implementation . http . UrlBuilder ( ) . withScheme ( "http" ) . withHost ( "www.example.com" ) . withPath ( "http://www.othersite.com" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . v...
org . junit . Assert . assertEquals ( "http://www.othersite.com" , builder . toString ( ) )
validate_idTagIsNull_returnFalse ( ) { boolean isValid = request . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; }
org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( false ) )
testSetRow ( ) { org . apache . commons . math . linear . FieldMatrix < org . apache . commons . math . fraction . Fraction > m = new org . apache . commons . math . linear . BlockFieldMatrix < org . apache . commons . math . fraction . Fraction > ( subTestData ) ; "<AssertPlaceHolder>" ; m . setRow ( 0 , subRow3 [ 0 ]...
org . junit . Assert . assertTrue ( ( ( subRow3 [ 0 ] [ 0 ] ) != ( m . getRow ( 0 ) [ 0 ] ) ) )
WhenPawnDoStepItCanMovInNewBox ( ) { ru . szhernovoy . model . Pawn pawn = new ru . szhernovoy . model . Pawn ( Color . Black ) ; ru . szhernovoy . model . Point a = new ru . szhernovoy . model . Point ( 0 , 0 ) ; ru . szhernovoy . model . Point b = new ru . szhernovoy . model . Point ( 1 , 0 ) ; boolean message = true...
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( message ) )
shouldReturnTheValueAsIsGivenNonEmptyValue ( ) { java . lang . String result = org . flips . utils . ValidationUtils . requireNonEmpty ( "test" , "Expected<sp>argument<sp>can<sp>not<sp>be<sp>null" ) ; "<AssertPlaceHolder>" ; } requireNonEmpty ( java . lang . String , java . lang . String ) { boolean isEmpty = org . fli...
org . junit . Assert . assertEquals ( result , "test" )
mulitpleFilterTest ( ) { org . geotoolkit . index . LogicalFilterType [ ] filterType5 = new org . geotoolkit . index . LogicalFilterType [ ] { org . geotoolkit . index . LogicalFilterType . AND , org . geotoolkit . index . LogicalFilterType . NOT } ; serialFilter = new org . geotoolkit . lucene . filter . SerialChainFi...
org . junit . Assert . assertEquals ( nbResults , 0 )
retrievesMatrixParamValueFromLastPathSegment ( ) { when ( typeProducer . createValue ( "foo" , matrixParameters , null ) ) . thenReturn ( matrixParameters . getFirst ( "foo" ) ) ; java . lang . Object resolvedMatrixParameter = matrixParameterResolver . resolve ( parameter , applicationContext ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( matrixParameters . getFirst ( "foo" ) , resolvedMatrixParameter )
testDeleteUploadPreset ( ) { api . uploadPreset ( com . cloudinary . test . AbstractApiTest . API_TEST_UPLOAD_PRESET_4 , com . cloudinary . utils . ObjectUtils . emptyMap ( ) ) ; api . deleteUploadPreset ( com . cloudinary . test . AbstractApiTest . API_TEST_UPLOAD_PRESET_4 , com . cloudinary . utils . ObjectUtils . em...
org . junit . Assert . assertTrue ( error )
testSerialization ( ) { org . jfree . data . xy . YIntervalSeriesCollection c1 = new org . jfree . data . xy . YIntervalSeriesCollection ( ) ; org . jfree . data . xy . YIntervalSeries s1 = new org . jfree . data . xy . YIntervalSeries ( "Series" ) ; s1 . add ( 1.0 , 1.1 , 1.2 , 1.3 ) ; org . jfree . data . xy . YInter...
org . junit . Assert . assertEquals ( c1 , c2 )
testNaturalIdload ( ) { sfsb . setupConfig ( ) ; try { org . jboss . as . test . integration . hibernate . naturalid . Person s1 = sfsb . createPerson ( "MADHUMITA" , "SADHUKHAN" , "99<sp>Purkynova<sp>REDHAT<sp>BRNO<sp>CZ" , 123 , 1 ) ; org . jboss . as . test . integration . hibernate . naturalid . Person s2 = sfsb . ...
org . junit . Assert . assertEquals ( p2 . getAddress ( ) , "99<sp>Purkynova<sp>REDHAT<sp>BRNO<sp>CZ" )
testDeserialize ( ) { com . liferay . data . engine . io . DEDataLayoutDeserializerApplyRequest deDataLayoutDeserializerApplyRequest = DEDataLayoutDeserializerApplyRequest . Builder . of ( read ( "data-layout-page-serializer.json" ) ) ; com . liferay . data . engine . io . DEDataLayoutDeserializerApplyResponse deDataLa...
org . junit . Assert . assertFalse ( deDataLayoutPages . isEmpty ( ) )
testToString ( ) { ch . puzzle . itc . mobiliar . business . property . entity . FreeMarkerProperty p = new ch . puzzle . itc . mobiliar . business . property . entity . FreeMarkerProperty ( "$${test}" , "key" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( ( ( ( ( ( "Info<sp>[resource=" + ( appServer . g...
org . junit . Assert . assertEquals ( "$${test}" , p . toString ( ) )
newBeanClassIsManagedBeanReRunTestOnlyAfterMvnClean ( ) { try { WeldPlugin . isTestEnvironment = true ; java . util . Collection < org . hotswap . agent . plugin . weld . command . BeanClassRefreshAgent > instances = org . hotswap . agent . plugin . weld . command . BeanClassRefreshAgent . getInstances ( ) ; for ( org ...
org . junit . Assert . assertNotNull ( bean )
testSerialization ( ) { org . jfree . chart . entity . PieSectionEntity e1 = new org . jfree . chart . entity . PieSectionEntity ( new java . awt . geom . Rectangle2D . Double ( 1.0 , 2.0 , 3.0 , 4.0 ) , new org . jfree . data . general . DefaultPieDataset ( ) , 1 , 2 , "Key" , "ToolTip" , "URL" ) ; java . io . ByteArr...
org . junit . Assert . assertEquals ( e1 , e2 )
testDefaultBigEndian ( ) { org . codehaus . preon . codec . Codec < org . codehaus . preon . codec . IntegrationTest . Test49 > codec = org . codehaus . preon . codec . Codecs . create ( org . codehaus . preon . codec . IntegrationTest . Test49 . class ) ; org . codehaus . preon . codec . IntegrationTest . Test49 value...
org . junit . Assert . assertEquals ( 1 , value . value )
toStringIsCorrect ( ) { final java . lang . String iotHubHostname = "test.iothub" ; final java . lang . String deviceId = "test-deviceid" ; final java . lang . String eTag = "test-etag" ; final java . lang . String uriStr = "test-uri-str" ; new mockit . NonStrictExpectations ( ) { { mockIotHubUri . toString ( ) ; resul...
org . junit . Assert . assertThat ( testUriStr , org . hamcrest . CoreMatchers . is ( expectedUriStr ) )
testGetRemoveMultiLineComment ( ) { classUnderTest . setRemoveMultiLineComment ( true ) ; "<AssertPlaceHolder>" ; } getRemoveMultiLineComment ( ) { return _removeMultiLineComment ; }
org . junit . Assert . assertEquals ( true , classUnderTest . getRemoveMultiLineComment ( ) )
testPreviousValueBeforeStart ( ) { org . roaringbitmap . buffer . MappeableBitmapContainer container = new org . roaringbitmap . buffer . MappeableArrayContainer ( java . nio . ShortBuffer . wrap ( new short [ ] { 10 , 20 , 30 } ) , 3 ) . toBitmapContainer ( ) ; "<AssertPlaceHolder>" ; } previousValue ( int ) { short k...
org . junit . Assert . assertEquals ( ( - 1 ) , container . previousValue ( ( ( short ) ( 5 ) ) ) )
testWhitespaceExtIsNotIgnored ( ) { c = b . ext ( "<sp>" ) . build ( ) ; "<AssertPlaceHolder>" ; } getExt ( ) { return ext ; }
org . junit . Assert . assertEquals ( "<sp>" , c . getExt ( ) )
test_success_older_message_existing_entity ( ) { org . ikasan . filter . EntityAgeFilter < java . lang . String > filter = new org . ikasan . filter . EntityAgeFilter < java . lang . String > ( this . defaultEntityAgeFilterService , "client-d" ) ; org . ikasan . filter . configuration . EntityAgeFilterConfiguration con...
org . junit . Assert . assertNull ( result )
testComplexItemDocumentBuild ( ) { org . wikidata . wdtk . datamodel . interfaces . MonolingualTextValue mtv = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeMonolingualTextValue ( "Test" , "de" ) ; org . wikidata . wdtk . datamodel . interfaces . SiteLink sl = org . wikidata . wdtk . datamodel . helpers...
org . junit . Assert . assertEquals ( id1 , id2 )
testNext ( ) { assumeUsbTestsEnabled ( ) ; while ( this . iterator . hasNext ( ) ) { "<AssertPlaceHolder>" ; } } next ( ) { if ( ! ( hasNext ( ) ) ) throw new java . util . NoSuchElementException ( ) ; return this . pollfds . get ( ( ( this . nextIndex ) ++ ) ) ; }
org . junit . Assert . assertNotNull ( this . iterator . next ( ) )
testGetVDiskId ( ) { parameters . put ( PropertyHandler . VDISK_ID , new org . oscm . app . v2_0 . data . Setting ( PropertyHandler . VDISK_ID , "vdiskid" ) ) ; propertyHandler = new org . oscm . app . iaas . PropertyHandler ( settings ) ; java . lang . String id = propertyHandler . getVDiskId ( ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( "vdiskid" , id )
retrieveNonExitingResource ( ) { java . lang . String uri = "http://localhost/dummy" ; java . util . List < org . eclipse . rdf4j . model . Statement > statements = testStoreManager . retrieveResource ( f . createIRI ( uri ) ) ; "<AssertPlaceHolder>" ; } retrieveResource ( org . eclipse . rdf4j . model . IRI ) { com . ...
org . junit . Assert . assertTrue ( statements . isEmpty ( ) )
encoding ( ) { java . lang . String [ ] configArray = new java . lang . String [ ] { "UTF8" , "UTF-16LE" 4 , "UTF_8" , "UTF16" , "UTF-16LE" 2 , "UTF_16" , "UTF_16LE" , "UTF-16LE" , "UTF16_LITTLE_ENDIAN" , "UTF_16BE" , "UTF-16BE" , "UTF-16LE" 0 } ; java . lang . String [ ] encodingArray = new java . lang . String [ ] { ...
org . junit . Assert . assertEquals ( encodingArray [ ( i / 3 ) ] , rs . getString ( 1 ) )
testEmpty ( ) { org . openscience . cdk . ringsearch . CyclicVertexSearch search = new org . openscience . cdk . ringsearch . RegularCyclicVertexSearch ( new int [ 0 ] [ 0 ] ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( search )
testIoNewList ( ) { int id = 0 ; try { org . isf . priceslist . model . PriceList pricelist = org . isf . priceslist . test . Tests . testPriceList . setup ( false ) ; priceListIoOperation . newList ( pricelist ) ; id = _getListMax ( ) ; org . isf . priceslist . model . PriceList foundPriceList = ( ( org . isf . prices...
org . junit . Assert . assertEquals ( true , false )
simpleRunWithRawApi ( ) { java . lang . String clazz = ( this . getClass ( ) . getName ( ) . replaceAll ( "\\." , "/" ) ) + ".class" ; org . ops4j . pax . url . dir . internal . FileTail loc = new org . ops4j . pax . url . dir . internal . FileTailImpl ( new java . io . File ( "." ) , clazz ) ; org . ops4j . pax . url ...
org . junit . Assert . assertNotNull ( in )
testImportDefaultWithFileExtensionPropertiesFiles ( ) { org . pentaho . platform . api . repository2 . unified . IUnifiedRepository mockUnifiedRepository = mock ( org . pentaho . platform . api . repository2 . unified . IUnifiedRepository . class ) ; org . pentaho . platform . plugin . services . importer . RepositoryF...
org . junit . Assert . assertNotNull ( localeParent )
whenReprIsBigInteger ( ) { allowingObjectSpecHas ( org . apache . isis . core . metamodel . facets . object . encodeable . EncodableFacet . class , mockEncodableFacet ) ; allowingObjectSpecCorrespondingClassAndSpecIdIs ( java . math . BigInteger . class ) ; final java . math . BigInteger value = java . math . BigIntege...
org . junit . Assert . assertSame ( mockObjectAdapter , adapter )
testConstructor ( ) { java . util . Map < org . matsim . api . core . v01 . Id < org . matsim . core . utils . collections . IdentifiableArrayMapTest . TO > , org . matsim . core . utils . collections . IdentifiableArrayMapTest . TO > map = new org . matsim . core . utils . collections . IdentifiableArrayMap < org . ma...
org . junit . Assert . assertEquals ( 0 , map . size ( ) )
testNN_AtmCorrCheckInputNode ( ) { int numNodesInput = 11 ; int numNodesOutput = 1 ; int checkOutputNode = org . esa . s3tbx . fub . wew . util . NN_YellowSubstance . compute ( in , numNodesInput , out , numNodesOutput , width , mask , 0 , a ) ; "<AssertPlaceHolder>" ; } compute ( float [ ] [ ] , int , float [ ] [ ] , ...
org . junit . Assert . assertEquals ( ( - 1 ) , checkOutputNode )
testForwardRequestInClientInterceptor ( ) { ForwardInterceptor . protocols = new org . omg . RTCORBA . Protocol [ ] { new org . omg . RTCORBA . Protocol ( new org . jacorb . test . orb . etf . wiop . WIOPFactories ( ) . profile_tag ( ) , null , null ) } ; server . ping ( ) ; "<AssertPlaceHolder>" ; } isTransportInUse (...
org . junit . Assert . assertTrue ( org . jacorb . test . orb . etf . wiop . WIOPFactories . isTransportInUse ( ) )
testValideerNietIngeschreven ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView persoonView = maakHuidigeSituatie ( SoortPersoon . NIET_INGESCHREVENE ) ; final nl . bzk . brp . business . regels . context . HuidigeSituatieRegelContext context = new nl . bzk . brp . business . regels . co...
org . junit . Assert . assertFalse ( resultaat )
testGetVar ( ) { final java . lang . String dbName = ( ( ( "schema" + ( org . xenei . jdbc4sparql . impl . NameUtils . SPARQL_DOT ) ) + "table" ) + ( org . xenei . jdbc4sparql . impl . NameUtils . SPARQL_DOT ) ) + "column" ; final com . hp . hpl . jena . sparql . core . Var v = columnInfo . getVar ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( dbName , v . getName ( ) )
testToThriftType ( ) { final org . apache . parquet . thrift . struct . ThriftType . StructType converted = org . apache . parquet . thrift . ThriftSchemaConverter . toStructType ( com . twitter . data . proto . tutorial . thrift . AddressBook . class ) ; final java . lang . String json = converted . toJSON ( ) ; final...
org . junit . Assert . assertEquals ( json , fromJSON . toJSON ( ) )
itAllowsWorkerToServiceTransitionIfNotLoadBalanced ( ) { com . hubspot . singularity . SingularityRequest request = new com . hubspot . singularity . SingularityRequestBuilder ( "test" , com . hubspot . singularity . RequestType . WORKER ) . build ( ) ; com . hubspot . singularity . SingularityRequest newRequest = new ...
org . junit . Assert . assertEquals ( newRequest . getRequestType ( ) , result . getRequestType ( ) )
testIsCheckerDisabledWhenSettingUserToForbiddenRole ( ) { com . liferay . portal . kernel . model . User user = com . liferay . portal . kernel . test . util . UserTestUtil . addUser ( ) ; com . liferay . portlet . sites . search . UserGroupRoleRoleChecker userGroupRoleRoleChecker = new com . liferay . portlet . sites ...
org . junit . Assert . assertTrue ( userGroupRoleRoleChecker . isDisabled ( role ) )
testSubList ( ) { java . util . List < java . lang . String > subList = getCollection ( ) . subList ( 0 , 0 ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return false ; }
org . junit . Assert . assertTrue ( subList . isEmpty ( ) )
shouldConnectWithDefault ( ) { final java . nio . channels . ServerSocketChannel serverSocketChannel = java . nio . channels . ServerSocketChannel . open ( ) ; try { serverSocketChannel . bind ( new java . net . InetSocketAddress ( kieker . monitoring . writer . tcp . SingleSocketTcpWriterTest . HOSTNAME , kieker . mon...
org . junit . Assert . assertTrue ( true )
toSimpleValue_emptyNS ( ) { java . util . Set < java . math . BigDecimal > numset = software . amazon . awssdk . services . dynamodb . document . internal . InternalUtils . toSimpleValue ( software . amazon . awssdk . services . dynamodb . model . AttributeValue . builder ( ) . ns ( new java . util . ArrayList < java ....
org . junit . Assert . assertTrue ( ( ( numset . size ( ) ) == 0 ) )
testMillisSerialization ( ) { com . owlike . genson . Genson genson = createTimestampGenson ( java . time . LocalDateTime . class , TimestampFormat . MILLIS ) ; java . lang . Long millis = 4534654564653L ; java . time . LocalDateTime dt = java . time . LocalDateTime . ofInstant ( java . time . Instant . ofEpochMilli ( ...
org . junit . Assert . assertEquals ( millis . toString ( ) , genson . serialize ( dt ) )
testWithSimpleGraph ( ) { org . apache . flink . graph . library . clustering . undirected . TriadicCensus . Result expectedResult = new org . apache . flink . graph . library . clustering . undirected . TriadicCensus . Result ( 3 , 8 , 7 , 2 ) ; org . apache . flink . graph . library . clustering . undirected . Triadi...
org . junit . Assert . assertEquals ( expectedResult , triadCensus )
hetero ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[#X]" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience . cdk . smart...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
createDynamicModule ( ) { de . devsurf . injection . guice . scanner . StartupModule startup = de . devsurf . injection . guice . scanner . StartupModule . create ( de . devsurf . injection . guice . scanner . asm . ASMClasspathScanner . class , de . devsurf . injection . guice . scanner . PackageFilter . create ( de ....
org . junit . Assert . assertNotNull ( injector )
getSinkComponentStats ( ) { final com . hortonworks . streamline . streams . layout . component . TopologyLayout topology = getTopologyLayoutForTest ( ) ; final long from = 1L ; final long to = 3L ; final com . hortonworks . streamline . streams . metrics . topology . TopologyTimeSeriesMetrics . TimeSeriesComponentMetr...
org . junit . Assert . assertEquals ( expectedMetric , actual )
testGetFieldValue ( ) { java . lang . Object value = org . axonframework . common . ReflectionUtils . ReflectionUtils . getFieldValue ( org . axonframework . common . ReflectionUtilsTest . SomeType . class . getDeclaredField ( "field1" ) , new org . axonframework . common . ReflectionUtilsTest . SomeSubType ( ) ) ; "<A...
org . junit . Assert . assertEquals ( "field1" , value )
shouldWriteByte ( ) { for ( int i = 0 ; i < ( buffer . size ( ) ) ; i ++ ) { buffer . putByte ( i , ( ( byte ) ( ( 1 << i ) + i ) ) ) ; } for ( int i = 0 ; i < ( buffer . size ( ) ) ; i ++ ) { "<AssertPlaceHolder>" ; } } getByte ( int ) { offset = checkBounds ( offset , 1 ) ; return buffer [ offset ] ; }
org . junit . Assert . assertEquals ( ( ( byte ) ( ( 1 << i ) + i ) ) , buffer . getByte ( i ) )
shutdownNowIgnoreCanceledFuturesTest ( ) { org . threadly . concurrent . SingleThreadScheduler sts = new org . threadly . concurrent . SingleThreadScheduler ( ) ; try { java . lang . Runnable nonCanceledRunnable = new org . threadly . test . concurrent . TestRunnable ( ) ; sts . submitScheduled ( nonCanceledRunnable , ...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testSubsystemManifestEquality ( ) { org . apache . aries . subsystem . core . archive . SubsystemManifest subsystemManifest1 = new org . apache . aries . subsystem . core . archive . SubsystemManifest ( getClass ( ) . getResourceAsStream ( "/files/SUBSYSTEM.MF.1" ) ) ; org . apache . aries . subsystem . core . archive ...
org . junit . Assert . assertEquals ( subsystemManifest1 , subsystemManifest2 )
equals_otherClass ( ) { final net . sf . qualitycheck . immutableobject . domain . Type a = new net . sf . qualitycheck . immutableobject . domain . Type ( java . lang . String . class . getName ( ) ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null...
org . junit . Assert . assertFalse ( a . equals ( "" ) )
testSplitByMaterialGroupWithoutMaterial ( ) { de . javagl . obj . Obj obj = de . javagl . obj . ObjReader . read ( getClass ( ) . getResourceAsStream ( "/square.obj" ) ) ; java . util . Map < java . lang . String , de . javagl . obj . Obj > objs = de . javagl . obj . ObjSplitting . splitByMaterialGroups ( obj ) ; "<Ass...
org . junit . Assert . assertEquals ( 0 , objs . size ( ) )
resolveSpacingBeforeIs0 ( ) { parent . addChild ( second ) ; first . getCSS ( ) . put ( "margin-bottom" , "35pt" ) ; second . getCSS ( ) . put ( "margin-top" , "30pt" ) ; applier . apply ( firstPara , first , configuration ) ; applier . apply ( secondPara , second , configuration ) ; "<AssertPlaceHolder>" ; } getSpacin...
org . junit . Assert . assertEquals ( 0 , secondPara . getSpacingBefore ( ) , 0 )
moveDownWithFocus ( ) { org . pdfsam . ui . selection . multiple . move . MultipleSelectionAndFocus victim = new org . pdfsam . ui . selection . multiple . move . MultipleSelectionAndFocus ( 5 ) ; victim . moveDown ( 4 ) ; victim . moveDown ( 5 ) ; "<AssertPlaceHolder>" ; } getFocus ( ) { return row ; }
org . junit . Assert . assertEquals ( 6 , victim . getFocus ( ) )
lijstControleEenNok ( ) { setup ( java . util . Collections . emptyList ( ) , true , true , false , true , true , true , true , true , true ) ; "<AssertPlaceHolder>" ; } setup ( java . util . List , boolean , boolean , boolean , boolean , boolean , boolean , boolean , boolean , boolean ) { org . mockito . Mockito . whe...
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
createTimerWithPeriod_billingInvocationNotCreated ( ) { prepareTimerList ( TimerType . BILLING_INVOCATION , new java . util . Date ( ( ( java . lang . System . currentTimeMillis ( ) ) + 10000 ) ) ) ; tm . createTimerWithPeriod ( tss , TimerType . BILLING_INVOCATION , 0L , Period . DAY ) ; "<AssertPlaceHolder>" ; } getT...
org . junit . Assert . assertEquals ( 1 , tss . getTimers ( ) . size ( ) )
testIWalsh ( ) { int [ ] input = new int [ ] { 2515 , - 414 , - 922 , - 937 , 674 , - 878 , 1077 , - 473 , - 473 , 615 , - 878 , 1136 , - 937 , - 1384 , - 414 , - 3871 } ; int [ ] output = new int [ ] { - 696 , 625 , 104 , 856 , 856 , 163 , 625 , 655 , - 896 , 856 , - 128 , 856 , 856 , 336 , 856 , - 896 } ; org . jcode...
org . junit . Assert . assertArrayEquals ( output , input )
testCreatesRemoteObjectOnInitialization ( ) { com . eclipsesource . tabris . internal . CloudPushImpl cloudPush = new com . eclipsesource . tabris . internal . CloudPushImpl ( ) ; org . eclipse . rap . rwt . remote . RemoteObject remoteObject = cloudPush . getRemoteObject ( ) ; org . eclipse . rap . rwt . remote . Remo...
org . junit . Assert . assertSame ( remoteObject , remoteObject2 )
testSubtraction ( ) { org . apache . commons . math . analysis . polynomials . PolynomialFunction p1 = new org . apache . commons . math . analysis . polynomials . PolynomialFunction ( new double [ ] { - 2 , 1 } ) ; checkNullPolynomial ( p1 . subtract ( p1 ) ) ; org . apache . commons . math . analysis . polynomials . ...
org . junit . Assert . assertEquals ( 1 , p1 . degree ( ) )
isDefinedInContextWhereDefinedForRelationAndContextIdNotMatchesPropertyContextShouldReturnFalse ( ) { java . lang . Integer propertyContextId = 1 ; java . lang . Integer otherContextId = 555 ; ch . puzzle . itc . mobiliar . business . property . entity . ResourceEditProperty . Origin loadedFor = ResourceEditProperty . ...
org . junit . Assert . assertFalse ( definedInContext )
testIdentityTransformation ( ) { java . lang . String sql = "TEST(a,<sp>TEST(b,<sp>TEST(c),<sp>d))" ; com . liferay . portal . internal . dao . sql . transformer . SQLFunctionTransformer sqlFunctionTransformer = new com . liferay . portal . internal . dao . sql . transformer . SQLFunctionTransformer ( "TEST(" , "TEST("...
org . junit . Assert . assertEquals ( sql , sqlFunctionTransformer . transform ( sql ) )
testfromHeaderIfCompatibleWithAcceptHeader_incompatible ( ) { org . springframework . http . HttpHeaders headers = new org . springframework . http . HttpHeaders ( ) ; java . util . List < org . springframework . http . MediaType > mediaTypes = new java . util . ArrayList ( 3 ) ; mediaTypes . add ( new org . springfram...
org . junit . Assert . assertNull ( helper )
mergeAttributesOnRootNode ( ) { org . apache . maven . shared . utils . xml . Xpp3Dom t1 = org . apache . maven . shared . utils . xml . pull . Xpp3DomTest . build ( "<root<sp>combine.self='merge'<sp>attr='value'/>" ) ; org . apache . maven . shared . utils . xml . Xpp3Dom t2 = org . apache . maven . shared . utils . x...
org . junit . Assert . assertEquals ( 3 , dom . getAttributeNames ( ) . length )
testProcessServices_multipleProjects ( ) { java . util . List < java . nio . file . Path > userConfiguredServices = com . google . common . collect . ImmutableList . of ( com . google . cloud . tools . maven . run . RunnerTest . STANDARD_PROJECT_WEBAPP , com . google . cloud . tools . maven . run . RunnerTest . STANDAR...
org . junit . Assert . assertEquals ( userConfiguredServices , processedServices )
shouldGetFullLoadBalancerListFromNodeAddress ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
shouldChangeZoneId ( ) { java . time . ZoneId zoneId = java . time . ZoneId . of ( "GMT" ) ; entry . setZoneId ( zoneId ) ; "<AssertPlaceHolder>" ; } getZoneId ( ) { return zoneIdProperty ( ) . get ( ) ; }
org . junit . Assert . assertThat ( entry . getZoneId ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( zoneId ) ) )
example03 ( ) { "<AssertPlaceHolder>" ; } example03 ( ) { org . junit . Assert . assertEquals ( 4.8989F , org . simmetrics . example . StringDistanceExample . example03 ( ) , org . simmetrics . example . StringDistanceExampleTest . DELTA ) ; }
org . junit . Assert . assertEquals ( 4.8989F , org . simmetrics . example . StringDistanceExample . example03 ( ) , org . simmetrics . example . StringDistanceExampleTest . DELTA )
testImportMapped ( ) { final java . net . URI sourceURI = java . net . URI . create ( "http://localhost:8080/rest/dev/asdf" ) ; final java . net . URI resourceURI = java . net . URI . create ( ( ( serverAddress ) + "prod/asdf" ) ) ; final org . fcrepo . importexport . common . Config config = new org . fcrepo . importe...
org . junit . Assert . assertTrue ( resourceExists ( resourceURI ) )
testOffer ( ) { es . usc . citius . lab . hipster . collections . HashQueue < java . lang . String > queue = new es . usc . citius . lab . hipster . collections . HashQueue < java . lang . String > ( ) ; queue . offer ( "element" ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , queue . size ( ) )
entityMediaWithMetadataFull ( ) { final org . apache . olingo . commons . api . edm . EdmEntitySet edmEntitySet = org . apache . olingo . server . core . serializer . json . ODataJsonSerializerv01Test . entityContainer . getEntitySet ( "ESMedia" ) ; final org . apache . olingo . commons . api . data . Entity entity = d...
org . junit . Assert . assertEquals ( expectedResult , resultString )
basicShortStringLiteralBsTest ( ) { final org . eclipse . rdf4j . query . algebra . evaluation . QueryBindingSet bs = new org . eclipse . rdf4j . query . algebra . evaluation . QueryBindingSet ( ) ; bs . addBinding ( "X" , org . apache . rya . indexing . pcj . storage . accumulo . AccumuloPcjSerializerTest . VF . creat...
org . junit . Assert . assertEquals ( bs , newBs )
shouldSerializeGenericClass ( ) { java . lang . String expectedResult = "myCallback({\"genericWrapper\":<sp>{\"entityList\":<sp>[{\"street\":<sp>\"vergueiro<sp>street\"},{\"street\":<sp>\"vergueiro<sp>street\"}],\"total\":<sp>2}})" ; java . util . Collection < br . com . caelum . vraptor . serialization . xstream . XSt...
org . junit . Assert . assertThat ( result ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedResult ) ) )
testAddAdapterNoesNotUseImplementationHidingBehaviorWhenNoCachePropertyIsSpecified ( ) { com . picocontainer . DefaultPicoContainer pico = new com . picocontainer . DefaultPicoContainer ( new com . picocontainer . behaviors . ImplementationHiding ( ) . wrap ( new com . picocontainer . injectors . ConstructorInjection (...
org . junit . Assert . assertEquals ( com . picocontainer . adapters . InstanceAdapter . class , foo . getClass ( ) )
testGetQueryString ( ) { new mockit . Expectations ( ) { { vertxRequest . query ( ) ; result = "k1=v1&k2=v2" ; } } ; "<AssertPlaceHolder>" ; } getQueryString ( ) { return this . vertxRequest . query ( ) ; }
org . junit . Assert . assertEquals ( "k1=v1&k2=v2" , request . getQueryString ( ) )
testMD5HashForArrayWritableKey ( ) { org . apache . hadoop . io . ArrayWritable key = new org . apache . hadoop . io . ArrayWritable ( new java . lang . String [ ] { "abc123" } ) ; org . apache . hadoop . io . MD5Hash md5HashKey1 = co . nubetech . hiho . dedup . HashUtility . getMD5Hash ( key ) ; org . apache . hadoop ...
org . junit . Assert . assertEquals ( md5HashKey1 , md5HashKey2 )
issueHTJC123 ( ) { java . lang . String mimeType = "application/atom+xml;type=entry" ; org . codehaus . httpcache4j . Headers headers = new org . codehaus . httpcache4j . Headers ( ) ; headers = headers . add ( "Content-Type" , mimeType ) ; org . codehaus . httpcache4j . HTTPRequest request = new org . codehaus . httpc...
org . junit . Assert . assertEquals ( 1 , all . getHeaders ( "Content-Type" ) . size ( ) )
testMacAddress ( ) { final com . cloud . utils . net . MacAddress mac = new com . cloud . utils . net . MacAddress ( ) ; "<AssertPlaceHolder>" ; } toLong ( ) { return _addr ; }
org . junit . Assert . assertEquals ( 0L , mac . toLong ( ) )
noneSatisfy ( ) { super . noneSatisfy ( ) ; org . eclipse . collections . api . bag . primitive . ImmutableBooleanBag bag = this . newWith ( false , true , false ) ; "<AssertPlaceHolder>" ; } noneSatisfy ( org . eclipse . collections . api . block . predicate . primitive . BooleanPredicate ) { return ( ( ! ( this . con...
org . junit . Assert . assertFalse ( bag . noneSatisfy ( ( value ) -> value ) )
Property ( ) { java . lang . String testENTITY = "testEntity" ; org . odata4j . edm . EdmEntityType . Builder entityType = EntityType ( testENTITY ) ; java . util . List < org . odata4j . edm . EdmComplexType . Builder > cpBuilderList = new java . util . ArrayList < org . odata4j . edm . EdmComplexType . Builder > ( ) ...
org . junit . Assert . assertEquals ( 0 , errors . size ( ) )
cryptTest ( ) { final byte [ ] theBytes = net . violet . platform . util . LibBasic . crypt8 ( "nabaztag" , 71 , 47 ) ; "<AssertPlaceHolder>" ; } uncrypt8 ( byte [ ] , int , int ) { final int theSize = inBytes . length ; final byte [ ] theResultBuffer = new byte [ theSize ] ; java . lang . String theResult = null ; int...
org . junit . Assert . assertEquals ( "nabaztag" , net . violet . platform . util . LibBasic . uncrypt8 ( theBytes , 71 , 47 ) )
testNullStapels ( ) { "<AssertPlaceHolder>" ; } converteer ( java . util . List ) { if ( brpStapels == null ) { return null ; } final java . util . List < nl . bzk . migratiebrp . conversie . model . lo3 . Lo3Stapel < nl . bzk . migratiebrp . conversie . model . lo3 . categorie . Lo3KindInhoud > > stapels = new java . ...
org . junit . Assert . assertNull ( subject . converteer ( ( ( java . util . List < nl . bzk . migratiebrp . conversie . model . brp . BrpStapel < nl . bzk . migratiebrp . conversie . model . brp . groep . BrpIstRelatieGroepInhoud > > ) ( null ) ) ) )
testDimensionalEuclidean ( ) { org . nd4j . linalg . api . ndarray . INDArray distanceInputRow = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 4 , 4 , DataType . DOUBLE ) . reshape ( 1 , ( - 1 ) ) ; org . nd4j . linalg . api . ndarray . INDArray distanceComp = org . nd4j . linalg . factory . Nd4j . linspace ( 1...
org . junit . Assert . assertEquals ( euclideanAssertion , result )
testWithSeconds ( ) { java . util . Date parsed = com . widen . valet . internal . DateUtil . fromZulu ( "2011-02-23T14:35:42Z" ) ; java . util . Calendar calendar = setupCalendar ( ) ; calendar . clear ( Calendar . MILLISECOND ) ; "<AssertPlaceHolder>" ; } setupCalendar ( ) { java . util . Calendar calendar = java . u...
org . junit . Assert . assertEquals ( calendar . getTime ( ) , parsed )
testCellIndexMethods ( ) { int numberOfTests = 10 ; org . openpixi . pixi . physics . Settings settings = getStandardSettings ( ) ; settings . addFieldGenerator ( new org . openpixi . pixi . physics . fields . fieldgenerators . SU2RandomFields ( ) ) ; org . openpixi . pixi . physics . Simulation s = new org . openpixi ...
org . junit . Assert . assertArrayEquals ( pos , pos2 )
equalsLogically_differentName ( ) { org . pentaho . agilebi . modeler . models . annotations . CreateAttribute left = buildCreateAttributeAnnotations ( "total" , "sales" , "sales" , null , null , false ) ; org . pentaho . agilebi . modeler . models . annotations . CreateAttribute right = buildCreateAttributeAnnotations...
org . junit . Assert . assertFalse ( left . equalsLogically ( right ) )
testCustomComponentMonitorCanBeSpecifiedWhenCAFIsSpecified ( ) { java . io . Reader script = new java . io . StringReader ( ( "" + ( ( ( ( ( ( ( ( ( ( ( "package<sp>com.picocontainer.script.groovy\n" + "package<sp>com.picocontainer.script.groovy\n" 1 ) + "import<sp>com.picocontainer.behaviors.Caching\n" ) + "package<sp...
org . junit . Assert . assertTrue ( ( ( writer . toString ( ) . length ( ) ) > 0 ) )
testSyntaxA ( ) { java . nio . file . Path path = de . agitos . encfs4j . EncryptedFileSystemTest . fs . getPath ( de . agitos . encfs4j . EncryptedFileSystemTest . persistentFile . getAbsolutePath ( ) . replaceAll ( "\\\\" , "/" ) ) ; if ( ! ( java . nio . file . Files . exists ( path ) ) ) { java . nio . file . Files...
org . junit . Assert . assertEquals ( de . agitos . encfs4j . EncryptedFileSystemTest . testString , buf . toString ( ) )
testGetEmptyValue ( ) { com . ctrip . platform . dal . dao . task . BatchInsertTask < com . ctrip . platform . dal . dao . task . ClientTestModel > test = new com . ctrip . platform . dal . dao . task . BatchInsertTask ( ) ; "<AssertPlaceHolder>" ; } getEmptyValue ( ) { return 0 ; }
org . junit . Assert . assertArrayEquals ( new int [ 0 ] , test . getEmptyValue ( ) )
typical ( ) { java . util . Set < javax . validation . ConstraintViolation < com . hotels . bdp . waggledance . conf . WaggleDanceConfiguration > > violations = validator . validate ( waggleDanceConfiguration ) ; "<AssertPlaceHolder>" ; } size ( ) { return whiteList . size ( ) ; }
org . junit . Assert . assertThat ( violations . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testIsErrorEnabledWithYesFilter ( ) { addYesFilter ( ) ; logger . setLevel ( Level . OFF ) ; "<AssertPlaceHolder>" ; } isErrorEnabled ( ) { return isErrorEnabled ( null ) ; }
org . junit . Assert . assertTrue ( logger . isErrorEnabled ( ) )
testCuboidCounts4 ( ) { org . apache . kylin . cube . model . CubeDesc cube = getTestKylinCubeWithSellerLeft ( ) ; org . apache . kylin . cube . cuboid . CuboidScheduler cuboidScheduler = cube . getInitialCuboidScheduler ( ) ; int [ ] counts = org . apache . kylin . cube . cuboid . CuboidCLI . calculateAllLevelCount ( ...
org . junit . Assert . assertEquals ( cuboidScheduler . getCuboidCount ( ) , sum )
checkGetAllElementsInJavaRDD ( ) { final uk . gov . gchq . gaffer . graph . Graph graph1 = new uk . gov . gchq . gaffer . graph . Graph . Builder ( ) . config ( new uk . gov . gchq . gaffer . graph . GraphConfig . Builder ( ) . graphId ( "graphId" ) . build ( ) ) . addSchema ( getClass ( ) . getResourceAsStream ( "/sch...
org . junit . Assert . assertEquals ( expectedElements , results )