input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testConstructorInitializerInjection ( ) { org . apache . tuscany . sca . implementation . java . injection . TestObjectFactory < org . apache . tuscany . sca . implementation . java . injection . TestObjectFactoryTestCase . Foo > factory = new org . apache . tuscany . sca . implementation . java . injection . TestObjec...
org . junit . Assert . assertEquals ( "foo" , foo . foo )
testGetCustomTransformationNotFound ( ) { final java . lang . String chainrSpec = new java . lang . String ( java . nio . file . Files . readAllBytes ( java . nio . file . Paths . get ( "src/test/resources/TestTransformFactory/chainrSpec.json" ) ) ) ; try { org . apache . nifi . processors . jolt . record . util . Tran...
org . junit . Assert . assertEquals ( "TestCustomJoltTransform" , cnf . getLocalizedMessage ( ) )
testResolveSimpleRepositoryName ( ) { com . github . dockerjava . core . NameParser . HostnameReposName resolved = com . github . dockerjava . core . NameParser . resolveRepositoryName ( "repository" ) ; "<AssertPlaceHolder>" ; } resolveRepositoryName ( java . lang . String ) { if ( reposName . contains ( "://" ) ) { t...
org . junit . Assert . assertEquals ( resolved , new com . github . dockerjava . core . NameParser . HostnameReposName ( com . github . dockerjava . api . model . AuthConfig . DEFAULT_SERVER_ADDRESS , "repository" ) )
validOutputStream ( ) { java . io . OutputStream os = mock ( java . io . OutputStream . class ) ; net . coobird . thumbnailator . tasks . io . OutputStreamImageSink sink = new net . coobird . thumbnailator . tasks . io . OutputStreamImageSink ( os ) ; "<AssertPlaceHolder>" ; } getSink ( ) { if ( ! ( written ) ) { throw...
org . junit . Assert . assertEquals ( os , sink . getSink ( ) )
testGetCompletionCount2 ( ) { org . hawkular . apm . api . model . events . CompletionTime ct1 = new org . hawkular . apm . api . model . events . CompletionTime ( ) ; ct1 . setTransaction ( org . hawkular . apm . server . elasticsearch . AnalyticsServiceElasticsearchTest . TXN ) ; ct1 . setTimestamp ( 1000 ) ; org . h...
org . junit . Assert . assertEquals ( 1 , analytics . getTraceCompletionCount ( null , criteria ) )
testGetReloadArgs ( ) { org . netbeans . modules . gradle . actions . DefaultActionMapping instance = new org . netbeans . modules . gradle . actions . DefaultActionMapping ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getReloadArgs ( ) ; "<AssertPlaceHolder>" ; } getReloadArgs ( ...
org . junit . Assert . assertEquals ( expResult , result )
validate_statusIsSet_returnTrue ( ) { confirmation . setStatus ( DataTransferStatus . Accepted ) ; boolean isValid = confirmation . validate ( ) ; "<AssertPlaceHolder>" ; } validate ( ) { return true ; }
org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( true ) )
testNullValueProperties ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setAllowNullValueProperties ( true ) ; out = new java . io . BufferedWriter ( new java . io . FileWriter ( org . apache . hadoop . conf . TestConfiguration . CONFIG ) ) ; start...
org . junit . Assert . assertEquals ( "value" , conf . get ( "attr" ) )
testSize ( ) { org . pb . x12 . Loop loop = new org . pb . x12 . Loop ( new org . pb . x12 . Context ( '~' , '*' , ':' ) , "ST" ) ; loop . addSegment ( "ST*835*000000001" ) ; loop . addSegment ( "BPR*DATA*NOT*VALID*RANDOM*TEXT" ) ; loop . addSegment ( "DTM*111*20090915" ) ; "<AssertPlaceHolder>" ; } size ( ) { int size...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 3 ) , new java . lang . Integer ( loop . size ( ) ) )
removeAllFrom ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Integer > sourceFastList = org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1 , 2 , 3 , 4 , 5 , 6 ) ; org . eclipse . collections . api . list . MutableList < java . lang . Integer > removeFastList =...
org . junit . Assert . assertEquals ( Lists . immutable . with ( 2 , 4 , 6 ) , sourceFastList )
testGetParameterMetaData ( ) { stmt . prepare ( "call<sp>testProc0(?,?)" ) ; org . eclipse . datatools . connectivity . oda . IParameterMetaData md = stmt . getParameterMetaData ( ) ; "<AssertPlaceHolder>" ; } getParameterMetaData ( ) { return new org . eclipse . datatools . connectivity . oda . IParameterMetaData ( ) ...
org . junit . Assert . assertNotNull ( md )
testOS ( ) { "<AssertPlaceHolder>" ; } utils ( ) { return new com . opera . core . systems . OperaUtils ( ) { public java . lang . String getCoreVersion ( ) { return core . getCoreVersion ( ) ; } public org . openqa . selenium . Platform getPlatform ( ) { return org . openqa . selenium . Platform . extractFromSysProper...
org . junit . Assert . assertNotNull ( driver . utils ( ) . getPlatform ( ) )
testMatchHivePolicy_NoResourceName ( ) { boolean bnlChk = rangerBizUtil . matchHivePolicy ( null , null , null , 0 ) ; "<AssertPlaceHolder>" ; } matchHivePolicy ( java . lang . String , java . util . List , java . lang . Long , int ) { return matchHivePolicy ( resourceName , xResourceList , xUserId , permission , 0 , 0...
org . junit . Assert . assertFalse ( bnlChk )
bug49751 ( ) { org . apache . poi . hssf . usermodel . HSSFWorkbook wb = org . apache . poi . hssf . usermodel . TestBugs . openSample ( "Linked<sp>Cell" 8 ) ; int numCellStyles = wb . getNumCellStyles ( ) ; java . util . List < java . lang . String > namedStyles = java . util . Arrays . asList ( "Linked<sp>Cell" 3 , "...
org . junit . Assert . assertTrue ( namedStyles . containsAll ( collecteddStyles ) )
shouldChangeSupportedTypesWhenInternalMethodIsOverriden ( ) { final ro . isdc . wro . model . resource . processor . ResourcePreProcessor processor = new ro . isdc . wro . model . resource . processor . decorator . ProcessorDecorator ( new ro . isdc . wro . model . resource . processor . impl . js . JSMinProcessor ( ) ...
org . junit . Assert . assertNull ( null , new ro . isdc . wro . model . resource . processor . decorator . ProcessorDecorator ( processor ) . getSupportedResourceType ( ) )
testKeyBuildingFromRowVisibility ( ) { org . apache . accumulo . core . data . Key keyBuilt = org . apache . accumulo . core . data . Key . builder ( ) . row ( "foo" ) . visibility ( "v" ) . build ( ) ; org . apache . accumulo . core . data . Key keyExpected = new org . apache . accumulo . core . data . Key ( "foo" , "...
org . junit . Assert . assertEquals ( keyExpected , keyBuilt )
canCreateController ( ) { com . berryworks . edireader . tokenizer . Tokenizer tokenizer = new com . berryworks . edireader . tokenizer . EDITokenizer ( new java . io . StringReader ( "" ) , null ) ; com . berryworks . edireader . plugin . PluginControllerImpl controller = plugin . createController ( "SomeStandard" , t...
org . junit . Assert . assertNotNull ( controller )
handleItemRetriesWhenUnknownCompletedTransaction ( ) { doReturn ( mockTx ) . when ( isolationHandler ) . loadTransaction ( com . amazonaws . services . dynamodbv2 . transactions . ReadUncommittedIsolationHandlerImplUnitTest . TX_ID ) ; doThrow ( com . amazonaws . services . dynamodbv2 . transactions . exceptions . Unkn...
org . junit . Assert . assertTrue ( caughtException )
testCancelOrderInvoice ( ) { try { java . lang . Boolean result = runFlowAndGetPayload ( "cancel-order-invoice" ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( org . mule . modules . tests . ConnectorTestUtils . getStackTrace ( e ) ) ; } }
org . junit . Assert . assertTrue ( result )
testSerialization ( ) { org . jfree . data . xy . DefaultXYDataset d1 = new org . jfree . data . xy . DefaultXYDataset ( ) ; double [ ] x1 = new double [ ] { 1.0 , 2.0 , 3.0 } ; double [ ] y1 = new double [ ] { 4.0 , 5.0 , 6.0 } ; double [ ] [ ] data1 = new double [ ] [ ] { x1 , y1 } ; d1 . addSeries ( "S1" , data1 ) ;...
org . junit . Assert . assertEquals ( bd1 , bd2 )
getValidationWarning ( ) { java . lang . String actual = messages . getValidationWarning ( 0 ) ; java . lang . String expected = messages . getMessage ( "validate.0" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expected , actual )
doWebSocketConnectWithDirectCstr ( ) { org . apache . vysper . xmpp . extension . websockets . TomcatXmppWebSocketServlet servlet = new org . apache . vysper . xmpp . extension . websockets . TomcatXmppWebSocketServlet ( serverRuntimeContext ) ; org . apache . catalina . websocket . StreamInbound webSocket = servlet . ...
org . junit . Assert . assertTrue ( ( webSocket instanceof org . apache . vysper . xmpp . extension . websockets . TomcatXmppWebSocket ) )
testSunAttack ( ) { de . rub . nds . tlsattacker . attacks . ec . oracles . TestECSunOracle oracle = new de . rub . nds . tlsattacker . attacks . ec . oracles . TestECSunOracle ( "secp256r1" ) ; de . rub . nds . tlsattacker . attacks . ec . ICEAttacker attacker = new de . rub . nds . tlsattacker . attacks . ec . ICEAtt...
org . junit . Assert . assertEquals ( oracle . getComputer ( ) . getSecret ( ) , result )
testAdjustTLSContext ( ) { de . rub . nds . tlsattacker . core . protocol . message . ECDHEServerKeyExchangeMessage message = new de . rub . nds . tlsattacker . core . protocol . message . ECDHEServerKeyExchangeMessage ( ) ; message . setCurveType ( EllipticCurveType . NAMED_CURVE . getValue ( ) ) ; message . setNamedG...
org . junit . Assert . assertNull ( context . getPreMasterSecret ( ) )
testSearchWithIncludesStarNoRecurse ( ) { java . lang . String methodName = "testSearchWithIncludes" ; ca . uhn . fhir . jpa . dao . dstu3 . IIdType parentParentOrgId ; { ca . uhn . fhir . jpa . dao . dstu3 . Organization org = new ca . uhn . fhir . jpa . dao . dstu3 . Organization ( ) ; org . getNameElement ( ) . setV...
org . junit . Assert . assertThat ( resources , contains ( patientId , orgId ) )
should_return_this ( ) { org . fest . assertions . api . StringAssert returned = assertions . hasSize ( 0 ) ; "<AssertPlaceHolder>" ; } hasSize ( int ) { arrays . assertHasSize ( description , actual , expected ) ; return this ; }
org . junit . Assert . assertSame ( assertions , returned )
testRevert ( ) { double tolerancePerc = 0.01 ; int nSamples = 500 ; int nFeatures = 3 ; org . nd4j . linalg . api . ndarray . INDArray featureSet = org . nd4j . linalg . factory . Nd4j . randn ( nSamples , nFeatures ) ; org . nd4j . linalg . api . ndarray . INDArray labelSet = org . nd4j . linalg . factory . Nd4j . zer...
org . junit . Assert . assertTrue ( ( maxdeltaPerc < tolerancePerc ) )
readNegativeHalf ( ) { final byte [ ] data = new byte [ ] { 0 , ( ( byte ) ( 192 ) ) } ; final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( data ) ; final com . flagstone . transform . coder . SWFDecoder fixture = new com . flagstone . transform . coder . SWFDecoder ( stream ) ; "<As...
org . junit . Assert . assertEquals ( ( - 2.0 ) , fixture . readHalf ( ) , 0.0 )
security ( ) { ser . FSTConfiguration conf = ser . FSTConfiguration . createDefaultConfiguration ( ) . setVerifier ( new ser . FSTConfiguration . ClassSecurityVerifier ( ) { @ ser . Override public boolean allowClassDeserialization ( java . lang . Class cl ) { if ( cl . getPackage ( ) . getName ( ) . startsWith ( "java...
org . junit . Assert . assertTrue ( false )
test ( ) { org . febit . wit_shaded . asm . ClassWriter classWriter = new org . febit . wit_shaded . asm . ClassWriter ( org . febit . wit_shaded . asm . Constants . V1_5 , org . febit . wit_shaded . asm . Constants . ACC_PUBLIC , "x/Example" , "java/lang/Object" , null ) ; org . febit . wit . asm . ASMUtil . visitCons...
org . junit . Assert . assertEquals ( 0 , result )
shouldParseCrlWithVersion0 ( ) { boolean hasFailure = parseCrl ( "root/CRLVersion0/badCRLVersion0.crl" ) ; "<AssertPlaceHolder>" ; } parseCrl ( java . lang . String ) { java . io . File file = new java . io . File ( net . ripe . rpki . commons . interop . BBNCrlConformanceTest . PATH_TO_BBN_OBJECTS , crl ) ; byte [ ] e...
org . junit . Assert . assertTrue ( hasFailure )
jettyComponentIsDeployed ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( server )
testSerialization ( ) { org . jfree . data . gantt . Task t1 = new org . jfree . data . gantt . Task ( "T" , new java . util . Date ( 1 ) , new java . util . Date ( 2 ) ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutputS...
org . junit . Assert . assertEquals ( t1 , t2 )
testSystemPolicyPath ( ) { System . out . println ( ( "path=<sp>" + ( GlobalPolicyUtil . domainCfgFolder ) ) ) ; "<AssertPlaceHolder>" ; } println ( java . lang . String ) { l . log ( logLevel , ( ( org . glassfish . flashlight . impl . client . FlashLightBTracePrintWriter . BTRACE_PREFIX ) + s ) ) ; }
org . junit . Assert . assertNotNull ( GlobalPolicyUtil . domainCfgFolder )
testGetAllMessages ( ) { com . skype . TestUtils . showMessageDialog ( ( ( "Please,<sp>send<sp>a<sp>chat<sp>message<sp>'Hello,<sp>World!'<sp>to<sp>" + ( com . skype . TestData . getFriendId ( ) ) ) + "." ) ) ; com . skype . Friend friend = com . skype . TestData . getFriend ( ) ; com . skype . ChatMessage [ ] messages ...
org . junit . Assert . assertTrue ( ( 0 < ( messages . length ) ) )
testGet ( ) { java . io . InputStream inputStream = null ; try { inputStream = client . get ( "resource" ) ; "<AssertPlaceHolder>" ; } finally { try { inputStream . close ( ) ; } catch ( java . lang . Exception e ) { } } } get ( java . lang . String ) { checkNotNull ( name ) ; com . illumina . basespace . response . Ge...
org . junit . Assert . assertNotNull ( inputStream )
testMsgNotifHeartbeat_invalidInstance ( ) { this . app . getMySqlVm ( ) . setStatus ( InstanceStatus . PROBLEM ) ; net . roboconf . messaging . api . messages . from_agent_to_dm . MsgNotifHeartbeat msg = new net . roboconf . messaging . api . messages . from_agent_to_dm . MsgNotifHeartbeat ( this . app . getName ( ) , ...
org . junit . Assert . assertEquals ( InstanceStatus . PROBLEM , this . app . getMySqlVm ( ) . getStatus ( ) )
NoShardAvailableActionException_1_ ( ) { com . fujitsu . dc . common . es . impl . AbstractRetryableEsRequestTest . TestRequest requestMock = org . mockito . Mockito . spy ( new com . fujitsu . dc . common . es . impl . AbstractRetryableEsRequestTest . TestRequest ( ) ) ; org . elasticsearch . action . NoShardAvailable...
org . junit . Assert . assertEquals ( com . fujitsu . dc . common . es . impl . AbstractRetryableEsRequestTest . SUCCESS_RESPONSE , result )
testFactoryMakesJSR330ConstructorInjector ( ) { com . picocontainer . ComponentFactory cf = createComponentFactory ( ) ; com . picocontainer . monitors . ConsoleComponentMonitor cm = new com . picocontainer . monitors . ConsoleComponentMonitor ( ) ; com . picocontainer . ComponentAdapter < java . util . HashMap > ca = ...
org . junit . Assert . assertNotNull ( ca )
testMultipleAutoAttachedEventsAreReturnedWithProcedure ( ) { long t = dateToMillis ( 2016 , 1 , 1 , 1 ) ; for ( int i = 0 ; i < 10 ; ++ i ) { createEvent ( ( t + i ) ) ; } int i = 0 ; try ( com . graphaware . module . timetree . proc . Transaction tx = getDatabase ( ) . beginTx ( ) ) { com . graphaware . module . timet...
org . junit . Assert . assertEquals ( 10 , i )
test2 ( ) { java . lang . String baseName = cn . xiaowenjie . myrestutil . StackTraceHelper . getBasePackage ( "cn.xiaowenjie.myrestutil" , 5 ) ; "<AssertPlaceHolder>" ; } getBasePackage ( java . lang . String , int ) { java . lang . StringBuilder stringBuilder = new java . lang . StringBuilder ( ) ; java . util . rege...
org . junit . Assert . assertEquals ( "cn.xiaowenjie.myrestutil" , baseName )
getUsers ( ) { java . util . List < org . oscm . internal . usermanagement . POUser > result = usb . getUsers ( ) ; verify ( usb . isl , times ( 1 ) ) . getOrganizationUsers ( ) ; verify ( usb . dc , times ( 1 ) ) . toPOUser ( eq ( pu ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace . size ( )...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testWithEmptyGraphWithVertices ( ) { org . apache . flink . graph . library . clustering . undirected . TriadicCensus . Result expectedResult = new org . apache . flink . graph . library . clustering . undirected . TriadicCensus . Result ( 0 , 0 , 0 , 0 ) ; org . apache . flink . graph . library . clustering . undirect...
org . junit . Assert . assertEquals ( expectedResult , triadCensus )
testReleaseCallbackInvokedEvenIfRenderingFails ( ) { final java . util . concurrent . atomic . AtomicBoolean callbackInvoked = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; org . trimou . engine . MustacheEngine engine = org . trimou . engine . MustacheEngineBuilder . newBuilder ( ) . setMissingValu...
org . junit . Assert . assertTrue ( callbackInvoked . get ( ) )
should_get_last_build_number ( ) { when ( hudsonFinder . getLastBuildNumber ( "projectName" ) ) . thenReturn ( 42 ) ; int lastBuildNumber = hudson . getLastBuildNumber ( "projectName" ) ; "<AssertPlaceHolder>" ; } getLastBuildNumber ( java . lang . String ) { checkJobName ( projectName ) ; return hudsonFinder . getLast...
org . junit . Assert . assertEquals ( 42 , lastBuildNumber )
switchIndexesTest ( ) { when ( fr . gouv . vitam . logbook . operations . client . LogbookOperationsClientRestTest . mock . post ( ) ) . thenReturn ( javax . ws . rs . core . Response . status ( Status . OK ) . entity ( fr . gouv . vitam . common . json . JsonHandler . createObjectNode ( ) ) . build ( ) ) ; com . faste...
org . junit . Assert . assertNotNull ( resp )
testAddIntReplaceValue ( ) { v8 . add ( "foo" , 42 ) ; v8 . add ( "foo" , 43 ) ; int result = v8 . executeIntegerScript ( "foo" ) ; "<AssertPlaceHolder>" ; } executeIntegerScript ( java . lang . String ) { return executeIntegerScript ( script , null , 0 ) ; }
org . junit . Assert . assertEquals ( 43 , result )
testGetFileNames ( ) { upload = new org . eclipse . rap . rwt . widgets . FileUpload ( shell , org . eclipse . swt . SWT . MULTI ) ; org . eclipse . rap . rwt . internal . widgets . IFileUploadAdapter adapter = org . eclipse . rap . rwt . widgets . FileUpload_Test . getFileUploadAdapter ( upload ) ; adapter . setFileNa...
org . junit . Assert . assertArrayEquals ( expected , upload . getFileNames ( ) )
testTest ( ) { logger . info ( "test" ) ; com . datumbox . framework . common . dataobjects . TransposeDataList transposeDataList = new com . datumbox . framework . common . dataobjects . TransposeDataList ( ) ; transposeDataList . put ( 0 , new com . datumbox . framework . common . dataobjects . FlatDataList ( java . ...
org . junit . Assert . assertEquals ( expResult , result )
testFromJsonObjectNoData ( ) { javax . json . JsonObject jsonObject = javax . json . Json . createObjectBuilder ( ) . build ( ) ; edu . wpi . rail . jrosbridge . messages . std . UInt64 data = edu . wpi . rail . jrosbridge . messages . std . UInt64 . fromJsonObject ( jsonObject ) ; "<AssertPlaceHolder>" ; } getData ( )...
org . junit . Assert . assertEquals ( 0L , data . getData ( ) )
checkingWithExpectShouldThrowAssertionErrorIfExceptionIsDifferent ( ) { expectedException . expect ( net . usikkert . kouchat . junit . UnsupportedOperationException . class ) ; expectedException . expectMessage ( "the<sp>error<sp>message" ) ; final java . lang . AssertionError error = runTestAndThrow ( "the<sp>error<s...
org . junit . Assert . assertNotNull ( error )
testInitialization ( ) { de . metanome . algorithm_integration . results . DenialConstraint expectedResult = new de . metanome . algorithm_integration . results . DenialConstraint ( ) ; de . metanome . backend . result_postprocessing . results . DenialConstraintResult rankingResult = new de . metanome . backend . resul...
org . junit . Assert . assertEquals ( expectedResult , rankingResult . getResult ( ) )
getValueWithDefault ( ) { "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . Class ) { java . io . Serializable s = get ( key ) ; if ( s != null ) { try { return clazz . cast ( s ) ; } catch ( java . lang . ClassCastException ignore ) { } } return null ; }
org . junit . Assert . assertThat ( subject . get ( key , value ) , org . hamcrest . CoreMatchers . is ( value ) )
testGetFolderIterator_01 ( ) { java . util . Set < org . eclipse . emf . common . util . URI > containedURIs = com . google . common . collect . Sets . newHashSet ( getWorkspace ( ) . getFolderIterator ( myProjectURI . appendSegment ( "src" ) ) ) ; java . util . Set < org . eclipse . emf . common . util . URI > expecta...
org . junit . Assert . assertEquals ( expectation , containedURIs )
testStartStreaming ( ) { org . mockito . Mockito . when ( client . initializeState ( StreamFrom . BEGINNING , StreamTo . NOW ) ) . thenReturn ( rx . Completable . complete ( ) ) ; org . mockito . Mockito . when ( client . startStreaming ( org . mockito . Mockito . < java . lang . Short [ ] > anyVararg ( ) ) ) . thenRet...
org . junit . Assert . assertTrue ( streamingConnection . isStreaming ( ) )
selectRowIdAndVersionAggregateFunction ( ) { org . sagebionetworks . table . cluster . SqlQuery translator = new org . sagebionetworks . table . cluster . SqlQueryBuilder ( "select<sp>max(foo)<sp>from<sp>syn123" , tableSchema ) . build ( ) ; "<AssertPlaceHolder>" ; } includesRowIdAndVersion ( ) { return this . includes...
org . junit . Assert . assertFalse ( translator . includesRowIdAndVersion ( ) )
isTaskPendingForUser ( ) { final org . bonitasoft . engine . identity . model . SUser expectedUser = repository . add ( aUser ( ) . withId ( 1L ) . build ( ) ) ; repository . add ( aUser ( ) . withId ( 2L ) . build ( ) ) ; final org . bonitasoft . engine . core . process . instance . model . SPendingActivityMapping pen...
org . junit . Assert . assertThat ( taskPendingForUser )
nullMarkerInEvent ( ) { evaluator . addMarker ( "M" ) ; evaluator . start ( ) ; "<AssertPlaceHolder>" ; } evaluate ( ch . qos . logback . access . spi . IAccessEvent ) { java . lang . String url = event . getRequestURL ( ) ; for ( java . lang . String expected : URLList ) { if ( url . contains ( expected ) ) { return t...
org . junit . Assert . assertFalse ( evaluator . evaluate ( event ) )
testFastMultiNodeDijkstra_OneToMany ( ) { org . matsim . core . config . Config config = org . matsim . core . config . ConfigUtils . createConfig ( ) ; org . matsim . api . core . v01 . Scenario scenario = org . matsim . core . scenario . ScenarioUtils . createScenario ( config ) ; createNetwork ( scenario ) ; org . m...
org . junit . Assert . assertNull ( path )
testToFloatArrayForRandomArray ( ) { int size = getArrayLength ( ) ; float [ ] primitive = new float [ size ] ; java . lang . Float [ ] object = new java . lang . Float [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { float value = cz . zcu . kiv . jop . util . ArrayUtilsTest . rand . nextFloat ( ) ; primitive [ i ] = ...
org . junit . Assert . assertArrayEquals ( object , cz . zcu . kiv . jop . util . ArrayUtils . toObjectArray ( primitive ) )
getClientAddressDefault ( ) { org . mockito . Mockito . when ( request . getRemoteAddr ( ) ) . thenReturn ( "127.0.0.1" ) ; "<AssertPlaceHolder>" ; } getClientAddress ( javax . servlet . http . HttpServletRequest ) { for ( final java . lang . String header : com . cloud . api . ApiServlet . s_clientAddressHeaders ) { f...
org . junit . Assert . assertEquals ( java . net . InetAddress . getByName ( "127.0.0.1" ) , com . cloud . api . ApiServlet . getClientAddress ( request ) )
testCreateThriftOneSource ( ) { "<AssertPlaceHolder>" ; } createThriftOneSource ( ) { if ( ( org . apache . hadoop . hbase . thrift . MetricsThriftServerSourceFactoryImpl . FactoryStorage . INSTANCE . thriftOne ) == null ) { org . apache . hadoop . hbase . thrift . MetricsThriftServerSourceFactoryImpl . FactoryStorage ...
org . junit . Assert . assertSame ( new org . apache . hadoop . hbase . thrift . MetricsThriftServerSourceFactoryImpl ( ) . createThriftOneSource ( ) , new org . apache . hadoop . hbase . thrift . MetricsThriftServerSourceFactoryImpl ( ) . createThriftOneSource ( ) )
predecessorKeyThrowsExceptionIfKeyIsNotPresent ( ) { com . google . firebase . database . collection . ImmutableSortedMap < java . lang . String , java . lang . Integer > map = new com . google . firebase . database . collection . ArraySortedMap ( com . google . firebase . database . collection . ArraySortedMapTest . S...
org . junit . Assert . assertEquals ( null , map . getPredecessorKey ( "key" ) )
testSecondPhaseResult ( ) { com . orientechnologies . orient . server . distributed . impl . coordinator . transaction . OTransactionSecondPhaseResponse operation = new com . orientechnologies . orient . server . distributed . impl . coordinator . transaction . OTransactionSecondPhaseResponse ( true , new java . util ....
org . junit . Assert . assertEquals ( operation . isSuccess ( ) , readOperation . isSuccess ( ) )
testUpdateOneContext ( ) { statistics . update ( org . openehealth . ipf . commons . test . performance . PerformanceMeasurementTestUtils . createMeasurementHistory ( ) ) ; "<AssertPlaceHolder>" ; } getMeasurementNames ( ) { java . util . Set < java . lang . String > keys = statisticsByMeasurementName . keySet ( ) ; re...
org . junit . Assert . assertEquals ( 1 , statistics . getMeasurementNames ( ) . size ( ) )
convertEmptyArray ( ) { "<AssertPlaceHolder>" ; } bsonArrayToJsonArray ( io . mewbase . bson . BsonArray ) { final io . mewbase . bson . JsonArrayBuilder builder = io . mewbase . bson . Json . createArrayBuilder ( ) ; final io . mewbase . bson . BsonCodec . ArrayBuilderVistior visitor = new io . mewbase . bson . BsonCo...
org . junit . Assert . assertEquals ( javax . json . Json . createArrayBuilder ( ) . build ( ) , io . mewbase . bson . BsonCodec . bsonArrayToJsonArray ( new io . mewbase . bson . BsonArray ( ) ) )
shouldReturnFieldDefinitionForTwoLevelsDeepPath ( ) { com . qcadoo . model . api . DataDefinition firstBtDataDef = mock ( com . qcadoo . model . api . DataDefinition . class ) ; mockBelongsToField ( "firstBelongsTo" , dataDefinition , firstBtDataDef ) ; com . qcadoo . model . api . DataDefinition secondBtDataDef = mock...
org . junit . Assert . assertEquals ( fieldDefinition , res )
testExpandForRemovingNotNullHint ( ) { io . quantumdb . core . schema . operations . AlterColumn operation = io . quantumdb . core . schema . operations . SchemaOperations . alterColumn ( "referrals" , "invitee_id" ) . dropHint ( io . quantumdb . core . migration . operations . NOT_NULL ) ; changelog . addChangeSet ( "...
org . junit . Assert . assertEquals ( expectedGhostTable , ghostTable )
searchUncategorizedProcessDeploymentInfos ( ) { final org . bonitasoft . engine . persistence . QueryOptions options = new org . bonitasoft . engine . persistence . QueryOptions ( 0 , 10 ) ; when ( persistenceService . searchEntity ( org . bonitasoft . engine . core . process . definition . model . SProcessDefinitionDe...
org . junit . Assert . assertNotNull ( result )
testCreateDaoTableConfig ( ) { createDao ( com . j256 . ormlite . dao . Foo . class , true ) ; com . j256 . ormlite . dao . RuntimeExceptionDao < com . j256 . ormlite . dao . Foo , java . lang . String > dao = com . j256 . ormlite . dao . RuntimeExceptionDao . createDao ( connectionSource , com . j256 . ormlite . table...
org . junit . Assert . assertEquals ( 0 , dao . countOf ( ) )
getPagesEmptyRange ( ) { org . sejda . model . parameter . AddBackPagesParameters victim = new org . sejda . model . parameter . AddBackPagesParameters ( ) ; "<AssertPlaceHolder>" ; } getPages ( int ) { return java . util . Collections . unmodifiableSet ( pages . stream ( ) . filter ( ( p ) -> ( p <= upperLimit ) && ( ...
org . junit . Assert . assertEquals ( 10 , victim . getPages ( 10 ) . size ( ) )
testCreateUsers_NoProvOnInstance ( ) { final java . lang . String instanceId = createService ( ProvisioningStatus . COMPLETED ) ; final java . util . List < org . oscm . provisioning . data . User > users = new java . util . ArrayList ( ) ; final org . oscm . provisioning . data . UserResult result = new org . oscm . p...
org . junit . Assert . assertEquals ( 0 , ur . getRc ( ) )
testGetParametersWithDisablesSecurityFlag ( ) { unit . setSecurity ( false ) ; java . lang . String name = "AddressN" ; java . lang . String abbrName = "AN" ; org . lnu . is . domain . address . type . AddressType entity = new org . lnu . is . domain . address . type . AddressType ( ) ; entity . setName ( name ) ; enti...
org . junit . Assert . assertEquals ( expected , actual )
testGetServicePathForNamingNoGRNoNM ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIEvent.getServicePathForNaming]" ) ) + "--------<sp>When<sp>grouping<sp>and<sp>mappings<sp>are<sp>not<sp>enabled,<sp>the<sp>original<sp>service<sp>path<sp>is<sp>returned" ) ) ; java . util . HashMap < java . lang . String , j...
org . junit . Assert . assertEquals ( originalServicePath , event . getServicePathForNaming ( false , false ) )
testSetResultOptionsNullOptionsEntryGroup20 ( ) { nl . surfnet . coin . api . client . domain . AbstractEntry entry = getAbstractEntryGroup20 ( 3 ) ; controller . setResultOptions ( entry , null , null , "title" ) ; "<AssertPlaceHolder>" ; } getEntryCollection ( ) { java . util . ArrayList < nl . surfnet . coin . api ....
org . junit . Assert . assertEquals ( 3 , entry . getEntryCollection ( ) . size ( ) )
testFindLinksByNoteId ( ) { int noteId1 = 101 ; int noteId2 = 202 ; boolean isActive = true ; org . oscarehr . common . model . GroupNoteLink groupNoteLink1 = new org . oscarehr . common . model . GroupNoteLink ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( groupNote...
org . junit . Assert . assertTrue ( true )
expandsCorrectly ( ) { for ( int i = 1 ; i < 100 ; i ++ ) { zemberek . core . collections . IntMap < java . lang . String > im = new zemberek . core . collections . IntMap ( i ) ; int elements = i * 10 ; for ( int j = 0 ; j < elements ; j ++ ) { im . put ( j , ( "" + j ) ) ; } for ( int j = 0 ; j < elements ; j ++ ) { ...
org . junit . Assert . assertEquals ( im . get ( j ) , ( "" + j ) )
shouldAddTermsFromRedisOnHvalsCommand ( ) { when ( localParamsMock . get ( "command" ) ) . thenReturn ( "hvals" ) ; when ( localParamsMock . get ( "key" ) ) . thenReturn ( "simpleKey" ) ; when ( localParamsMock . get ( QueryParsing . V ) ) . thenReturn ( "string_field" ) ; when ( jedisMock . hvals ( anyString ( ) ) ) ....
org . junit . Assert . assertEquals ( 2 , terms . size ( ) )
testHasDataflowNatureOnProjectWithDataflowNatureReturnsTrue ( ) { when ( project . hasNature ( DataflowJavaProjectNature . DATAFLOW_NATURE_ID ) ) . thenReturn ( true ) ; "<AssertPlaceHolder>" ; } hasDataflowNature ( org . eclipse . core . resources . IProject ) { return ( project != null ) && ( com . google . cloud . t...
org . junit . Assert . assertTrue ( com . google . cloud . tools . eclipse . dataflow . core . natures . DataflowJavaProjectNature . hasDataflowNature ( project ) )
testSelectUsingMixedBooleanExpressionMatchers ( ) { com . liferay . dynamic . data . mapping . form . values . query . DDMFormValuesQuery ddmFormValuesQuery = createDDMFormValuesQuery ( ( "//*[@value('en_US')<sp>=<sp>'wrong'<sp>and<sp>@value('en_US')<sp>=<sp>'wrong'<sp>or" + "@value('pt_BR')<sp>=<sp>'Pt<sp>text22']" ) ...
org . junit . Assert . assertEquals ( ddmFormFieldValues . toString ( ) , 3 , ddmFormFieldValues . size ( ) )
testEqualsSelf ( ) { org . jfree . data . time . TimeSeriesDataItem item = new org . jfree . data . time . TimeSeriesDataItem ( new org . jfree . data . time . Day ( 23 , 9 , 2001 ) , 99.7 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) return true ; if ( obj == null ) return fals...
org . junit . Assert . assertTrue ( item . equals ( item ) )
testSetdataFor ( ) { double [ ] [ ] doubles = new double [ ] [ ] { new double [ ] { 1 , 2 , 3 } , new double [ ] { 4 , 5 , 6 } , new double [ ] { 7 , 8 , 9 } } ; org . jblas . DoubleMatrix inMatrix = new org . jblas . DoubleMatrix ( doubles ) ; org . jblas . DoubleMatrix outMatrix_ACTUAL = new org . jblas . DoubleMatri...
org . junit . Assert . assertEquals ( outMatrix_ACTUAL , outMatrix_EXPECTED )
testDoOCR_File_Rectangle ( ) { net . sourceforge . tess4j . TesseractTest . logger . info ( "doOCR<sp>on<sp>a<sp>BMP<sp>image<sp>with<sp>bounding<sp>rectangle" ) ; java . io . File imageFile = new java . io . File ( this . testResourcesDataPath , "eurotext.bmp" ) ; java . awt . Rectangle rect = new java . awt . Rectang...
org . junit . Assert . assertEquals ( expResult , result . substring ( 0 , expResult . length ( ) ) )
testAuthenticateUserRegular ( ) { org . oscm . security . ADMRealmImpl realmImpl = new org . oscm . security . SecurityIT . TestADMRealmImpl ( "40" ) ; findAndBindWasCalled = false ; realmImpl . authenticateUser ( "40" , org . oscm . security . SecurityIT . LDAP_PASSWORD ) ; "<AssertPlaceHolder>" ; } authenticateUser (...
org . junit . Assert . assertFalse ( findAndBindWasCalled )
fullyQualifiedClass ( ) { java . lang . String tag = new org . apache . isis . core . metamodel . services . swagger . internal . Tagger ( ) . tagFor ( "foo.bar.Abc" , null ) ; "<AssertPlaceHolder>" ; } is ( org . apache . isis . core . metamodel . spec . feature . Contributed ) { return new com . google . common . bas...
org . junit . Assert . assertThat ( tag , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( "bar" ) ) )
rootConcurrentDelete ( ) { final int numThreads = alluxio . client . fs . ConcurrentDeleteIntegrationTest . CONCURRENCY_FACTOR ; alluxio . AlluxioURI [ ] paths = new alluxio . AlluxioURI [ numThreads ] ; for ( int i = 0 ; i < numThreads ; i ++ ) { paths [ i ] = new alluxio . AlluxioURI ( ( "/file" + i ) ) ; mFileSystem...
org . junit . Assert . assertEquals ( 0 , files . size ( ) )
testSetMultiple ( ) { com . vaadin . ui . AbstractComponent component = getComponent ( ) ; component . setStyleName ( "style1<sp>style2" ) ; "<AssertPlaceHolder>" ; } getStyleName ( ) { return styleName ; }
org . junit . Assert . assertEquals ( component . getStyleName ( ) , "style1<sp>style2" )
getLogSchemaVersionsByApplicationTokenTest ( ) { org . kaaproject . kaa . common . dto . ApplicationDto application = createApplication ( tenantAdminDto ) ; org . kaaproject . kaa . common . dto . logs . LogSchemaDto logSchemaDto = createLogSchema ( application . getId ( ) ) ; org . kaaproject . kaa . common . dto . ad...
org . junit . Assert . assertEquals ( 2 , found . size ( ) )
whenDefaults ( ) { final java . lang . Class < ? > cls = org . apache . isis . core . metamodel . facets . object . domainobjectlayout . DomainObjectLayoutFactoryTest . CustomerWithDefaults . class ; facetFactory . process ( new org . apache . isis . core . metamodel . facets . FacetFactory . ProcessClassContext ( cls ...
org . junit . Assert . assertNull ( facet )
testAdjustTLSContext ( ) { de . rub . nds . tlsattacker . core . protocol . message . extension . SRPExtensionMessage msg = new de . rub . nds . tlsattacker . core . protocol . message . extension . SRPExtensionMessage ( ) ; msg . setSrpIdentifier ( de . rub . nds . tlsattacker . core . protocol . handler . extension ....
org . junit . Assert . assertArrayEquals ( de . rub . nds . tlsattacker . core . protocol . handler . extension . SrpExtensionHandlerTest . SRP_IDENTIFIER , context . getSecureRemotePasswordExtensionIdentifier ( ) )
testConsistentHash ( ) { int replicas = 100 ; com . cloudera . util . consistenthash . ConsistentHash < java . lang . String > hash = new com . cloudera . util . consistenthash . ConsistentHash < java . lang . String > ( replicas , machines ) ; java . util . List < java . lang . String > orig = new java . util . ArrayL...
org . junit . Assert . assertEquals ( orig . get ( i ) , bin )
debieraCrearProducto ( ) { mx . edu . um . mateo . general . model . Organizacion organizacion = new mx . edu . um . mateo . general . model . Organizacion ( "apPaterno" 0 , "apPaterno" 7 , "apPaterno" 7 ) ; currentSession ( ) . save ( organizacion ) ; mx . edu . um . mateo . general . model . Empresa empresa = new mx ...
org . junit . Assert . assertNotNull ( id )
getCurrentStatusFailTest ( ) { com . cloud . hypervisor . ovm3 . resources . helpers . Ovm3Configuration config = new com . cloud . hypervisor . ovm3 . resources . helpers . Ovm3Configuration ( configTest . getParams ( ) ) ; con = support . prepConnectionResults ( ) ; con . setResult ( results . simpleResponseWrapWrapp...
org . junit . Assert . assertNull ( hypervisor . getCurrentStatus ( 1L ) )
MustInCorrectPrepareWhenFieldInThrowInvlidArgumentException ( ) { info . smart_tools . smartactors . iobject . iobject . IObject query = mock ( info . smart_tools . smartactors . iobject . iobject . IObject . class ) ; when ( collectionNameField . in ( query ) ) . thenThrow ( new info . smart_tools . smartactors . base...
org . junit . Assert . assertTrue ( false )
testSetLowRed ( ) { com . opera . core . systems . model . OperaColor color = new com . opera . core . systems . model . OperaColor ( 120 , 110 , 100 ) ; color . setLowRed ( 255 ) ; "<AssertPlaceHolder>" ; } getLowRed ( ) { return lowRed ; }
org . junit . Assert . assertEquals ( ( ( java . lang . Integer ) ( 255 ) ) , color . getLowRed ( ) )
testOnConnectionChangedUpdatePreWithObjectTypeErr ( ) { org . o3project . odenos . core . manager . system . ComponentConnection prev = new org . o3project . odenos . core . manager . system . ComponentConnection ( "logic_id" , "LogicAndNetwork" , "initializing" ) ; org . o3project . odenos . core . manager . system . ...
org . junit . Assert . assertThat ( target . onConnectionChangedUpdatePre ( msg ) , org . hamcrest . CoreMatchers . is ( false ) )
testCoverageView ( ) { org . geoserver . catalog . Catalog catalog = new org . geoserver . catalog . impl . CatalogImpl ( ) ; org . geoserver . catalog . CatalogFactory cFactory = catalog . getFactory ( ) ; org . geoserver . catalog . CoverageInfo coverage = cFactory . createCoverage ( ) ; org . geoserver . catalog . M...
org . junit . Assert . assertEquals ( coverage , coverage2 )
testWritableOutputStreamWithAutoCreateOnNonExistantBlob ( ) { java . lang . String location = "gs://test-spring/test" ; com . google . cloud . storage . Storage storage = mock ( com . google . cloud . storage . Storage . class ) ; com . google . cloud . storage . BlobId blobId = com . google . cloud . storage . BlobId ...
org . junit . Assert . assertNotNull ( os )
testLogResetResetsRootLoggerIfSet ( ) { try ( org . apache . storm . utils . Time . SimulatedTime t = new org . apache . storm . utils . Time . SimulatedTime ( ) ) { long past = ( org . apache . storm . utils . Time . currentTimeMillis ( ) ) - 1000 ; java . util . TreeMap < java . lang . String , org . apache . storm ....
org . junit . Assert . assertEquals ( new java . util . TreeMap ( ) , atomConf . get ( ) )
testClear ( ) { java . lang . Object service = new java . lang . Object ( ) ; mockServiceReference ( service ) ; container . add ( serviceReference ) ; container . clear ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return services . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , container . size ( ) )