input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testRun_projectHasApplication ( ) { com . google . cloud . tools . eclipse . projectselector . model . AppEngine appEngine = com . google . cloud . tools . eclipse . projectselector . model . AppEngine . withId ( "unique-id" ) ; when ( projectRepository . getAppEngineApplication ( credential , "projectId" ) ) . thenRet...
org . junit . Assert . assertTrue ( ( appEngine == ( project . getAppEngine ( ) ) ) )
testRetryTimeoutInSecondsCanBeSet ( ) { configuration . setRetryTimeoutInSeconds ( 123 ) ; "<AssertPlaceHolder>" ; } getRetryTimeoutInSeconds ( ) { return retryTimeoutInSeconds ; }
org . junit . Assert . assertEquals ( 123 , configuration . getRetryTimeoutInSeconds ( ) )
testMultipleChildren ( ) { java . lang . String multipleChildren = "C(C)C" ; java . lang . String signatureString = this . canonicalStringFromSmiles ( multipleChildren ) ; java . lang . String expected = "[C]([C]([C]))" ; "<AssertPlaceHolder>" ; } canonicalStringFromSmiles ( java . lang . String ) { org . openscience ....
org . junit . Assert . assertEquals ( expected , signatureString )
shouldRejectIfCrlAbsentForNonRootCertificate ( ) { rootCrl = null ; net . ripe . rpki . commons . validation . objectvalidators . X509ResourceCertificateParentChildValidator validator = new net . ripe . rpki . commons . validation . objectvalidators . X509ResourceCertificateParentChildValidator ( options , result , roo...
org . junit . Assert . assertTrue ( result . hasFailures ( ) )
testThrowsNoSuitableHostsExceptionWhenLoadBalancerReturnsNull ( ) { reset ( _loadBalanceAlgorithm ) ; when ( _loadBalanceAlgorithm . choose ( org . mockito . Matchers . < java . lang . Iterable < com . bazaarvoice . ostrich . ServiceEndPoint > > any ( ) , any ( com . bazaarvoice . ostrich . ServicePoolStatistics . clas...
org . junit . Assert . assertFalse ( called )
test_until_TemporalUnit ( int , int , int , int , int , int , java . time . temporal . TemporalUnit , long ) { org . threeten . extra . chrono . CopticDate start = org . threeten . extra . chrono . CopticDate . of ( year1 , month1 , dom1 ) ; org . threeten . extra . chrono . CopticDate end = org . threeten . extra . ch...
org . junit . Assert . assertEquals ( expected , start . until ( end , unit ) )
testProjectAdminTrue ( ) { when ( projectPrivilegeService . getOrCreateProjectPrivilegeByUserId ( anyInt ( ) , anyInt ( ) ) ) . thenReturn ( projectPrivilege ) ; boolean result = roleServiceImpl . projectAdmin ( user . getId ( ) , company . getId ( ) , project . getId ( ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { retur...
org . junit . Assert . assertEquals ( result , true )
instantiation ( ) { org . junithelper . core . config . Configuration config = null ; org . junithelper . core . extractor . ArgTypeMetaExtractor target = new org . junithelper . core . extractor . ArgTypeMetaExtractor ( config ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( target )
testMapActivityWithUnmappedParentWhichHasAEventSubProcessChild ( ) { org . camunda . bpm . model . bpmn . BpmnModelInstance testProcess = org . camunda . bpm . engine . test . api . runtime . migration . ModifiableBpmnModelInstance . modify ( ProcessModels . SUBPROCESS_PROCESS ) . addSubProcessTo ( "subProcess" ) . tri...
org . junit . Assert . assertThat ( migrationPlan )
getCardinality ( ) { final int expectedCardinality ; if ( ( expectedSubsequenceLength ) == 0 ) { expectedCardinality = org . exist . xquery . Cardinality . EMPTY ; } else if ( ( expectedSubsequenceLength ) == 1 ) { expectedCardinality = org . exist . xquery . Cardinality . ONE ; } else { expectedCardinality = org . exi...
org . junit . Assert . assertEquals ( expectedCardinality , getSubsequence ( ) . getCardinality ( ) )
size_napthalene ( ) { int [ ] [ ] napthalene = org . openscience . cdk . graph . InitialCyclesTest . naphthalene ( ) ; org . openscience . cdk . graph . VertexShortCycles vsc = new org . openscience . cdk . graph . VertexShortCycles ( napthalene ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; ...
org . junit . Assert . assertThat ( vsc . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testToString ( ) { br . com . insula . opes . Agencia agencia = br . com . insula . opes . Agencia . fromString ( "3522" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return numero ; }
org . junit . Assert . assertEquals ( "3522" , agencia . toString ( ) )
setReservationId_anInteger_reservationIdIsSet ( ) { java . lang . Integer anInteger = 42 ; request . setReservationId ( anInteger ) ; "<AssertPlaceHolder>" ; } getReservationId ( ) { return reservationId ; }
org . junit . Assert . assertThat ( request . getReservationId ( ) , org . hamcrest . CoreMatchers . equalTo ( anInteger ) )
testHasValueThatOnNullValue ( ) { "<AssertPlaceHolder>" ; } hasValueThat ( org . hamcrest . Matcher ) { return new com . annimon . stream . test . hamcrest . OptionalBooleanMatcher . HasValueMatcher ( matcher ) ; }
org . junit . Assert . assertThat ( null , com . annimon . stream . test . hamcrest . OptionalBooleanMatcher . hasValueThat ( org . hamcrest . CoreMatchers . is ( false ) ) )
testSerialization ( ) { org . jfree . chart . labels . StandardXYToolTipGenerator g1 = new org . jfree . chart . labels . StandardXYToolTipGenerator ( ) ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out = new java . io . ObjectOutputStream ( buffer ) ;...
org . junit . Assert . assertEquals ( g1 , g2 )
testIncludeWithNestedArgs ( ) { java . lang . String template = "load<sp><box(foo(\"arg\"))>;" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; st . impl . nativeGroup . defineTemplate ( "box" , "y" , "kewl<sp><y><sp>daddy" ) ; st . impl . nativeGroup . defineTemplate ( "foo" , "x...
org . junit . Assert . assertEquals ( expected , result )
shouldReturnFalseWhenOrdersAreNotNullAndPreviousOrderDateToIsAndOrderDateFromIsNull ( ) { stubStringField ( previousOrder , OrderFields . STATE , OrderStateStringValues . ACCEPTED ) ; stubDateField ( previousOrder , OrderFields . FINISH_DATE , null ) ; stubDateField ( order , OrderFields . START_DATE , null ) ; boolean...
org . junit . Assert . assertFalse ( result )
testDeblokkeringAntwoordFout ( ) { final nl . bzk . migratiebrp . bericht . model . sync . generated . DeblokkeringVerzoekType deblokkeringVerzoekType = new nl . bzk . migratiebrp . bericht . model . sync . generated . DeblokkeringVerzoekType ( ) ; final nl . bzk . migratiebrp . bericht . model . sync . impl . Deblokke...
org . junit . Assert . assertNotNull ( "Er<sp>zou<sp>een<sp>fout<sp>op<sp>moeten<sp>treden." , e )
testExportResources ( ) { org . pentaho . di . trans . steps . xmloutput . XMLOutputMeta xmlOutputMeta = new org . pentaho . di . trans . steps . xmloutput . XMLOutputMeta ( ) ; xmlOutputMeta . setDefault ( ) ; org . pentaho . di . resource . ResourceNamingInterface resourceNamingInterface = mock ( org . pentaho . di ....
org . junit . Assert . assertEquals ( "exportFile" , xmlOutputMeta . getFileName ( ) )
testToString ( ) { de . metanome . algorithm_integration . ColumnIdentifier expectedColumn1 = new de . metanome . algorithm_integration . ColumnIdentifier ( "table56" , "column1" ) ; de . metanome . algorithm_integration . ColumnIdentifier expectedColumn2 = new de . metanome . algorithm_integration . ColumnIdentifier (...
org . junit . Assert . assertEquals ( expectedStringRepresentation , actualStringRepresentation )
testEncodeKanjiMode ( ) { java . util . Map < com . google . zxing . EncodeHintType , java . lang . Object > hints = new java . util . EnumMap ( com . google . zxing . EncodeHintType . class ) ; hints . put ( EncodeHintType . CHARACTER_SET , "<sp>1<sp>0<sp>1<sp>1<sp>1<sp>0<sp>1<sp>0<sp>0<sp>1<sp>1<sp>1<sp>1<sp>0<sp>1<s...
org . junit . Assert . assertEquals ( expected , qrCode . toString ( ) )
sharedCollectionsAreCopiedWithTheSameReference ( ) { org . libreplan . business . util . deepcopy . EntityExamples . EntityA entityA = new org . libreplan . business . util . deepcopy . EntityExamples . EntityA ( ) ; java . util . List < java . lang . String > originalList = java . util . Collections . singletonList ( ...
org . junit . Assert . assertSame ( originalList , copy . getSharedListProperty ( ) )
testDecodeGeneralizedTimeWithoutTimeZoneWithFracSec2Byte ( ) { java . util . Calendar cal = java . util . Calendar . getInstance ( ) ; cal . clear ( ) ; cal . set ( Calendar . YEAR , 2010 ) ; cal . set ( Calendar . MONTH , Calendar . JULY ) ; cal . set ( Calendar . DAY_OF_MONTH , 12 ) ; cal . set ( Calendar . HOUR_OF_D...
org . junit . Assert . assertEquals ( expectedDate , actualDate )
findFunctionsByNameInNamespaceForRootResourceTypeWithFunctionsWithSameNameOnSubTypResourceShouldReturnOtherFunction ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity rootResourceType = createRootResourceType ( ) ; ch . puzzle . itc . mobiliar . business . resourcegroup . entity...
org . junit . Assert . assertTrue ( functionsWithName . contains ( OTHER_FUNCTION_A ) )
testExplicitPassphrase ( ) { factoryBean . setLocation ( SSLTestConstants . KEYSTORE_JKS_RESOURCE ) ; factoryBean . setPassword ( SSL . DEFAULT_KEYSTORE_PASSWORD ) ; "<AssertPlaceHolder>" ; } createKeyStore ( ) { if ( ( getLocation ( ) ) == null ) { throw new java . lang . IllegalArgumentException ( "location<sp>is<sp>...
org . junit . Assert . assertNotNull ( factoryBean . createKeyStore ( ) )
testUpdateSinkGroupFilter ( ) { config . setUserNameAttribute ( "sAMAccountName" ) ; config . setUserSearchBase ( "cn=users,DC=ranger,DC=qe,DC=hortonworks,DC=com" ) ; config . setUserSearchFilter ( "" ) ; config . setGroupSearchBase ( "OU=Groups,DC=ranger,DC=qe,DC=hortonworks,DC=com" ) ; config . setGroupSearchFilter (...
org . junit . Assert . assertEquals ( 1 , sink . getTotalGroups ( ) )
testReplacementForSingleVariable ( ) { java . lang . String value = "${testproperty}" ; java . lang . System . setProperty ( "testproperty" , "correctreplacement" ) ; java . lang . String result = io . joynr . messaging . bounceproxy . runtime . BounceProxySystemPropertyLoader . replaceVariableBySystemProperty ( value ...
org . junit . Assert . assertEquals ( "correctreplacement" , result )
testSimple2 ( ) { java . lang . Object obj = new net . bytebuddy . ByteBuddy ( ) . subclass ( java . lang . Object . class ) . name ( "example.Type" ) . method ( named ( "toString" ) ) . intercept ( net . bytebuddy . implementation . FixedValue . value ( "Hello<sp>World!" ) ) . make ( ) . load ( getClass ( ) . getClass...
org . junit . Assert . assertThat ( obj . toString ( ) , org . hamcrest . Matchers . is ( "Hello<sp>World!" ) )
testServicesAnnotatedButNotImplementsMultiple ( ) { @ com . liferay . portal . kernel . spring . osgi . OSGiBeanProperties ( service = { java . util . EventListener . class , java . io . Serializable . class } ) class C implements java . io . Serializable { } java . util . Set < java . lang . String > interfaceNames = ...
org . junit . Assert . assertEquals ( interfaceNames . toString ( ) , 1 , interfaceNames . size ( ) )
testLimit ( ) { final org . geotoolkit . data . FeatureCollection featureList = org . geotoolkit . processing . vector . maxlimit . MaxLimitTest . buildFeatureList ( ) ; org . geotoolkit . process . ProcessDescriptor desc = org . geotoolkit . process . ProcessFinder . getProcessDescriptor ( GeotkProcessingRegistry . NA...
org . junit . Assert . assertEquals ( 5 , featureListOut . size ( ) )
testNamespaceCreateAndAssign ( ) { org . apache . hadoop . hbase . rsgroup . TestRSGroupsBasics . LOG . info ( "testNamespaceCreateAndAssign" ) ; java . lang . String nsName = ( tablePrefix ) + "_foo" ; final org . apache . hadoop . hbase . TableName tableName = org . apache . hadoop . hbase . TableName . valueOf ( nsN...
org . junit . Assert . assertEquals ( 1 , admin . getRegions ( targetServer ) . size ( ) )
testMatchGraphSourceAtLeastWSC01 ( ) { es . usc . citius . composit . core . knowledge . Concept c = es . usc . citius . composit . test . matcher . graph . WSCHashMatchGraphTest . dataset . getKb ( ) . getConcept ( "con1233457844" ) ; java . util . Map < es . usc . citius . composit . core . knowledge . Concept , es ....
org . junit . Assert . assertEquals ( expected , result )
computeEndTimeForPaymentPreview_InvokeInLastTimeSliceEndingWithBillingEnd ( ) { long endTimeForPeriod = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-01-31<sp>23:59:59" ) ; long endTimeForBilling = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-02-01<sp>00:00:00" ) ; long endTime = new ...
org . junit . Assert . assertEquals ( org . oscm . test . DateTimeHandling . calculateMillis ( "2012-02-01<sp>00:00:00" ) , endTime )
testEarlyEvalOfDefaultArgs ( ) { java . lang . String templates = "s(x,y={<(x)>})<sp>::=<sp>\"<x><y>\"\n" ; org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroupString ( templates ) ; org . stringtemplate . v4 . ST b = group . getInstanceOf ( "s" ) ; b . add ( "x" , "a" ) ; java . lang . S...
org . junit . Assert . assertEquals ( expecting , result )
testSelectBitwiseNot ( ) { if ( ! ( accessStackAdapter . supportsBitwiseOps ( ) ) ) { return ; } createNumericsDataSet ( ) ; org . apache . cayenne . exp . Expression left = new org . apache . cayenne . exp . parser . ASTBitwiseNot ( new org . apache . cayenne . exp . parser . ASTBitwiseNot ( new org . apache . cayenne...
org . junit . Assert . assertEquals ( 2 , objects . size ( ) )
getPropertyAsBoolean_notDefinedProp_defaultfalse ( ) { boolean property = ch . puzzle . itc . mobiliar . common . util . ConfigurationService . getPropertyAsBoolean ( ConfigKey . ENCRYPTION_KEY , false ) ; "<AssertPlaceHolder>" ; } getPropertyAsBoolean ( ch . puzzle . itc . mobiliar . common . util . ConfigKey , java ....
org . junit . Assert . assertFalse ( property )
testIsDrbdStatus ( ) { for ( final lcmc . host . domain . Host host : integrationTestLauncher . getHosts ( ) ) { "<AssertPlaceHolder>" ; } } isDrbdStatusOk ( ) { return drbdStatusOk ; }
org . junit . Assert . assertTrue ( host . isDrbdStatusOk ( ) )
testReadWrite ( ) { query . setFields ( org . apache . gora . query . impl . TestQueryBase . FIELDS ) ; query . setKeyRange ( org . apache . gora . query . impl . TestQueryBase . START_KEY , org . apache . gora . query . impl . TestQueryBase . END_KEY ) ; org . apache . gora . util . TestIOUtils . testSerializeDeserial...
org . junit . Assert . assertNotNull ( query . getDataStore ( ) )
initiallyEmpty ( ) { com . vaadin . ui . RichTextArea richTextArea = new com . vaadin . ui . RichTextArea ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
org . junit . Assert . assertTrue ( richTextArea . isEmpty ( ) )
testGetDoubleSameSizeArray ( ) { com . eclipsesource . v8 . V8Array a = v8 . executeArrayScript ( "[1,2.2,3.3,4]" ) ; double [ ] result = new double [ 4 ] ; int size = a . getDoubles ( 0 , 4 , result ) ; "<AssertPlaceHolder>" ; a . close ( ) ; } executeArrayScript ( java . lang . String ) { return executeArrayScript ( ...
org . junit . Assert . assertEquals ( 4 , size )
testGetIntsPartialFirstBlock ( ) { int p = m . malloc ( m_allocationSize ) ; int [ ] buf = new int [ ( m_allocationSize ) - 1 ] ; for ( int i = 0 ; i < ( ( m_allocationSize ) - 1 ) ; i ++ ) { buf [ i ] = i ; } m . setInt ( p , 0 , ( - 100 ) ) ; for ( int i = 0 ; i < ( buf . length ) ; i ++ ) { m . setInt ( p , ( i + 1 ...
org . junit . Assert . assertArrayEquals ( buf , buf2 )
testLoadNotPresentSnapshot ( ) { io . global . ot . server . Optional < io . global . ot . server . SignedData < io . global . ot . server . RawSnapshot > > snapshot = await ( intermediateNode . loadSnapshot ( io . global . ot . server . GlobalOTNodeImplTest . REPO_ID , io . global . ot . server . GlobalOTNodeImplTest ...
org . junit . Assert . assertFalse ( snapshot . isPresent ( ) )
forcedFeaturesInjectedExternal ( ) { java . lang . String gadgetXml = "bar" 6 + ( ( ( "<sp><Require<sp>feature='foo'/>" + "</ModulePrefs>" ) + "bar" 5 ) + "bar" 0 ) ; final java . util . Set < java . lang . String > libs = com . google . common . collect . ImmutableSortedSet . of ( "bar" 1 , "bar" , "baz" ) ; org . apa...
org . junit . Assert . assertEquals ( expected , actual )
trimLabelsHours1 ( ) { java . util . List < java . lang . String > input = java . util . Arrays . asList ( "2014/11/26<sp>09:00:00.000000000" , "2014/11/26<sp>10:00:00.000000000" , "2014/11/26<sp>11:00:00.000000000" , "2014/11/26<sp>12:00:00.000000000" , "2014/11/26<sp>13:00:00.000000000" ) ; java . util . List < java ...
org . junit . Assert . assertThat ( found , equalTo ( expected ) )
testMove ( ) { actual . add ( connection . set ( "foo" , "bar" ) ) ; actual . add ( connection . move ( "foo" , 1 ) ) ; verifyResults ( java . util . Arrays . asList ( new java . lang . Object [ ] { true , true } ) ) ; org . springframework . data . redis . connection . lettuce . LettuceConnectionFactory factory2 = new...
org . junit . Assert . assertEquals ( "bar" , conn2 . get ( "foo" ) )
testRemove ( ) { com . liferay . portal . kernel . model . PasswordTracker newPasswordTracker = addPasswordTracker ( ) ; _persistence . remove ( newPasswordTracker ) ; com . liferay . portal . kernel . model . PasswordTracker existingPasswordTracker = _persistence . fetchByPrimaryKey ( newPasswordTracker . getPrimaryKe...
org . junit . Assert . assertNull ( existingPasswordTracker )
testEncryptedPassword ( ) { java . lang . String encryptedPassword = passwordEncryptor . encrypt ( "security" ) ; "<AssertPlaceHolder>" ; } encrypt ( java . lang . String ) { if ( ( callbackHandler ) != null ) { org . apache . wss4j . common . ext . WSPasswordCallback pwCb = new org . apache . wss4j . common . ext . WS...
org . junit . Assert . assertNotNull ( encryptedPassword )
testFirst ( ) { java . lang . Exception ex = new java . lang . Exception ( ) ; java . sql . SQLIntegrityConstraintViolationException sqlEx = new java . sql . SQLIntegrityConstraintViolationException ( ) ; java . sql . SQLException sex = new java . sql . SQLException ( ) ; sex . setNextException ( sqlEx ) ; ex . addSupp...
org . junit . Assert . assertSame ( sqlEx , first )
testInvalidExchange ( ) { gov . hhs . fha . nhinc . exchangemgr . ExchangeManager exMgr = createExchangeManagerWithInvalidExType ( ) ; try { "<AssertPlaceHolder>" ; } catch ( gov . hhs . fha . nhinc . exchangemgr . ExchangeManagerException ex ) { org . junit . Assert . fail ( ( "Error<sp>running<sp>testInvalidExchange:...
org . junit . Assert . assertTrue ( exMgr . getCache ( ) . isEmpty ( ) )
disabledAdvice ( ) { registerAndRefreshContext ( "springlets.mvc.advices.enabled:false" ) ; io . springlets . web . mvc . advice . StringTrimmerAdvice advice = this . context . getBean ( io . springlets . web . mvc . advice . StringTrimmerAdvice . class ) ; "<AssertPlaceHolder>" ; } registerAndRefreshContext ( java . l...
org . junit . Assert . assertNull ( advice )
shouldNotExtractAttribute_emptyParameter ( ) { java . lang . String attribute = io . gravitee . management . idp . ldap . utils . LdapUtils . extractAttribute ( "" ) ; "<AssertPlaceHolder>" ; } extractAttribute ( java . lang . String ) { if ( filter == null ) { return null ; } java . lang . String [ ] parts = filter . ...
org . junit . Assert . assertNull ( attribute )
testGetCacheServerDiskStoreNameWhenUnspecified ( ) { final com . gemstone . gemfire . cache . server . CacheServer mockCacheServer = mockContext . mock ( com . gemstone . gemfire . cache . server . CacheServer . class , "CacheServer" ) ; final com . gemstone . gemfire . cache . server . ClientSubscriptionConfig mockCli...
org . junit . Assert . assertEquals ( DiskStoreDetails . DEFAULT_DISK_STORE_NAME , function . getDiskStoreName ( mockCacheServer ) )
findAllVerkrijgingNLNationaliteit ( ) { final java . util . Collection < nl . bzk . brp . model . algemeen . stamgegeven . kern . RedenVerkrijgingNLNationaliteit > result = stamTabelRepository . findAllVerkrijgingNLNationaliteit ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return elementen . isEmpty ( ) ; }
org . junit . Assert . assertFalse ( result . isEmpty ( ) )
testBasicDownload ( ) { java . lang . String blobValue = "Hello<sp>World<sp>Café" ; java . lang . String encoding = "ISO-8859-1" ; org . nuxeo . ecm . core . api . Blob blob = org . nuxeo . ecm . core . api . Blobs . createBlob ( blobValue , "text/plain" , encoding ) ; blob . setFilename ( "myFile.txt" ) ; blob . setDi...
org . junit . Assert . assertEquals ( blobValue , out . toString ( encoding ) )
testBuildWithParameters ( ) { org . lnu . is . domain . person . paper . PersonPaper personPaper = new org . lnu . is . domain . person . paper . PersonPaper ( ) ; org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; org . lnu . is . domain . person . award . PersonAwar...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testGetStreamName ( ) { java . lang . String name = "test-get-stream-name" ; when ( impl . getStreamName ( ) ) . thenReturn ( name ) ; "<AssertPlaceHolder>" ; verify ( impl , times ( 1 ) ) . getStreamName ( ) ; } getStreamName ( ) { return bkDistributedLogManager . getStreamName ( ) ; }
org . junit . Assert . assertEquals ( name , manager . getStreamName ( ) )
shouldFailWebSocketConnectionWhenServerSendPingFrameWithRsv2 ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . jmock . Expectations ( ) { { oneOf ( handler ) . sessionCreated ( with ( any ( ...
org . junit . Assert . assertTrue ( connectFuture . isConnected ( ) )
shouldFindKeyValueStores ( ) { final java . util . List < org . apache . kafka . streams . state . ReadOnlyKeyValueStore < java . lang . String , java . lang . String > > results = wrappingStoreProvider . stores ( "kv" , org . apache . kafka . streams . state . QueryableStoreTypes . < java . lang . String , java . lang...
org . junit . Assert . assertEquals ( 2 , results . size ( ) )
testBasicRole ( ) { org . apache . activemq . artemis . core . server . management . JMXAccessControlList controlList = new org . apache . activemq . artemis . core . server . management . JMXAccessControlList ( ) ; controlList . addToRoleAccess ( "org.myDomain" , null , "listSomething" , "admin" ) ; java . util . List...
org . junit . Assert . assertArrayEquals ( roles . toArray ( ) , new java . lang . String [ ] { "admin" } )
testQuerySourceInitialSplit_NoReferencedTables ( ) { com . google . api . services . bigquery . model . Table queryResultTable = new com . google . api . services . bigquery . model . Table ( ) . setSchema ( new com . google . api . services . bigquery . model . TableSchema ( ) . setFields ( org . apache . beam . vendo...
org . junit . Assert . assertEquals ( 1024 , sources . size ( ) )
isResetPasswordSupported_SAML ( ) { when ( appBean . isInternalAuthMode ( ) ) . thenReturn ( false ) ; bean . isCheckResetPasswordSupported ( ) ; "<AssertPlaceHolder>" ; } isCheckResetPasswordSupported ( ) { if ( model . isUserIdChanged ( ) ) { try { reinitUser ( ) ; } catch ( org . oscm . ui . dialog . classic . opera...
org . junit . Assert . assertEquals ( java . lang . Boolean . valueOf ( false ) , java . lang . Boolean . valueOf ( bean . isCheckResetPasswordSupported ( ) ) )
append_partition_by_name ( ) { org . apache . hadoop . hive . metastore . api . Partition inbound = new org . apache . hadoop . hive . metastore . api . Partition ( ) ; org . apache . hadoop . hive . metastore . api . Partition outbound = new org . apache . hadoop . hive . metastore . api . Partition ( ) ; when ( prima...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( outbound ) )
shouldReturnZeroIfCurrentDateIsBeforeBirthDate ( ) { com . danidemi . tutorial . tdd . web . model . Actor tested = new com . danidemi . tutorial . tdd . web . model . Actor ( ) ; tested . setFirstName ( "Paul" ) ; tested . setLastName ( "Oldman" ) ; tested . setBirthDate ( new org . joda . time . DateTime ( 2010 , org...
org . junit . Assert . assertThat ( years , equalTo ( 0 ) )
testDeleteReferenceNodeOrLastNodeIsOk ( ) { org . neo4j . graphdb . Transaction tx = getTransaction ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { getGraphDb ( ) . createNode ( ) ; } for ( org . neo4j . graphdb . Node node : getGraphDb ( ) . getAllNodes ( ) ) { for ( org . neo4j . graphdb . Relationship rel : node . getRela...
org . junit . Assert . assertFalse ( getGraphDb ( ) . getAllNodes ( ) . iterator ( ) . hasNext ( ) )
testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation ( ) { org . finra . herd . model . api . xml . BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey = new org . finra . herd . model . api . xml . BusinessObjectFormatExternalInterfaceKey ( NAMESPACE , BDEF_NAME , FORMAT_USA...
org . junit . Assert . assertEquals ( businessObjectFormatExternalInterfaceDescriptiveInformation , result )
testToByteArrayWithPadding ( ) { byte [ ] bytes = new byte [ ] { 66 } ; dk . alexandra . fresco . suite . spdz2k . datatypes . UInt < dk . alexandra . fresco . suite . spdz2k . datatypes . CompUInt128 > uint = new dk . alexandra . fresco . suite . spdz2k . datatypes . CompUInt128 ( bytes , true ) ; byte [ ] expected = ...
org . junit . Assert . assertArrayEquals ( expected , actual )
shouldConnectToSecondUrlWhenTheFirstURLTimesOut ( ) { java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap ( ) ; map . put ( "yarn.resourcemanager.url" , ( ( ( org . apache . ambari . view . utils . ambari . ServicesTest . HTTP_RM_URL1 ) + ",<sp>" ) + ( org . apache . ambari...
org . junit . Assert . assertEquals ( org . apache . ambari . view . utils . ambari . ServicesTest . HTTP_RM_URL2 , services . getRMUrl ( ) )
needsUserPrefSubstInTitleUrl ( ) { java . lang . String xml = "<ModulePrefs<sp>title='foo'<sp>title_url='http://__UP_url__'/>" ; org . apache . shindig . gadgets . spec . ModulePrefs prefs = new org . apache . shindig . gadgets . spec . ModulePrefs ( org . apache . shindig . common . xml . XmlUtil . parse ( xml ) , org...
org . junit . Assert . assertTrue ( prefs . needsUserPrefSubstitution ( ) )
testDoNotUrlEncodeCacheControl ( ) { org . exoplatform . portal . application . PortalRequestHandler handler = new org . exoplatform . portal . application . PortalRequestHandler ( ) ; java . lang . String cacheControl = "no-cache,<sp>max-age=0,<sp>must-revalidate,<sp>no-store" ; "<AssertPlaceHolder>" ; } getSanitizedC...
org . junit . Assert . assertEquals ( cacheControl , handler . getSanitizedCacheControl ( cacheControl ) )
getPartnerServiceDetails ( ) { org . oscm . ui . dialog . classic . partnerservice . PartnerServiceViewModel m = new org . oscm . ui . dialog . classic . partnerservice . PartnerServiceViewModel ( ) ; org . oscm . internal . partnerservice . POPartnerServiceDetails s = m . getPartnerServiceDetails ( ) ; "<AssertPlaceHo...
org . junit . Assert . assertNull ( s )
defaultResizer ( ) { net . coobird . thumbnailator . resizers . Resizer resizer = Resizers . BICUBIC ; net . coobird . thumbnailator . resizers . ResizerFactory factory = new net . coobird . thumbnailator . resizers . FixedResizerFactory ( resizer ) ; net . coobird . thumbnailator . resizers . Resizer receivedResizer =...
org . junit . Assert . assertEquals ( resizer , receivedResizer )
testRegisterMultipleCollectors ( ) { io . github . tcdl . msb . collector . Collector secondCollectorMock = mock ( io . github . tcdl . msb . collector . Collector . class ) ; when ( secondCollectorMock . getRequestMessage ( ) ) . thenReturn ( io . github . tcdl . msb . support . TestUtils . createSimpleRequestMessage ...
org . junit . Assert . assertEquals ( 2 , collectorManager . collectorsByCorrelationId . size ( ) )
testBuildTableNameRootServicePathDataModelByServicePathEncoding ( ) { System . out . println ( ( ( ( getTestTraceHead ( "-<sp>OK<sp>-<sp>'" 0 ) ) + "--------<sp>When<sp>encoding<sp>and<sp>when<sp>a<sp>root<sp>service-path<sp>is<sp>notified/defaulted<sp>and<sp>data_model<sp>is<sp>" ) + "'dm-by-service-path'<sp>the<sp>My...
org . junit . Assert . assertEquals ( expecetedTableName , builtTableName )
testSetResponseVariable ( ) { java . lang . String expResult = "http://localhost:54321null?response_variable=1" ; java . lang . Integer value = 1 ; instance = new edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFViewBuilder ( ) ; encoder = new edu . oswego . csc480_hci521_2013 . server . ServerUrlEnco...
org . junit . Assert . assertEquals ( expResult , instance . build ( encoder ) )
testEqualSameValuesAndOrder ( ) { com . thoughtworks . gauge . TableRow row = new com . thoughtworks . gauge . TableRow ( ) ; row . addCell ( "hello" , "world" ) ; row . addCell ( "foo" , "bar" ) ; com . thoughtworks . gauge . TableRow otherRow = new com . thoughtworks . gauge . TableRow ( ) ; otherRow . addCell ( "hel...
org . junit . Assert . assertTrue ( row . equals ( otherRow ) )
testIFElseExprOnSingleLine ( ) { org . stringtemplate . v4 . ST t = new org . stringtemplate . v4 . ST ( ( "begin\n" + ( "<if(users)><else><endif>\n" + "end\n" ) ) ) ; java . lang . String expecting = ( ( "begin" + ( newline ) ) + "end" ) + ( newline ) ; java . lang . String result = t . render ( ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( expecting , result )
nonceShouldGetARandomNumber ( ) { long rdm = 10 ; when ( mockRandom . nextLong ( ) ) . thenReturn ( rdm ) ; long currentSeconds = ( java . lang . System . currentTimeMillis ( ) ) + rdm ; long actual = java . lang . Long . valueOf ( toTest . nonce ( ) ) ; "<AssertPlaceHolder>" ; verify ( mockRandom ) . nextLong ( ) ; } ...
org . junit . Assert . assertTrue ( ( ( currentSeconds == actual ) || ( ( currentSeconds + 1 ) == actual ) ) )
testCloseStream ( ) { final java . util . concurrent . atomic . AtomicBoolean closed = new java . util . concurrent . atomic . AtomicBoolean ( ) ; java . io . InputStream in = new java . io . InputStream ( ) { @ org . apache . jackrabbit . oak . spi . blob . Override public void close ( ) { closed . set ( true ) ; } @ ...
org . junit . Assert . assertTrue ( closed . get ( ) )
testGetKey ( ) { org . jfree . data . DefaultKeyedValues v1 = new org . jfree . data . DefaultKeyedValues ( ) ; try { v1 . getKey ( ( - 1 ) ) ; org . junit . Assert . fail ( "Should<sp>have<sp>thrown<sp>an<sp>IndexOutOfBoundsException" ) ; } catch ( java . lang . IndexOutOfBoundsException e ) { } try { v1 . getKey ( 0 ...
org . junit . Assert . assertEquals ( "K2" , v2 . getKey ( 1 ) )
testWriteString ( ) { java . lang . String s = "Hello<sp>World" ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; org . jboss . as . host . controller . discovery . S3Util . writeString ( s , new java . io . DataOutputStream ( buffer ) ) ; java . lang . String result = org . jboss...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( s ) )
defaultPlatform ( ) { com . facebook . buck . features . haskell . HaskellPlatform ruleDefaultPlatform = HaskellTestUtils . DEFAULT_PLATFORM . withCxxPlatform ( HaskellTestUtils . DEFAULT_PLATFORM . getCxxPlatform ( ) . withFlavor ( com . facebook . buck . core . model . InternalFlavor . of ( "custom_platform" ) ) ) ; ...
org . junit . Assert . assertThat ( rule . getPlatform ( ) , org . hamcrest . Matchers . equalTo ( ruleDefaultPlatform ) )
setEmptyAttribute ( ) { com . vaadin . flow . dom . Element e = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; e . setAttribute ( "foo" , "" ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { return sessionAttributes . get ( name ) ; }
org . junit . Assert . assertEquals ( "" , e . getAttribute ( "foo" ) )
testBuildWithDisabledStatusConstraint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . specoffer . SpecOfferWave context = new org . lnu . is . domain . specoffer . SpecOfferWave ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>SpecOfferWave<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>IN<sp>(:userG...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
flowName ( ) { org . mule . runtime . core . api . construct . FlowConstruct mockFlowConstruct = mock ( org . mule . runtime . core . api . construct . FlowConstruct . class ) ; when ( mockFlowConstruct . getName ( ) ) . thenReturn ( "myFlowName" ) ; java . lang . String result = ( ( java . lang . String ) ( expression...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( mockFlowConstruct . getName ( ) ) )
getConfigurationRealms_should_throw_IllegalArgumentException_if_no_class_for_component_match_property ( ) { java . util . Collection < java . lang . Class < ? > > roleMappingClasses = new java . util . ArrayList ( ) ; roleMappingClasses . add ( org . seedstack . seed . security . RoleMapping . class ) ; securityClasses...
org . junit . Assert . assertEquals ( org . seedstack . seed . security . RoleMapping . class , realm . getRoleMappingClass ( ) )
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . String name = "n<sp>a<sp>m<sp>e" ; org . lnu . is . domain . benefit . BenefitType source = new org . lnu . is . domain . benefit . BenefitType ( ) ; source . setId ( id ) ; source . setName ( name ) ; java . util . List < org . lnu . is . domain . benefit...
org . junit . Assert . assertEquals ( expecteds , actuals )
selectUpDoesntConsumeInEmpty ( ) { setTokens ( ) ; sync . placeholder ( ) . focus ( ) ; jetbrains . jetpad . event . KeyEvent event = press ( KeyStrokeSpecs . SELECT_UP ) ; "<AssertPlaceHolder>" ; } isConsumed ( ) { return myConsumed ; }
org . junit . Assert . assertFalse ( event . isConsumed ( ) )
a0 ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 4 , ( 2 + 2 ) )
testShouldBeAbleToTypeOnANumberInputField ( ) { driver . get ( pages . formPage ) ; org . openqa . selenium . WebElement email = driver . findElement ( org . openqa . selenium . By . id ( "age" ) ) ; email . sendKeys ( "33" ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . lang . String ) { return commandProcessor . ...
org . junit . Assert . assertThat ( email . getAttribute ( "value" ) , org . hamcrest . Matchers . equalTo ( "33" ) )
testCalcDiff50PercentPositive ( ) { java . lang . Double fiftyPercent = java . lang . Double . valueOf ( 50.0 ) ; "<AssertPlaceHolder>" ; } calcDiff ( double , double ) { java . lang . Double diff = java . lang . Double . valueOf ( 0 ) ; if ( from == 0.0 ) { if ( to != 0.0 ) { diff = 100.0 ; } } else { if ( to != 0.0 )...
org . junit . Assert . assertEquals ( fiftyPercent , service . calcDiff ( 10 , 15 ) )
testReadEmptyDirectory ( ) { java . io . File dir = new java . io . File ( "/tmp/byte-blocks/empty" ) ; java . nio . file . Files . deleteIfExists ( dir . toPath ( ) ) ; java . nio . file . Files . createDirectories ( dir . toPath ( ) ) ; com . spinn3r . artemis . byte_block_stream . reader . RollingByteBlockReader rol...
org . junit . Assert . assertEquals ( 0 , found )
testRenderDisposedWidget_beforeCreateWidgets ( ) { org . eclipse . swt . widgets . Shell parent = new org . eclipse . swt . widgets . Shell ( display ) ; org . eclipse . swt . widgets . Composite child1 = new org . eclipse . swt . widgets . Composite ( parent , org . eclipse . swt . SWT . NONE ) ; org . eclipse . rap ....
org . junit . Assert . assertTrue ( ( ( operations . indexOf ( destroyOperation ) ) < ( operations . indexOf ( createOperation ) ) ) )
testHigher1_XProtocolVersionsDowngradeTo1_1 ( ) { request = new org . apache . hc . core5 . http . message . BasicClassicHttpRequest ( "GET" , "/foo" ) ; request . setVersion ( new org . apache . hc . core5 . http . ProtocolVersion ( "HTTP" , 1 , 2 ) ) ; final org . apache . hc . core5 . http . ClassicHttpRequest downg...
org . junit . Assert . assertTrue ( org . apache . hc . client5 . http . impl . cache . HttpTestUtils . semanticallyTransparent ( originResponse , result ) )
should_use_override_invocation_strategy_when_specified ( ) { com . artemis . SystemInvocationStrategy strategy = new com . artemis . SystemInvocationStrategy ( ) { @ com . artemis . Override protected void process ( ) { } } ; com . artemis . World world = new com . artemis . World ( new com . artemis . WorldConfigurati...
org . junit . Assert . assertTrue ( ( ( world . getInvocationStrategy ( ) ) == strategy ) )
test2502355_restoreAutoRangeBounds ( ) { org . jfree . data . xy . DefaultXYDataset dataset = new org . jfree . data . xy . DefaultXYDataset ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createXYLineChart ( "TestChart" , "X" , "Y" , dataset , PlotOrientation . VERTICAL , false , fa...
org . junit . Assert . assertEquals ( 1 , this . chartChangeEvents . size ( ) )
testValues ( ) { org . slc . sli . modeling . uml . Aggregation [ ] aggregations = org . slc . sli . modeling . uml . Aggregation . values ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 3 , aggregations . length )
multiLogDeliveryCallbackTest ( ) { org . kaaproject . kaa . server . operations . service . akka . messages . core . logs . MultiLogDeliveryCallback callback ; akka . actor . ActorSystem system = akka . actor . ActorSystem . create ( "actorSystem" ) ; akka . actor . ActorRef actorRef = system . actorOf ( akka . actor ....
org . junit . Assert . assertNotNull ( callback )
testGeenLandAanvang ( ) { soortAH = nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortAdministratieveHandeling . VOLTREKKING_HUWELIJK_IN_BUITENLAND ; final nl . bzk . brp . model . bericht . kern . HuwelijkBericht huwelijk = bouwHuwelijk ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset ...
org . junit . Assert . assertEquals ( 0 , resultaat . size ( ) )
testBigBadFile2 ( ) { java . lang . ClassLoader cloader = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; java . io . InputStream istream = cloader . getResourceAsStream ( "big-bad.csv" ) ; no . priv . garshol . duke . utils . CSVReader reader = new no . priv . garshol . duke . utils . CSVReader ...
org . junit . Assert . assertTrue ( ( ( e . getMessage ( ) . indexOf ( "big-bad.csv" ) ) != ( - 1 ) ) )
getProjects ( ) { de . blizzy . documentr . web . project . ProjectsController projectsController = new de . blizzy . documentr . web . project . ProjectsController ( ) ; java . lang . String view = projectsController . getProjects ( ) ; "<AssertPlaceHolder>" ; } getProjects ( ) { return "/project/index" ; }
org . junit . Assert . assertEquals ( "/project/index" , view )