input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testLldpSaveAndUpdate ( ) { org . opennms . netmgt . model . OnmsNode node = new org . opennms . netmgt . model . OnmsNode ( m_locationDao . getDefaultLocation ( ) , "MyFirstLldpNode" ) ; getNodeDao ( ) . save ( node ) ; getNodeDao ( ) . flush ( ) ; java . util . Collection < org . opennms . netmgt . model . OnmsNode >...
org . junit . Assert . assertEquals ( 7 , nodes . size ( ) )
givenSet_whenUsingSort_thenSortedSet ( ) { org . baeldung . java . sorting . HashSet < java . lang . Integer > integersSet = new org . baeldung . java . sorting . LinkedHashSet ( com . google . common . primitives . Ints . asList ( toSort ) ) ; org . baeldung . java . sorting . HashSet < java . lang . Integer > descSor...
org . junit . Assert . assertTrue ( org . baeldung . java . sorting . Arrays . equals ( integersSet . toArray ( ) , descSortedIntegersSet . toArray ( ) ) )
testParseFn ( ) { java . util . List < org . apache . beam . sdk . io . AvroSourceTest . Bird > expected = org . apache . beam . sdk . io . AvroSourceTest . createRandomRecords ( 100 ) ; java . lang . String filename = generateTestFile ( "tmp.avro" , expected , org . apache . beam . sdk . io . AvroSourceTest . SyncBeha...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . containsInAnyOrder ( expected . toArray ( ) ) )
testGetVerb_1 ( ) { org . jinstagram . http . Request fixture = new org . jinstagram . http . Request ( Verbs . DELETE , "" ) ; fixture . setConnectionKeepAlive ( true ) ; fixture . setCharset ( "UTF-8" ) ; fixture . addPayload ( "Dummy<sp>payload" ) ; fixture . setConnection ( mockHttpConnection ) ; fixture . setProxy...
org . junit . Assert . assertNotNull ( result )
computeFactor_ForTwoMonthIn2Years ( ) { long startTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-12-01<sp>00:00:00" ) ; long endTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2013-02-23<sp>23:59:59" ) ; org . oscm . billingservice . service . model . BillingInput billi...
org . junit . Assert . assertEquals ( 2 , factor , 0 )
construct_withFilledArgsAndNullCause ( ) { final net . sf . qualitycheck . exception . IllegalNotGreaterOrEqualThanException e = new net . sf . qualitycheck . exception . IllegalNotGreaterOrEqualThanException ( "a<sp>!=<sp>b" , 2 , ( ( java . lang . Throwable ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { ...
org . junit . Assert . assertEquals ( "a<sp>!=<sp>b" , e . getMessage ( ) )
isActivationAllowed_SuspendedSubscriptionNullBillingContact2 ( ) { subscription . setStatus ( SubscriptionStatus . SUSPENDED ) ; subscription . setBillingContact ( null ) ; subscription . setPaymentInfo ( pInfo ) ; doReturn ( true ) . when ( accService ) . isPaymentTypeEnabled ( org . oscm . subscriptionservice . bean ...
org . junit . Assert . assertFalse ( isActivationAllowed )
getOrCreate ( ) { java . util . Map < java . lang . Integer , com . cetsoft . imcache . cache . Cache > expectedMap = cacheCoordinator . getOrCreate ( ) ; java . util . Map < java . lang . Integer , com . cetsoft . imcache . cache . Cache > actualMap = cacheCoordinator . getOrCreate ( ) ; "<AssertPlaceHolder>" ; } getO...
org . junit . Assert . assertEquals ( expectedMap , actualMap )
preProcessorDenys ( ) { org . alfresco . service . cmr . repository . NodeRef nodeRef = generateCmContent ( "anyname" ) ; java . lang . String perm = org . alfresco . module . org_alfresco_module_rm . test . util . AlfMock . generateText ( ) ; when ( mockedPermissionProcessorRegistry . getPermissionPreProcessors ( ) ) ...
org . junit . Assert . assertEquals ( AccessStatus . DENIED , result )
shouldNotLoadNoneWhiteListedProcedure ( ) { org . neo4j . kernel . impl . proc . ProcedureConfig config = new org . neo4j . kernel . impl . proc . ProcedureConfig ( org . neo4j . kernel . configuration . Config . defaults ( procedure_whitelist , "org.neo4j.kernel.impl.proc.NOTlistCoolPeople" ) ) ; org . neo4j . logging...
org . junit . Assert . assertThat ( proc . isEmpty ( ) , org . hamcrest . core . Is . is ( true ) )
UmpleFileWithOneClass_OneValidUmpleClass ( ) { cruise . umple . compiler . UmpleFile umpleFile = new cruise . umple . compiler . UmpleFile ( ( ( pathToInput ) + "/Valid_UmpleFileWithOneClass_OneValidUmpleClass.ump" ) ) ; boolean result = validator . validateGeneratedCode ( umpleFile ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( result )
ignoreMapResolverWhenItIsProvided ( ) { com . github . jknack . handlebars . Context ctx = com . github . jknack . handlebars . Context . newBuilder ( $ ( "foo" , "bar" ) ) . resolver ( MapValueResolver . INSTANCE ) . build ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return get ( name , null ) ; }
org . junit . Assert . assertEquals ( "bar" , ctx . get ( "foo" ) )
addConceptClass_shouldAddTheSpecifiedConceptClass ( ) { org . openmrs . OrderType ot = new org . openmrs . OrderType ( ) ; org . openmrs . ConceptClass cc = new org . openmrs . ConceptClass ( ) ; ot . addConceptClass ( cc ) ; "<AssertPlaceHolder>" ; } getConceptClasses ( ) { if ( ( conceptClasses ) == null ) { conceptC...
org . junit . Assert . assertTrue ( ot . getConceptClasses ( ) . contains ( cc ) )
testSpecExample3DefaultContext ( ) { org . apache . stanbol . commons . jsonld . JsonLd jsonLd = new org . apache . stanbol . commons . jsonld . JsonLd ( ) ; jsonLd . setUseTypeCoercion ( false ) ; jsonLd . addNamespacePrefix ( "geo" 2 , "geo" 0 ) ; jsonLd . addNamespacePrefix ( "geo" 6 , "dc" ) ; jsonLd . addNamespace...
org . junit . Assert . assertEquals ( expected , actual )
testRenew ( ) { access = new com . huawei . streaming . window . WindowRelativeAccess ( service ) ; com . huawei . streaming . view . IDataCollection renew = access . renew ( ) ; "<AssertPlaceHolder>" ; } renew ( ) { return new com . huawei . streaming . window . WindowRelativeAccess ( service ) ; }
org . junit . Assert . assertEquals ( true , ( renew instanceof com . huawei . streaming . window . WindowRelativeAccess ) )
toMapOfItemToCount ( ) { com . gs . collections . api . bag . MutableBagIterable < java . lang . Integer > bag = this . newWith ( 1 , 2 , 2 , 3 , 3 , 3 ) ; "<AssertPlaceHolder>" ; } newWithKeysValues ( K , V , K , V , K , V ) { return new com . gs . collections . impl . map . mutable . UnifiedMap < K , V > ( 3 ) . with...
org . junit . Assert . assertEquals ( com . gs . collections . impl . map . mutable . UnifiedMap . newWithKeysValues ( 1 , 1 , 2 , 2 , 3 , 3 ) , bag . toMapOfItemToCount ( ) )
failingTestShouldShowTestStatusMessages ( ) { com . facebook . buck . event . listener . TestResultFormatter formatter = createSilentFormatter ( ) ; com . facebook . buck . test . TestCaseSummary summary = new com . facebook . buck . test . TestCaseSummary ( "com.example.FooTest" , com . google . common . collect . Imm...
org . junit . Assert . assertEquals ( expectedOutput , toString ( builder ) )
isResetPasswordSupported ( ) { bean . setInternalAuthMode ( true ) ; bean . isCheckResetPasswordSupported ( ) ; "<AssertPlaceHolder>" ; } isCheckResetPasswordSupported ( ) { if ( model . isUserIdChanged ( ) ) { try { reinitUser ( ) ; } catch ( org . oscm . ui . dialog . classic . operator . SaaSApplicationException e )...
org . junit . Assert . assertEquals ( java . lang . Boolean . valueOf ( true ) , java . lang . Boolean . valueOf ( bean . isCheckResetPasswordSupported ( ) ) )
createExceptionFromXAException ( ) { javax . transaction . xa . XAException exception = new javax . transaction . xa . XAException ( ) ; javax . transaction . xa . XAException result = this . factory . createException ( exception ) ; "<AssertPlaceHolder>" ; } createException ( java . lang . String ) { return new java ....
org . junit . Assert . assertSame ( exception , result )
testActionInstantiationWhichHasAlreadyBeenRequested ( ) { container . addComponent ( "foo" ) ; com . picocontainer . web . webwork . TestAction action1 = ( ( com . picocontainer . web . webwork . TestAction ) ( factory . getActionImpl ( com . picocontainer . web . webwork . TestAction . class . getName ( ) ) ) ) ; com ...
org . junit . Assert . assertSame ( action1 , action2 )
testParseJsonObjectFromUrlJsonParseException ( ) { try { urlHelper . parseJsonObjectFromUrl ( MockUrlOperationsImpl . MOCK_URL_JSON_PARSE_EXCEPTION ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; } } parseJsonObjectFromUrl ( java . lang . String ) { try { java . net . Proxy proxy ; ja...
org . junit . Assert . assertEquals ( java . lang . String . format ( "Failed<sp>to<sp>parse<sp>JSON<sp>object<sp>from<sp>the<sp>URL:<sp>url=\"%s\"" , MockUrlOperationsImpl . MOCK_URL_JSON_PARSE_EXCEPTION ) , e . getMessage ( ) )
testFrameworkLookupWithNotFoundValue ( ) { org . osgi . framework . BundleContext context = mock ( org . osgi . framework . BundleContext . class ) ; doReturn ( null ) . when ( context ) . getProperty ( "name" ) ; "<AssertPlaceHolder>" ; } lookup ( org . osgi . service . component . ComponentContext , java . lang . Str...
org . junit . Assert . assertNull ( org . apache . jackrabbit . oak . osgi . OsgiUtil . lookup ( context , "name" ) )
testMapWithGroupKeyAndRequiredGroupValue ( ) { java . util . List < org . apache . parquet . schema . Type > typeList = new java . util . ArrayList < org . apache . parquet . schema . Type > ( ) ; java . util . List < org . apache . parquet . schema . Type > keyFields = new java . util . ArrayList < org . apache . parq...
org . junit . Assert . assertEquals ( expected , actual )
successSecondThenFailure ( ) { second . success ( "a" ) ; java . lang . Throwable throwable = new java . lang . Throwable ( ) ; first . failure ( throwable ) ; "<AssertPlaceHolder>" ; } failure ( java . lang . Throwable ) { if ( alreadyHandled ( ) ) { throw new java . lang . IllegalStateException ( "Async<sp>already<sp...
org . junit . Assert . assertSame ( throwable , error )
umlaute ( ) { java . lang . String password = "e$_w=x268WEI3vf7" ; java . lang . String encrypted = org . oscm . app . vmware . aes . AESEncrypterCtmg . encrypt ( password ) ; java . lang . String decrypted = org . oscm . app . vmware . aes . AESEncrypterCtmg . decrypt ( encrypted ) ; "<AssertPlaceHolder>" ; } decrypt ...
org . junit . Assert . assertEquals ( password , decrypted )
testNoTypeValueLabel ( ) { io . bootique . meta . config . ConfigValueMetadata valueMetadata = new io . bootique . meta . config . ConfigValueMetadata ( ) ; "<AssertPlaceHolder>" ; } getValueLabel ( ) { if ( ( valueLabel ) != null ) { return ( "<" + ( valueLabel ) ) + ">" ; } if ( ( type ) == null ) { return "?" ; } re...
org . junit . Assert . assertEquals ( "?" , valueMetadata . getValueLabel ( ) )
testRunInsertReplace ( ) { sqlite . kripton93 . BindBean93DataSource dataSource = sqlite . kripton93 . BindBean93DataSource . getInstance ( ) ; final sqlite . kripton93 . Bean93 bean = new sqlite . kripton93 . Bean93 ( ) ; bean . name = "all" ; dataSource . execute ( new sqlite . kripton93 . BindBean93DataSource . Tran...
org . junit . Assert . assertTrue ( ( ( dao . selectAll ( ) . size ( ) ) == 1 ) )
testNoWraparound ( ) { java . util . HashMap < java . lang . String , java . lang . Object > smResponse = getSmResponse ( "MTA" , "404050" ) ; java . util . HashMap < java . lang . String , java . lang . Object > siri = ( ( java . util . HashMap < java . lang . String , java . lang . Object > ) ( smResponse . get ( "Si...
org . junit . Assert . assertEquals ( mvjs . size ( ) , 0 )
testGetPartitionKeyGroup ( ) { org . finra . herd . model . api . xml . PartitionKeyGroup partitionKeyGroup = new org . finra . herd . model . api . xml . PartitionKeyGroup ( new org . finra . herd . model . api . xml . PartitionKeyGroupKey ( PARTITION_KEY_GROUP ) ) ; org . finra . herd . model . api . xml . PartitionK...
org . junit . Assert . assertEquals ( partitionKeyGroup , resultPartitionKeyGroup )
closeOrderTest ( ) { com . precioustech . fxtrading . oanda . restapi . order . OandaOrderManagementProvider service = new com . precioustech . fxtrading . oanda . restapi . order . OandaOrderManagementProvider ( com . precioustech . fxtrading . oanda . restapi . OandaTestConstants . url , com . precioustech . fxtradin...
org . junit . Assert . assertTrue ( success )
testUnion ( ) { es . ieci . tecdoc . fwktd . sql . node . statement . select . PlainSelect leftPlainSelect = new es . ieci . tecdoc . fwktd . sql . node . statement . select . PlainSelect ( ) ; es . ieci . tecdoc . fwktd . sql . node . schema . Table table = new es . ieci . tecdoc . fwktd . sql . node . schema . Table ...
org . junit . Assert . assertNotNull ( union . getSqlString ( ) )
testSerialization ( ) { java . awt . GradientPaint gp = new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . RED , 3.0F , 4.0F , java . awt . Color . BLUE ) ; org . jfree . chart . block . ColorBlock b1 = new org . jfree . chart . block . ColorBlock ( gp , 1.0 , 2.0 ) ; java . io . ByteArrayOutputStream ...
org . junit . Assert . assertEquals ( b1 , b2 )
testGetResourceUnexistent ( ) { java . io . Serializable resourceLike = new org . nuxeo . ecm . platform . relations . DummyResourceLike ( "test" ) ; org . nuxeo . ecm . platform . relations . api . Resource resource = service . getResource ( "http://nuxeo.org/nxrelations/unexistent/" , resourceLike , null ) ; "<Assert...
org . junit . Assert . assertNull ( resource )
testInvokeVarargs21 ( ) { javax . el . BeanELResolver resolver = new javax . el . BeanELResolver ( ) ; javax . el . ELContext context = new javax . el . StandardELContext ( javax . el . ELManager . getExpressionFactory ( ) ) ; java . lang . Object result = resolver . invoke ( context , new javax . el . TesterBean ( jav...
org . junit . Assert . assertEquals ( javax . el . TestBeanELResolver . BEAN_NAME , result )
shouldReturnRecordedResponseInPlayMode ( ) { com . geeksaint . springvcr . server . ProxyServer server = new com . geeksaint . springvcr . server . ProxyServer ( vcr , "play" ) ; when ( vcr . play ( request , requestBody ) ) . thenReturn ( response ) ; "<AssertPlaceHolder>" ; verify ( execution , never ( ) ) . execute ...
org . junit . Assert . assertThat ( server . service ( request , requestBody , execution ) , org . hamcrest . CoreMatchers . is ( response ) )
givenPropertiesSize_whenPropertyFileLoaded_thenCorrect ( ) { java . lang . String rootPath = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) . getResource ( "" ) . getPath ( ) ; java . lang . String appPropsPath = rootPath + "app.properties" ; java . util . Properties appProps = new java . util . P...
org . junit . Assert . assertEquals ( 3 , size )
testOfflineModeArgumentsLong ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "--offline" } ; org . wikidata . wdtk . client . ClientConfiguration config = new org . wikidata . wdtk . client . ClientConfiguration ( args ) ; "<AssertPlaceHolder>" ; } getOfflineMode ( ) { return this . offlineMode ; }
org . junit . Assert . assertTrue ( config . getOfflineMode ( ) )
testPrettyPrint ( ) { java . lang . String expected = "[\n<sp>2,\n<sp>false,\n<sp>{\n<sp>\"name\":\"toto\",\n<sp>\"uu\":null\n<sp>}\n]" ; java . io . StringWriter sw = new java . io . StringWriter ( ) ; javax . json . stream . JsonGenerator writer = new com . owlike . genson . ext . jsr353 . GensonJsonGenerator ( new c...
org . junit . Assert . assertEquals ( expected , sw . toString ( ) )
testSegmentWithLargeUnion ( ) { final java . lang . String query1 = "" + ( ( ( ( ( ( ( ( ( ( ( ( ( "<sp>?e<sp><uri:p0><sp>?l<sp>." 1 + "<sp>{?e<sp><uri:p1><sp><uri:o1>.<sp>}<sp>UNION<sp>{<sp>" 7 ) + "<sp>{?e<sp><uri:p1><sp><uri:o1>.<sp>}<sp>UNION<sp>{<sp>" ) + "<sp>?e<sp><uri:p0><sp>?l<sp>." ) + "<sp>{?e<sp><uri:p1><sp...
org . junit . Assert . assertEquals ( true , validatePcj ( te1 , unOpt , externalList , unMatchedNodes ) )
testHasRelationshipsWithOutgoingDirectionWithSingleRelationshipType ( ) { boolean hasRelationship = neo . hasRelationship ( org . neo4j . rest . graphdb . OUTGOING , RelTypes . KNOWS ) ; "<AssertPlaceHolder>" ; } hasRelationship ( org . neo4j . rest . graphdb . entity . RelationshipType , org . neo4j . rest . graphdb ....
org . junit . Assert . assertTrue ( hasRelationship )
testForVarCharArray ( ) { java . lang . String [ ] strArr = new java . lang . String [ 2 ] ; strArr [ 0 ] = "abc" ; strArr [ 1 ] = "klmnop" ; org . apache . phoenix . schema . types . PhoenixArray arr = org . apache . phoenix . schema . types . PArrayDataType . instantiatePhoenixArray ( PVarchar . INSTANCE , strArr ) ;...
org . junit . Assert . assertEquals ( arr , resultArr )
testHashCode ( ) { final nl . bzk . migratiebrp . conversie . model . brp . groep . BrpGeboorteInhoud inhoud1 = new nl . bzk . migratiebrp . conversie . model . brp . groep . BrpGeboorteInhoud ( new nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpDatum ( nl . bzk . migratiebrp . conversie . model . br...
org . junit . Assert . assertEquals ( inhoud1 . hashCode ( ) , inhoud2 . hashCode ( ) )
testProcessMsgNotifInstanceChanged_invalidApplication ( ) { this . app . getMySqlVm ( ) . setStatus ( InstanceStatus . DEPLOYED_STARTED ) ; net . roboconf . messaging . api . messages . from_agent_to_dm . MsgNotifInstanceChanged msg = new net . roboconf . messaging . api . messages . from_agent_to_dm . MsgNotifInstance...
org . junit . Assert . assertEquals ( InstanceStatus . DEPLOYED_STARTED , this . app . getMySqlVm ( ) . getStatus ( ) )
testAggregate4 ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . aggregate ( builder . groupKey ( bu...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
constructor ( ) { org . slim3 . datastore . EqualCriterion c = new org . slim3 . datastore . EqualCriterion ( meta . myString , "aaa" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( c . value ) ) , org . hamcrest . CoreMatchers . is ( "aaa" ) )
getOldDefinitionsNotExistingStringDefinition ( ) { final org . obeonetwork . m2doc . genconf . Generation generation = GenconfPackage . eINSTANCE . getGenconfFactory ( ) . createGeneration ( ) ; try ( org . apache . poi . xwpf . usermodel . XWPFDocument document = new org . apache . poi . xwpf . usermodel . XWPFDocumen...
org . junit . Assert . assertEquals ( 0 , definitions . size ( ) )
testSendNodebellyAnalyticsMessage ( ) { long sampleTime = java . lang . System . currentTimeMillis ( ) ; sendInsightMessage ( sampleTime ) ; java . util . List < com . streamreduce . core . model . messages . SobaMessage > messagesWithNodeables = messageService . getAllMessages ( testUser , ( sampleTime - 1000 ) , null...
org . junit . Assert . assertEquals ( 1 , messagesWithNodeables . size ( ) )
testDoesNotCallCapabilityLocalRepositoryEventListenersForACapabilityWithADifferentRepositoryClassName ( ) { java . util . concurrent . atomic . AtomicInteger atomicInteger = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; com . liferay . registry . Registry registry = com . liferay . registry . RegistryUt...
org . junit . Assert . assertEquals ( 0 , atomicInteger . get ( ) )
setRange ( ) { random . setRange ( 3 ) ; for ( int i = 0 ; i < 10 ; i ++ ) { long r = random . random ( ) ; "<AssertPlaceHolder>" ; } } random ( ) { return ( ( long ) ( ( java . lang . Math . abs ( random . nextLong ( ) ) ) * ( factor ) ) ) ; }
org . junit . Assert . assertTrue ( ( ( r >= 0 ) && ( r < 3 ) ) )
testEchoServerLargePayload ( ) { com . xjeffrose . xio . bootstrap . XioServerBootstrap bootstrap = com . xjeffrose . xio . bootstrap . XioServerBootstrap . fromConfig ( "xio.testEchoServer" ) . addToPipeline ( new com . xjeffrose . xio . pipeline . XioEchoPipeline ( ) ) ; try ( com . xjeffrose . xio . server . XioServ...
org . junit . Assert . assertEquals ( payload , response )
runAsAnonymousTest ( ) { java . util . concurrent . Callable < java . lang . String > callable = ( ( java . util . concurrent . Callable < java . lang . String > ) ( mock ( java . util . concurrent . Callable . class ) ) ) ; when ( callable . call ( ) ) . thenReturn ( org . pentaho . platform . engine . security . Secu...
org . junit . Assert . assertEquals ( org . pentaho . platform . engine . security . SecurityHelperTest . CALLABLE_RETURNED_VALUE_OK , runningResult )
borderParameter ( ) { double res = instance . sqrt ( 0 ) ; "<AssertPlaceHolder>" ; } sqrt ( int ) { if ( 0 > i ) { throw new java . lang . IllegalArgumentException ( "negative<sp>parameter<sp>not<sp>allowed" ) ; } return java . lang . Math . sqrt ( i ) ; }
org . junit . Assert . assertTrue ( ( res == 0.0 ) )
testGeneratePropertyChecksums_IgnoreProperties ( ) { javax . jcr . Node node = session . getRootNode ( ) . addNode ( "bark" 3 ) ; node . setProperty ( "long" 8 , "My<sp>Title" ) ; node . setProperty ( "jcr:description" , "long" 2 ) ; node . setProperty ( "long" , new java . lang . Long ( 100 ) ) ; node . setProperty ( ...
org . junit . Assert . assertEquals ( expected , actual )
testPlacementWithLocalRackNodesDecommissioned ( ) { java . lang . String clientMachine = "client.foo.com" ; java . lang . String clientRack = "/RACK3" ; org . apache . hadoop . net . StaticMapping . addNodeToRack ( clientMachine , clientRack ) ; final org . apache . hadoop . hdfs . server . blockmanagement . DatanodeMa...
org . junit . Assert . assertEquals ( dnd3 . getNetworkLocation ( ) , clientRack )
findOcspCertificateByHashkey ( ) { org . digidoc4j . Container container = this . openContainerByConfiguration ( java . nio . file . Paths . get ( "src/test/resources/testFiles/valid-containers/OCSPRigaTest.asice" ) , this . configuration ) ; org . digidoc4j . Signature signature = container . getSignatures ( ) . get (...
org . junit . Assert . assertNotNull ( cert )
checkCookieHeaderValue_setMaxSetCookieSize ( ) { filter . setMaxSetCookieSize ( new com . alibaba . citrus . util . HumanReadableSize ( 20 ) ) ; "<AssertPlaceHolder>" ; responseMock . addHeader ( "Set-Cookie" , "test=value" ) ; responseMock . addHeader ( "Set-Cookie" , "" ) ; replayMocks ( ) ; response . addCookie ( ne...
org . junit . Assert . assertEquals ( 20 , filter . getMaxSetCookieSize ( ) . getValue ( ) )
findLatestConfigurationByAppIdTest ( ) { java . util . List < org . kaaproject . kaa . common . dto . ConfigurationDto > configurations = generateConfigurationDto ( null , null , 1 , false , false ) ; org . kaaproject . kaa . common . dto . ConfigurationDto expected = configurations . get ( 0 ) ; org . kaaproject . kaa...
org . junit . Assert . assertNotNull ( found )
divideTest ( ) { tec . units . ri . quantity . ByteQuantity < javax . measure . quantity . ElectricResistance > quantity1 = new tec . units . ri . quantity . ByteQuantity ( java . lang . Byte . valueOf ( "3" ) . byteValue ( ) , tec . units . ri . unit . Units . OHM ) ; tec . units . ri . quantity . ByteQuantity < javax...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( "1" ) , result . getValue ( ) )
shouldRaiseConstraintsViolationCauseRegex ( ) { org . agoncal . book . javaee7 . chapter03 . ex11 . Order11 order = new org . agoncal . book . javaee7 . chapter03 . ex11 . Order11 ( ) ; order . setOrderId ( "FA45678" ) ; java . util . Set < javax . validation . ConstraintViolation < org . agoncal . book . javaee7 . cha...
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
testReadRpcInputStreamsOneSlow ( ) { for ( int jn = 0 ; jn < 2 ; jn ++ ) { org . apache . hadoop . hdfs . qjournal . client . TestQuorumJournalManagerUnit . futureReturns ( getJournaledEditsReponse ( 1 , ( jn + 1 ) ) ) . when ( spyLoggers . get ( jn ) ) . getJournaledEdits ( 1 , QuorumJournalManager . QJM_RPC_MAX_TXNS_...
org . junit . Assert . assertEquals ( 1 , streams . size ( ) )
testPropertyMapHashIsConstant ( ) { com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > map = new com . eclipsesource . v8 . utils . V8PropertyMap < java . lang . Object > ( ) ; int hashCode = map . hashCode ( ) ; map . put ( "foo" , map ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { return v8Object...
org . junit . Assert . assertEquals ( hashCode , map . hashCode ( ) )
shouldDecodeBoolean ( ) { java . io . ByteArrayOutputStream byteArrayOutputStream = new java . io . ByteArrayOutputStream ( ) ; co . nstant . in . cbor . CborEncoder encoder = new co . nstant . in . cbor . CborEncoder ( byteArrayOutputStream ) ; encoder . encode ( SimpleValue . TRUE ) ; encoder . encode ( SimpleValue ....
org . junit . Assert . assertEquals ( 12 , result )
getBindingTargetIndirectIsInvalid ( ) { com . google . inject . Module module = new org . spincast . core . guice . SpincastGuiceModuleBase ( ) { @ org . spincast . tests . Override protected void configure ( ) { bind ( org . spincast . tests . GuiceModuleUtilsTest . SpincastUtilsTesting . class ) . to ( org . spincast...
org . junit . Assert . assertNull ( clazz )
testWorkItemWhenItHasWorkItemDefinition ( ) { doReturn ( null ) . when ( plugin ) . getWorkItemDefinition ( ) ; final java . lang . String workItem = plugin . getWorkItem ( ) ; "<AssertPlaceHolder>" ; } getWorkItem ( ) { return selectedWorkItemKey ; }
org . junit . Assert . assertEquals ( "" , workItem )
parseArguments_multiple ( ) { java . util . Map < java . lang . String , java . lang . String > parsed = com . asakusafw . windgate . cli . CommandLineUtil . parseArguments ( "a=b,c=d,e=f" ) . getPairs ( ) ; java . util . Map < java . lang . String , java . lang . String > answer = new java . util . HashMap ( ) ; answe...
org . junit . Assert . assertThat ( parsed , is ( answer ) )
testZoekBsnOdAnrActueel ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; final java . lang . String bsn = "111111111" ; final java . lang . String anummer = "1268046023" ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 ...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
testConstructorWithNullConnector ( ) { org . apache . accumulo . core . client . Connector connector = null ; datawave . security . authorization . DatawaveUser user = new datawave . security . authorization . DatawaveUser ( userDN , datawave . security . authorization . DatawaveUser . UserType . USER , null , null , n...
org . junit . Assert . assertEquals ( connector , query . getConnection ( ) )
testHuwelijkDatumaanvangSamengesteldenaamstamGeslachtsaanduidingActueel ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 = new nl . bzk . brp . domain . algemeen . ZoekCrit...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
getFunctieAdresTestOK ( ) { final nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortAdresCode faCode = nl . bzk . migratiebrp . conversie . model . brp . attribuut . BrpSoortAdresCode . B ; final nl . bzk . algemeenbrp . dal . domein . brp . enums . SoortAdres expectedFa = nl . bzk . algemeenbrp . ...
org . junit . Assert . assertEquals ( expected , resultFa )
b01_primitiveQueries ( ) { java . lang . String r = proxy . primitiveQueries ( "foo" , null , 123 , 123 , null , true , 1.0F , 1.0F ) ; "<AssertPlaceHolder>" ; } primitiveQueries ( java . lang . String , java . lang . String , int , java . lang . Integer , java . lang . Integer , java . lang . Boolean , float , java . ...
org . junit . Assert . assertEquals ( "OK" , r )
testShouldSkipWithSkipTestsSetToTrue ( ) { org . eclipse . tycho . surefire . TestMojo testMojo = new org . eclipse . tycho . surefire . TestMojo ( ) ; setParameter ( testMojo , "skipTests" , Boolean . TRUE ) ; "<AssertPlaceHolder>" ; } shouldSkip ( ) { if ( ( ( ( skip ) != null ) && ( ( skipTests ) != null ) ) && ( ! ...
org . junit . Assert . assertTrue ( testMojo . shouldSkip ( ) )
testWithDirectedRMatGraph ( ) { org . apache . flink . graph . library . clustering . directed . TriadicCensus . Result expectedResult = new org . apache . flink . graph . library . clustering . directed . TriadicCensus . Result ( 113435893 , 6632528 , 983535 , 118574 , 118566 , 237767 , 129773 , 130041 , 16981 , 5535 ...
org . junit . Assert . assertEquals ( expectedResult , triadCensus )
priority ( ) { java . time . Instant event = java . time . Instant . now ( ) ; java . time . Instant afterTimeout = event . plusSeconds ( ( ( org . openkilda . wfm . topology . reroute . service . ReroutesThrottlingTest . minDelay ) + 1 ) ) ; when ( clock . instant ( ) ) . thenReturn ( event , event , event , afterTime...
org . junit . Assert . assertEquals ( expected , reroutesThrottling . getReroutes ( ) )
backoff_twiceForEquivalentState_noChange ( ) { io . grpc . internal . AtomicBackoff backoff = new io . grpc . internal . AtomicBackoff ( "test" , 8 ) ; io . grpc . internal . AtomicBackoff . State state1 = backoff . getState ( ) ; io . grpc . internal . AtomicBackoff . State state2 = backoff . getState ( ) ; state1 . b...
org . junit . Assert . assertEquals ( 16 , backoff . getState ( ) . get ( ) )
testGetDigest ( ) { java . lang . String str = "wendal" ; java . io . ByteArrayInputStream bin = new java . io . ByteArrayInputStream ( str . getBytes ( ) ) ; org . nutz . lang . encrypt . MsgDigestInputStream in = new org . nutz . lang . encrypt . MsgDigestInputStream ( bin , "md5" ) ; in . read ( new byte [ 1024 ] ) ...
org . junit . Assert . assertEquals ( org . nutz . lang . Lang . md5 ( str ) , in . digest ( ) )
testIdentifiableSearch8 ( ) { org . hisp . dhis . query . Query query = org . hisp . dhis . query . Query . from ( schemaService . getDynamicSchema ( org . hisp . dhis . dataelement . DataElement . class ) , Junction . Type . OR ) ; org . hisp . dhis . query . Restriction displayNameRestriction = org . hisp . dhis . qu...
org . junit . Assert . assertEquals ( 6 , objects . size ( ) )
throwingStream ( ) { java . util . stream . Stream < java . lang . String > names = java . util . stream . Stream . of ( "java.lang.Object" , "java.util.stream.Stream" ) ; name . falgout . jeffrey . throwing . stream . ThrowingStream < java . lang . String , java . lang . ClassNotFoundException > s = name . falgout . j...
org . junit . Assert . assertThat ( l , org . hamcrest . Matchers . contains ( java . lang . Object . class , java . util . stream . Stream . class ) )
testSetTransform_onDevice ( ) { gc . setTransform ( new org . eclipse . swt . graphics . Transform ( display , 1 , 2 , 3 , 4 , 5 , 6 ) ) ; org . eclipse . swt . graphics . Transform transform = new org . eclipse . swt . graphics . Transform ( display ) ; gc . getTransform ( transform ) ; float [ ] elements = new float ...
org . junit . Assert . assertArrayEquals ( new float [ ] { 1 , 2 , 3 , 4 , 5 , 6 } , elements , 0 )
dispatchVServerManualOperation_VSERVER_MODIFICATION_VDISK_DELETION ( ) { paramHandler . setOperation ( Operation . VSERVER_MODIFICATION_VDISK_DELETION ) ; setParameters ( ) ; org . oscm . app . iaas . data . FlowState newState = null ; doReturn ( "" ) . when ( platformService ) . getEventServiceUrl ( ) ; newState = vSe...
org . junit . Assert . assertEquals ( FlowState . FINISHED , newState )
test_atCertWithoutDomParams ( ) { de . persosim . simulator . crypto . certificates . CardVerifiableCertificate cert = new de . persosim . simulator . crypto . certificates . CardVerifiableCertificate ( atCertWithoutDomainParamsTlv ) ; "<AssertPlaceHolder>" ; } getEncoded ( ) { return getTlvEncoding ( true ) . toByteAr...
org . junit . Assert . assertEquals ( atCertWithoutDomainParamsTlv , cert . getEncoded ( ) )
testIfftshiftDouble_inplace ( ) { double [ ] shiftVectorTemp_EXPECTED = org . jlinda . core . utils . SpectralUtilsTest . shiftVector_EXPECTED . clone ( ) ; org . jblas . DoubleMatrix matrixDouble_EXPECTED = new org . jblas . DoubleMatrix ( org . jlinda . core . utils . SpectralUtilsTest . vector_EXPECTED ) ; org . jbl...
org . junit . Assert . assertEquals ( matrixDouble_EXPECTED , matrixDouble_ACTUAL )
fetchFirstItemsWithoutTopItemToRecover ( ) { itemProvider . addItems ( book . twju . chapter_5 . TimelineTest . FIRST_ITEM , book . twju . chapter_5 . TimelineTest . SECOND_ITEM , book . twju . chapter_5 . TimelineTest . THIRD_ITEM , book . twju . chapter_5 . TimelineTest . FOURTH_ITEM ) ; timeline . setFetchCount ( 2 ...
org . junit . Assert . assertArrayEquals ( new book . twju . chapter_5 . Item [ ] { book . twju . chapter_5 . TimelineTest . FOURTH_ITEM , book . twju . chapter_5 . TimelineTest . THIRD_ITEM } , actual . toArray ( new book . twju . chapter_5 . Item [ 2 ] ) )
testUpdateNodesWithModifyOperation ( ) { expect ( mockK8sNodeAdminService . node ( anyString ( ) ) ) . andReturn ( k8sNode ) . once ( ) ; mockK8sNodeAdminService . updateNode ( anyObject ( ) ) ; replay ( mockK8sNodeAdminService ) ; final javax . ws . rs . client . WebTarget wt = target ( ) ; java . io . InputStream jso...
org . junit . Assert . assertThat ( status , org . hamcrest . Matchers . is ( 200 ) )
badInputOptionException1 ( ) { org . ebayopensource . turmeric . tools . codegen . exception . BadInputOptionException badInputEx = new org . ebayopensource . turmeric . tools . codegen . exception . BadInputOptionException ( ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return ( ( ( ( ( ( "Parse<sp>error<sp>near<sp>(...
org . junit . Assert . assertTrue ( ( ( badInputEx . getMessage ( ) ) == null ) )
testVerification ( ) { callback . setVerified ( true ) ; "<AssertPlaceHolder>" ; } isVerified ( ) { return verified . get ( ) ; }
org . junit . Assert . assertThat ( callback . isVerified ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testDecodeTripletContinuationFirst ( ) { java . util . List < java . lang . String > encoded = java . util . Arrays . asList ( opennlp . tools . namefind . BilouCodecTest . A_START , opennlp . tools . namefind . BilouCodecTest . A_CONTINUE , opennlp . tools . namefind . BilouCodecTest . A_CONTINUE , opennlp . tools . n...
org . junit . Assert . assertArrayEquals ( expected , actual )
testObjectReferenceZero ( ) { long objectReferenceCount = v8 . getObjectReferenceCount ( ) ; "<AssertPlaceHolder>" ; } getObjectReferenceCount ( ) { checkReleased ( ) ; return references . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , objectReferenceCount )
testTransformationInClassExtendingAbstract ( ) { long expected = 42 ; org . evosuite . runtime . agent . org . evosuite . runtime . System . setCurrentTimeMillis ( expected ) ; try { org . evosuite . runtime . agent . InstrumentingAgent . activate ( ) ; org . evosuite . runtime . agent . InstrumentingAgent . getInstrum...
org . junit . Assert . assertEquals ( expected , time . getTime ( ) )
severity_from_low_to_high_is_passed_skipped_pending_undefined_ambiguous_failed ( ) { cucumber . api . Result passed = new cucumber . api . Result ( Type . PASSED , 0L , null ) ; cucumber . api . Result skipped = new cucumber . api . Result ( Type . SKIPPED , 0L , null ) ; cucumber . api . Result pending = new cucumber ...
org . junit . Assert . assertThat ( results , org . hamcrest . CoreMatchers . equalTo ( asList ( passed , skipped , pending , undefined , ambiguous , failed ) ) )
testReset_whenReady ( ) { java . nio . file . WatchEvent [ ] kinds = new java . nio . file . WatchEvent . Kind [ ] { mock ( WatchEvent . Kind . class ) } ; com . peircean . glusterfs . GlusterPath path = mock ( com . peircean . glusterfs . GlusterPath . class ) ; com . peircean . glusterfs . GlusterWatchKey key = new c...
org . junit . Assert . assertFalse ( key . reset ( ) )
withoutPrefix_shouldId1BeGreater ( ) { org . asteriskjava . manager . event . BridgeEnterEvent bridgeEnterEvent1 = org . asteriskjava . manager . internal . backwardsCompatibility . bridge . BridgeEnterEventComparatorTest . createBridgeEnterEvent ( "1515590353.30" ) ; org . asteriskjava . manager . event . BridgeEnterE...
org . junit . Assert . assertEquals ( 1 , compareResult )
testIntersection ( ) { com . metamx . collections . bitmap . WrappedBitSetBitmap bitSet = new com . metamx . collections . bitmap . WrappedBitSetBitmap ( com . metamx . collections . IntSetTestUtility . createSimpleBitSet ( com . metamx . collections . IntSetTestUtility . getSetBits ( ) ) ) ; java . util . Set < java ....
org . junit . Assert . assertTrue ( com . metamx . collections . IntSetTestUtility . equalSets ( intersection , ( ( com . metamx . collections . bitmap . WrappedBitSetBitmap ) ( bitSet . intersection ( bitExtraSet ) ) ) ) )
empty_stream ( ) { java . util . stream . Stream < java . lang . String > emptyStream = java . util . stream . Stream . empty ( ) ; long val = emptyStream . count ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( val == 0 ) )
shouldFindBestSolutionReturnTheSolutionInTheListWhenItContainsOneSolution ( ) { @ org . uma . jmetal . util . SuppressWarnings ( "unchecked" ) org . uma . jmetal . util . Comparator < org . uma . jmetal . solution . IntegerSolution > comparator = mock ( org . uma . jmetal . util . Comparator . class ) ; org . uma . jme...
org . junit . Assert . assertSame ( solution , org . uma . jmetal . util . SolutionListUtils . findBestSolution ( list , comparator ) )
testinvalidParam1 ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . libraries . GetByCategory ( ) ; final net . violet . platform . api . callers . APICaller caller = getPublicApplicationAPICaller ( ) ; final java . util . Map < java . lang . String ,...
org . junit . Assert . assertNull ( theResult )
concurrentCreateStorageDirPath ( ) { class ConcurrentCreator implements java . util . concurrent . Callable < java . lang . Void > { private final java . lang . String mPath ; private final java . util . concurrent . CyclicBarrier mBarrier ; ConcurrentCreator ( java . lang . String path , java . util . concurrent . Cyc...
org . junit . Assert . assertTrue ( alluxio . util . io . FileUtils . exists ( storageDir . getAbsolutePath ( ) ) )
testTrue ( ) { final java . util . Set < nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . Relatie > relatieSet = java . util . Collections . singleton ( relatie ) ; org . mockito . Mockito . when ( persoon . getRelaties ( ) ) . thenReturn ( relatieSet ) ; org . mockito . Mockito . when ( r...
org . junit . Assert . assertTrue ( subject . controleer ( persoon , verzoek ) )
forumReadOnlyShouldDeny ( ) { when ( userSession . getRoleManager ( ) ) . thenReturn ( roleManager ) ; when ( request . getParameter ( "forumId" ) ) . thenReturn ( "1" ) ; when ( userSession . isLogged ( ) ) . thenReturn ( true ) ; when ( roleManager . isForumAllowed ( 1 ) ) . thenReturn ( true ) ; when ( roleManager ....
org . junit . Assert . assertFalse ( rule . shouldProceed ( userSession , request ) )
testFilterNietTeLeverenPersonenVoorAttenderingBuitenPopulatie ( ) { final nl . bzk . brp . domain . algemeen . Autorisatiebundel leveringAutorisatie = maakAutorisatiebudel ( SoortDienst . ATTENDERING ) ; final nl . bzk . brp . domain . algemeen . Populatie populatie = nl . bzk . brp . domain . algemeen . Populatie . BU...
org . junit . Assert . assertFalse ( resultaat )
__A$Object_Integer ( ) { com . m3 . scalaflavor4j . CaseClause < java . lang . String , java . lang . String > caseClause = com . m3 . scalaflavor4j . CaseClause . _case ( java . lang . String . class ) . _arrow ( new com . m3 . scalaflavor4j . F1 < java . lang . String , java . lang . String > ( ) { public java . lang...
org . junit . Assert . assertThat ( actual . isDefined ( ) , org . hamcrest . CoreMatchers . is ( false ) )