input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetParametersWithDefaultEntity ( ) { org . lnu . is . domain . enrolment . status . type . EnrolmentStatusType entity = new org . lnu . is . domain . enrolment . status . type . EnrolmentStatusType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . ...
org . junit . Assert . assertEquals ( expected , actual )
non_boolean_type_returns_no_specimen ( ) { java . lang . Object result = booleanGenerator . create ( com . flextrade . jfixture . builders . Integer . class , null ) ; "<AssertPlaceHolder>" ; } create ( java . lang . Object , com . flextrade . jfixture . SpecimenContext ) { if ( ! ( request instanceof com . flextrade ....
org . junit . Assert . assertEquals ( new com . flextrade . jfixture . NoSpecimen ( ) , result )
testLoadFailure ( ) { org . hawkular . agent . javaagent . config . ConfigManager cm = new org . hawkular . agent . javaagent . config . ConfigManager ( new java . io . File ( "/bogus/file/name.boo" ) ) ; try { cm . getConfiguration ( false ) ; org . junit . Assert . fail ( "File<sp>was<sp>invalid<sp>-<sp>exception<sp>...
org . junit . Assert . assertFalse ( cm . hasConfiguration ( ) )
testDisassociateTrustBundleFromDomains_noEntityManager_assertException ( ) { final org . nhindirect . config . store . dao . impl . TrustBundleDaoImpl dao = new org . nhindirect . config . store . dao . impl . TrustBundleDaoImpl ( ) ; boolean exceptionOccured = false ; try { dao . disassociateTrustBundleFromDomains ( 1...
org . junit . Assert . assertTrue ( exceptionOccured )
basic_replace_heap ( ) { java . lang . String expected = "Used<sp>Heap:<sp>42" ; java . lang . String template = "Used<sp>Heap:<sp>${usedHeapSize}" ; org . lightfish . business . servermonitoring . entity . Snapshot snapshot = new org . lightfish . business . servermonitoring . entity . Snapshot . Builder ( ) . usedHea...
org . junit . Assert . assertEquals ( expected , result )
testSetLocalTimeWithType ( ) { java . time . LocalTime data = java . time . LocalTime . parse ( "16:21:51" ) ; java . sql . Time actual = insertThenReadWithType ( data , Types . TIME , "time_without_time_zone_column" , java . sql . Time . class ) ; java . sql . Time expected = java . sql . Time . valueOf ( "16:21:51" )...
org . junit . Assert . assertEquals ( expected , actual )
testGetSetUGI ( ) { java . nio . file . Path rootPath = java . nio . file . Paths . get ( hdfs . jsr203 . TestUserPrincipalLookupService . clusterUri ) ; java . nio . file . attribute . UserPrincipal user = java . nio . file . Files . getOwner ( rootPath ) ; "<AssertPlaceHolder>" ; java . nio . file . Files . setOwner ...
org . junit . Assert . assertNotNull ( user )
toUrlConvertsOnlyWhitespaceToNull ( ) { java . net . URL whitespace = hudson . plugins . jira . JiraSite . toURL ( "<sp>" ) ; "<AssertPlaceHolder>" ; } toURL ( java . lang . String ) { url = hudson . Util . fixEmptyAndTrim ( url ) ; if ( url == null ) return null ; if ( ! ( url . endsWith ( "/" ) ) ) url = url + "/" ; ...
org . junit . Assert . assertNull ( whitespace )
createICEFaces ( ) { wizardAction . openNewLiferayJsfProjectWizard ( ) ; wizardAction . newLiferayJsf . prepareMaven ( project . getName ( ) , com . liferay . ide . ui . jsf . tests . ICEFACES ) ; wizardAction . finish ( ) ; jobAction . waitForNoRunningProjectBuildingJobs ( ) ; "<AssertPlaceHolder>" ; viewAction . proj...
org . junit . Assert . assertTrue ( viewAction . project . visibleFileTry ( project . getName ( ) ) )
eval_empty ( ) { "<AssertPlaceHolder>" ; } eval ( java . lang . String ) { if ( val == null ) { return null ; } int sp = val . indexOf ( io . ebean . config . properties . PropertyEval . START ) ; if ( sp > ( - 1 ) ) { int ep = val . indexOf ( io . ebean . config . properties . PropertyEval . END , ( sp + 1 ) ) ; if ( ...
org . junit . Assert . assertEquals ( "" , io . ebean . config . properties . PropertyEval . eval ( "" ) )
testRepeatedMixedOr ( ) { org . opengis . filter . expression . PropertyName spp = ff . property ( "sp" ) ; org . opengis . filter . expression . PropertyName ipp = ff . property ( "ip" ) ; org . opengis . filter . expression . PropertyName dpp = ff . property ( "dp" ) ; org . opengis . filter . Or orFilter = ff . or (...
org . junit . Assert . assertEquals ( expected , nhResult )
importProfileFileWithFakeFileReturnCreated ( ) { fr . gouv . vitam . common . thread . VitamThreadUtils . getVitamSession ( ) . setTenantId ( fr . gouv . vitam . functional . administration . client . AdminManagementClientRestTest . TENANT_ID ) ; when ( fr . gouv . vitam . functional . administration . client . AdminMa...
org . junit . Assert . assertEquals ( resp . getHttpCode ( ) , Status . CREATED . getStatusCode ( ) )
testGetFactoryPid ( ) { org . osgi . service . cm . ConfigurationAdmin testConfigAdmin = mock ( org . osgi . service . cm . ConfigurationAdmin . class ) ; org . codice . ddf . admin . core . impl . AdminConsoleService configAdmin = new org . codice . ddf . admin . core . impl . AdminConsoleService ( testConfigAdmin , o...
org . junit . Assert . assertEquals ( org . codice . ddf . admin . core . impl . AdminConsoleServiceTest . TEST_FACTORY_PID , pid )
testHourOutside ( ) { edu . ucla . sspace . util . TimeSpan ts = new edu . ucla . sspace . util . TimeSpan ( "1h" ) ; java . util . Calendar now = java . util . Calendar . getInstance ( ) ; java . util . Calendar hourFromNow = java . util . Calendar . getInstance ( ) ; hourFromNow . add ( Calendar . HOUR , 1 ) ; "<Asse...
org . junit . Assert . assertFalse ( ts . insideRange ( now , hourFromNow ) )
queryingIndexInPopulatingStateMustBlockUntilIndexIsOnlineEvenWhenTransactionHasState ( ) { db = createDatabase ( ) ; long nodeCount = 10000 ; try ( org . neo4j . graphdb . Transaction tx = db . beginTx ( ) ) { for ( int i = 0 ; i < nodeCount ; i ++ ) { db . createNode ( org . neo4j . kernel . api . impl . fulltext . Fu...
org . junit . Assert . assertThat ( stream . count ( ) , org . hamcrest . Matchers . is ( ( nodeCount + 1 ) ) )
checkingWithExpectMessageShouldThrowAssertionErrorIfExpectedMessageOnlyContainsTheMiddlePart ( ) { expectedException . expect ( net . usikkert . kouchat . junit . IllegalArgumentException . class ) ; expectedException . expectMessage ( "the<sp>error<sp>message" ) ; final java . lang . AssertionError error = runTestAndT...
org . junit . Assert . assertNotNull ( error )
testBlankExpression ( ) { final java . lang . String initial = "" ; final java . lang . String after = replacer . replaceProperties ( initial ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "" , after )
testFunctionDeclarationMutability ( ) { java . lang . String program = new java . lang . StringBuilder ( ) . append ( "'use<sp>strict';" ) . append ( "function<sp>f()<sp>{" ) . append ( "<sp>f<sp>=<sp>function(amount)<sp>{" ) . append ( "<sp>return<sp>amount*2;" ) . append ( "<sp>};" ) . append ( "<sp>return<sp>f.apply...
org . junit . Assert . assertThat ( result )
testSynchronized ( ) { java . util . Map < java . lang . String , java . lang . Object > ns = new java . util . TreeMap < java . lang . String , java . lang . Object > ( ) ; org . apache . commons . jexl3 . JexlContext jc = new org . apache . commons . jexl3 . SynchronizedContext ( new org . apache . commons . jexl3 . ...
org . junit . Assert . assertEquals ( 6 , size )
testNowReadOnly_FOLLOWER ( ) { org . neo4j . graphdb . GraphDatabaseService db = getOneFollowerDatabase ( ) ; org . neo4j . graphdb . Result execute = db . execute ( "CALL<sp>ga.timetree.now({create:<sp>false})<sp>YIELD<sp>instant<sp>RETURN<sp>instant" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertFalse ( execute . hasNext ( ) )
shouldReturnSymmetricIslsWithRequiredBandwidth ( ) { long availableBandwidth = 100L ; org . openkilda . model . Isl forwardIsl = new org . openkilda . model . Isl ( ) ; forwardIsl . setSrcSwitch ( switchA ) ; forwardIsl . setSrcPort ( 1 ) ; forwardIsl . setDestSwitch ( switchB ) ; forwardIsl . setDestPort ( 2 ) ; forwa...
org . junit . Assert . assertEquals ( 2 , org . openkilda . persistence . repositories . impl . Neo4jIslRepositoryTest . islRepository . findSymmetricActiveWithAvailableBandwidth ( availableBandwidth ) . size ( ) )
test_setPreferredSizeLorg_eclipse_swt_graphics_Point ( ) { org . eclipse . swt . widgets . Button button = new org . eclipse . swt . widgets . Button ( coolBar , org . eclipse . swt . SWT . PUSH ) ; button . setText ( "foobar" ) ; coolItem . setControl ( button ) ; org . eclipse . swt . graphics . Point size = new org ...
org . junit . Assert . assertEquals ( size2 , coolItem . getPreferredSize ( ) )
testUnauthorizedWrite ( ) { java . util . Properties producerProps = new java . util . Properties ( ) ; producerProps . put ( "bootstrap.servers" , ( "localhost:" + ( org . apache . ranger . authorization . kafka . authorizer . KafkaRangerAuthorizerTest . port ) ) ) ; producerProps . put ( "acks" , "org.apache.kafka.co...
org . junit . Assert . assertTrue ( ex . getMessage ( ) . contains ( "org.apache.kafka.common.serialization.StringSerializer" 4 ) )
testDefault2 ( ) { final java . util . Map < java . lang . String , java . lang . String > properties = new java . util . HashMap ( ) ; properties . put ( BrokerSettingKey . DISABLE_DEFAULT_CONNECTOR_DESCRIPTOR . key ( ) , "true" ) ; org . eclipse . kapua . broker . core . plugin . Tests . runWithProperties ( propertie...
org . junit . Assert . assertNull ( descriptor )
executeQueryLoadSubIdsAndOrgsForMyBrokerCustomersWithPagination ( ) { customerOrg = createCustomer ( ) ; currentUser = createSupplier ( customerOrg ) ; java . util . List < org . oscm . domobjects . Subscription > list = subscriptionServiceBean . executeQueryLoadSubIdsAndOrgsForMyBrokerCustomers ( org . oscm . subscrip...
org . junit . Assert . assertNotNull ( list )
testRestoreDirInput ( ) { org . apache . phoenix . schema . stats . UpdateStatisticsTool tool = new org . apache . phoenix . schema . stats . UpdateStatisticsTool ( ) ; tool . parseArgs ( new java . lang . String [ ] { "-t" , "table1" , "-d" , "fs:/path" } ) ; "<AssertPlaceHolder>" ; } getRestoreDir ( ) { return restor...
org . junit . Assert . assertEquals ( "fs:/path" , tool . getRestoreDir ( ) . toString ( ) )
findAllRedenOntbindingHuwelijkPartnerschap ( ) { final java . util . List < nl . bzk . algemeenbrp . dal . domein . brp . entity . RedenOntbindingHuwelijkPartnerschap > result = redenOntbindingHuwelijkPartnerschapRepository . findAll ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
org . junit . Assert . assertEquals ( 8 , result . size ( ) )
test2502355_zoom ( ) { 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 , false , false ) ; or...
org . junit . Assert . assertEquals ( 1 , this . chartChangeEvents . size ( ) )
auditOffForInboundPDDeferredReq ( ) { org . hl7 . v3 . PRPAIN201305UV02 request = new org . hl7 . v3 . PRPAIN201305UV02 ( ) ; gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = new gov . hhs . fha . nhinc . common . nhinccommon . AssertionType ( ) ; org . hl7 . v3 . MCCIIN000002UV01 expectedResp...
org . junit . Assert . assertSame ( expectedResponse , actualResponse )
preservesSimpleStringVariables ( ) { final de . escalon . hypermedia . affordance . Affordance affordance = new de . escalon . hypermedia . affordance . Affordance ( "/protected/res/documents/index.html?focus={contractId}&caller=BLUE&referrer=/protected/res/my_contracts/index.html&fragment=/contractDetails/{ref}" , "th...
org . junit . Assert . assertEquals ( "/protected/res/documents/index.html?focus={contractId}&caller=BLUE&referrer=/protected/res/my_contracts/index.html&fragment=/contractDetails/{ref}" , affordance . getHref ( ) )
equals_trueForSameInstance ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } com . eclipsesource . json . Location other = ( ( com . eclipsesource . json . ...
org . junit . Assert . assertTrue ( object . equals ( object ) )
removeTimestampFromId_withTimeStamp ( ) { java . lang . String productId = ( ( PRODUCT_ID ) + "#" ) + ( java . lang . String . valueOf ( java . lang . System . currentTimeMillis ( ) ) ) ; java . lang . String result = org . oscm . converter . TimeStampUtil . removeTimestampFromId ( productId ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( PRODUCT_ID , result )
test ( ) { final org . opendaylight . yangtools . yang . model . api . SchemaContext context = org . opendaylight . yangtools . yang . stmt . TestUtils . parseYangSources ( "/bugs/bug8831/valid" ) ; "<AssertPlaceHolder>" ; } parseYangSources ( org . opendaylight . yangtools . yang . parser . spi . source . StatementStr...
org . junit . Assert . assertNotNull ( context )
updateNodeWithId1 ( ) { com . depli . store . persistent . entity . JMXNode node = new com . depli . store . persistent . entity . JMXNode ( "node1" , "service:jmx:rmi:///jndi/rmi://localhost:9024/jmxrmi" , false ) ; org . mockito . Mockito . when ( jmxNodeRepository . existsByNodeId ( 1L ) ) . then ( new org . mockito...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( true ) )
testFirstMessageError ( ) { hu . elte . txtuml . api . model . execution . seqdiag . sequences . SequenceMessageSendingStrictErr1 diag = new hu . elte . txtuml . api . model . execution . seqdiag . sequences . SequenceMessageSendingStrictErr1 ( ) ; hu . elte . txtuml . api . model . execution . SequenceDiagramExecutor ...
org . junit . Assert . assertEquals ( 1 , executor . getErrors ( ) . size ( ) )
testBOMInputStream_parseWithReader ( ) { try ( final java . io . Reader reader = new java . io . InputStreamReader ( createBOMInputStream ( "CSVFileParser/bom.csv" ) , org . apache . commons . csv . CSVParserTest . UTF_8_NAME ) ; final org . apache . commons . csv . CSVParser parser = org . apache . commons . csv . CSV...
org . junit . Assert . assertNotNull ( string )
drawImageWithNullImageOp ( ) { java . awt . image . BufferedImage img = new java . awt . image . BufferedImage ( 10 , 10 , java . awt . image . BufferedImage . TYPE_INT_ARGB ) ; g2 . drawImage ( img , null , 2 , 3 ) ; "<AssertPlaceHolder>" ; } drawImage ( java . awt . image . BufferedImage , java . awt . image . Buffer...
org . junit . Assert . assertTrue ( true )
testExplodeFailsWithDeployedManagedArchiveDeployment ( ) { deployManagedDeployment ( org . wildfly . core . test . standalone . mgmt . api . core . DeploymentOperationsTestCase . TEST_DEPLOYMENT_NAME , true ) ; "<AssertPlaceHolder>" ; undeployAndRemoveDeployment ( org . wildfly . core . test . standalone . mgmt . api ....
org . junit . Assert . assertFalse ( explodeDeploymentAndGetOutcome ( org . wildfly . core . test . standalone . mgmt . api . core . DeploymentOperationsTestCase . TEST_DEPLOYMENT_NAME ) )
testBusinessObjectDefinitionKeyToString ( ) { org . finra . herd . model . api . xml . BusinessObjectDefinitionKey businessObjectDefinitionKey = new org . finra . herd . model . api . xml . BusinessObjectDefinitionKey ( BDEF_NAMESPACE , BDEF_NAME ) ; java . lang . String response = businessObjectDefinitionHelper . busi...
org . junit . Assert . assertEquals ( java . lang . String . format ( "namespace:<sp>\"%s\",<sp>businessObjectDefinitionName:<sp>\"%s\"" , org . finra . herd . service . helper . BDEF_NAMESPACE , org . finra . herd . service . helper . BDEF_NAME ) , response )
testBindingBerichtMinInGroep ( ) { java . lang . String xml = leesBestand ( "afstamming_InschrijvingAangifteGeboorte_Bijhouding_v0001_MIN-groepNiveau.xml" ) ; valideerOutputTegenSchema ( xml ) ; nl . bzk . brp . business . dto . bijhouding . AbstractBijhoudingsBericht bericht = unmarshalObject ( xml ) ; "<AssertPlaceHo...
org . junit . Assert . assertNotNull ( bericht )
testGetParametersWithDefaultEntityAndDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . person . family . PersonFamily entity = new org . lnu . is . domain . person . family . PersonFamily ( ) ; java . util . Map < java . lang . String , java . lang . Object > e...
org . junit . Assert . assertEquals ( expected , actual )
createViaTransparentRedirectWithMakeDefaultFlagInRequest ( ) { com . braintreegateway . integrationtest . Customer customer = gateway . customer ( ) . create ( new com . braintreegateway . integrationtest . CustomerRequest ( ) ) . getTarget ( ) ; com . braintreegateway . integrationtest . CreditCardRequest request1 = n...
org . junit . Assert . assertTrue ( card . isDefault ( ) )
testEqualsNull ( ) { byte [ ] aBytes = new byte [ ] { 12 , 56 , 100 , - 2 , - 76 , 89 , 45 , 91 , 3 , - 15 , 35 , 26 , 3 , 91 } ; int aSign = 1 ; java . math . BigInteger aNumber = new java . math . BigInteger ( aSign , aBytes ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( object instanceof or...
org . junit . Assert . assertFalse ( aNumber . equals ( null ) )
testIsFormAvailableForGuest ( ) { when ( _ddmFormInstanceLocalService . fetchFormInstance ( org . mockito . Matchers . anyLong ( ) ) ) . thenReturn ( mock ( com . liferay . dynamic . data . mapping . model . DDMFormInstance . class ) ) ; when ( _ddmFormInstanceService . fetchFormInstance ( org . mockito . Matchers . an...
org . junit . Assert . assertFalse ( ddmFormDisplayContext . isFormAvailable ( ) )
assertFindTaskResultStatisticsDailyWhenRdbIsConfigured ( ) { org . unitils . util . ReflectionUtils . setFieldValue ( statisticManager , "rdbRepository" , rdbRepository ) ; when ( rdbRepository . findTaskResultStatistics ( any ( java . util . Date . class ) , any ( io . elasticjob . cloud . statistics . StatisticInterv...
org . junit . Assert . assertThat ( statisticManager . findTaskResultStatisticsDaily ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . social . kernel . model . SocialRelation . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testVerticalList ( ) { org . antlr . test . TreeAdaptor adaptor = new org . antlr . test . CommonTreeAdaptor ( ) ; org . antlr . test . TreeWizard wiz = new org . antlr . test . TreeWizard ( adaptor , org . antlr . test . TestTreeIterator . tokens ) ; org . antlr . test . CommonTree t = ( ( org . antlr . test . CommonT...
org . junit . Assert . assertEquals ( expecting , found )
albums ( ) { "<AssertPlaceHolder>" ; } albums ( ) { org . junit . Assert . assertThat ( facebook . albums ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . AlbumMethods . class ) ) ; }
org . junit . Assert . assertThat ( facebook . albums ( ) , org . hamcrest . CoreMatchers . instanceOf ( facebook4j . AlbumMethods . class ) )
testMixedLargeRecords ( ) { int pageSize = 128 ; int frameLimit = 4 ; int numRuns = 4 ; int minRecordSize = 20 ; int maxRecordSize = pageSize / 2 ; java . util . HashMap < java . lang . Integer , java . lang . String > specialPair = org . apache . hyracks . tests . unit . AbstractRunGeneratorTest . generateBigObject ( ...
org . junit . Assert . assertTrue ( ( max == ( pageSize * ( frameLimit - 1 ) ) ) )
willRejectInvalidOffer ( ) { when ( resourceRequirement . check ( "requirement<sp>1" , taskId , offer ) ) . thenReturn ( com . containersolutions . mesos . scheduler . requirements . OfferEvaluation . decline ( "test<sp>requirement" , taskId , offer , null ) ) ; "<AssertPlaceHolder>" ; verify ( resourceRequirement ) . ...
org . junit . Assert . assertFalse ( filter . evaluate ( taskId , offer ) . isValid ( ) )
testGo ( ) { java . io . ByteArrayOutputStream baos = new java . io . ByteArrayOutputStream ( ) ; java . io . PrintStream ps = new java . io . PrintStream ( baos ) ; new org . drools . example . api . kiemodulefrommultiplefiles . KieModuleFromMultipleFilesExample ( ) . go ( ps ) ; ps . close ( ) ; java . lang . String ...
org . junit . Assert . assertEquals ( expected , actual )
testIsInputEventWhenTargetElementIsNotAnInputAndDropdownIsNotOpened ( ) { doReturn ( false ) . when ( shortcuts ) . isTargetElementAnInput ( any ( ) ) ; doReturn ( false ) . when ( shortcuts ) . isDropdownOpened ( ) ; "<AssertPlaceHolder>" ; } isInputEvent ( elemental2 . dom . KeyboardEvent ) { return ( isTargetElement...
org . junit . Assert . assertFalse ( shortcuts . isInputEvent ( event ) )
testIFInSubtemplate ( ) { org . stringtemplate . v4 . ST t = new org . stringtemplate . v4 . ST ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<names:{n<sp>|" + ( newline ) ) + "<sp><if(x)>" ) + ( newline ) ) + "<sp><x>" ) + ( newline ) ) + "<sp><x>" 0 ) + ( newline ) ) + "<sp><y>" ) + ( newline ) ) + "<sp><endif>" ) + ( newline ) ) + "...
org . junit . Assert . assertEquals ( expecting , result )
testTenantRoutingContentStoreRetrievedByContentStoreCaps ( ) { org . alfresco . repo . content . ContentStore contentStore = new org . alfresco . repo . tenant . MultiTAdminServiceImplTest . FakeSubsystemProxy ( false ) ; org . alfresco . repo . tenant . TenantRoutingContentStore router = tenantAdmin . tenantRoutingCon...
org . junit . Assert . assertNotNull ( router )
testSelfEquivalence ( ) { org . teiid . query . sql . lang . Create c1 = sample1 ( ) ; "<AssertPlaceHolder>" ; } sample1 ( ) { org . teiid . query . sql . lang . Create create = getFactory ( ) . newCreate ( ) ; create . setTable ( getFactory ( ) . newGroupSymbol ( "temp_table" ) ) ; java . util . List elements = new ja...
org . junit . Assert . assertEquals ( c1 , c1 )
testSelectOnFailingMethod ( ) { ch . lambdaj . List < ch . lambdaj . Person > meAndMyFriends = asList ( me , luca , biagio , celestino ) ; ch . lambdaj . List < ch . lambdaj . Person > youngFriends = select ( meAndMyFriends , having ( on ( ch . lambdaj . Person . class ) . isFailingYoungerThan ( 30 ) ) ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( 0 , youngFriends . size ( ) )
testForeignClass ( ) { org . apache . hadoop . io . MapWritable inMap = new org . apache . hadoop . io . MapWritable ( ) ; inMap . put ( new org . apache . hadoop . io . Text ( "key" ) , new org . apache . hadoop . io . UTF8 ( "value" ) ) ; inMap . put ( new org . apache . hadoop . io . Text ( "key2" ) , new org . apac...
org . junit . Assert . assertEquals ( 1 , copyOfCopy . getNewClasses ( ) )
testLine ( ) { final org . locationtech . geowave . core . geotime . store . data . PersistenceEncodingTest . GeoObjDataAdapter adapter = new org . locationtech . geowave . core . geotime . store . data . PersistenceEncodingTest . GeoObjDataAdapter ( org . locationtech . geowave . core . geotime . store . data . Persis...
org . junit . Assert . assertEquals ( 7 , ids . size ( ) )
testStringWith4Byte ( ) { org . jacorb . orb . CodeSet codeSet = org . jacorb . orb . CodeSet . getCodeSet ( "utf8" ) ; org . jacorb . orb . CDROutputStream cdrOutputStream = new org . jacorb . orb . CDROutputStream ( ) ; byte [ ] expected = new byte [ ] { ( ( byte ) ( 240 ) ) , ( ( byte ) ( 159 ) ) , ( ( byte ) ( 152 ...
org . junit . Assert . assertArrayEquals ( expected , bufferCopy )
testClear ( ) { instance . add ( "name" , "value" ) ; instance . add ( "name" , "value" ) ; instance . clear ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return pairs . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , instance . size ( ) )
testUnmarshall ( ) { de . mirkosertic . gameengine . core . GameObjectInstanceAddedToSceneConditionUnmarshaller theUnmarshaller = new de . mirkosertic . gameengine . core . GameObjectInstanceAddedToSceneConditionUnmarshaller ( ) ; java . util . Map < java . lang . String , java . lang . Object > theData = new java . ut...
org . junit . Assert . assertNotNull ( theUnmarshaller . unmarshall ( theScene , theData ) )
testNormalOperatorInitialization ( ) { org . apache . hyracks . dataflow . std . intersect . IntersectOperatorDescriptor operatorDescriptor = new org . apache . hyracks . dataflow . std . intersect . IntersectOperatorDescriptor ( mockRegistry , nInputs , compareFields , null , normalizedKeyFactory , comparatorFactory ,...
org . junit . Assert . assertEquals ( nInputs , operatorDescriptor . getInputArity ( ) )
testPathDetails1216 ( ) { com . graphhopper . GraphHopper tmpHopper = new com . graphhopper . reader . osm . GraphHopperOSM ( ) . setOSMFile ( ( ( com . graphhopper . GraphHopperIT . DIR ) + "/north-bayreuth.osm.gz" ) ) . setCHEnabled ( false ) . setGraphHopperLocation ( tmpGraphFile ) . setEncodingManager ( com . grap...
org . junit . Assert . assertFalse ( rsp . hasErrors ( ) )
testGetClosestExistingAncestorRoot ( ) { when ( mockSession . getRootNode ( ) ) . thenReturn ( mockRootNode ) ; when ( mockSession . nodeExists ( anyString ( ) ) ) . thenReturn ( false ) ; final javax . jcr . Node closestExistingAncestor = org . fcrepo . kernel . modeshape . utils . FedoraTypesUtils . getClosestExistin...
org . junit . Assert . assertEquals ( mockRootNode , closestExistingAncestor )
testIntern ( ) { opennlp . tools . util . StringList l1 = new opennlp . tools . util . StringList ( "a" ) ; opennlp . tools . util . StringList l2 = new opennlp . tools . util . StringList ( "a" , "b" ) ; "<AssertPlaceHolder>" ; } getToken ( java . lang . String ) { java . util . regex . Matcher tokenMatcher = opennlp ...
org . junit . Assert . assertTrue ( ( ( l1 . getToken ( 0 ) ) == ( l2 . getToken ( 0 ) ) ) )
testPutJob01 ( ) { long id = client . putJob ( 1 , 0 , 5000 , new byte [ ( 1024 * 64 ) - 1 ] ) ; "<AssertPlaceHolder>" ; } putJob ( int , int , int , byte [ ] ) { int maxLength = config . getJobMaxSize ( ) ; if ( ( data != null ) && ( ( data . length ) > maxLength ) ) { throw new java . lang . IllegalArgumentException ...
org . junit . Assert . assertTrue ( ( id != 0 ) )
testGetMajorVersion ( ) { expect ( servletContext . getMajorVersion ( ) ) . andReturn ( 2 ) ; replay ( servletContext , config ) ; org . apache . tiles . web . util . ServletContextAdapter adapter = new org . apache . tiles . web . util . ServletContextAdapter ( config ) ; "<AssertPlaceHolder>" ; } getMajorVersion ( ) ...
org . junit . Assert . assertEquals ( 2 , adapter . getMajorVersion ( ) )
testConvertWithNoRelations ( ) { java . lang . String name = "name1" ; java . lang . String firstName = "first<sp>name" ; java . lang . String fatherName = "father<sp>name" ; java . lang . String surname = "surname" ; java . lang . String invNum = "inv<sp>num" ; java . lang . Double rate = 1.0 ; java . lang . Integer i...
org . junit . Assert . assertEquals ( expected , actual )
testFailing ( ) { loghub . Stats . reset ( ) ; loghub . processors . FieldsProcessor p = new loghub . processors . FieldsProcessor ( ) { @ loghub . processors . Override public java . lang . Object fieldFunction ( loghub . Event event , java . lang . Object valuedestination ) throws loghub . ProcessorException { throw ...
org . junit . Assert . assertEquals ( 1 , found )
testBlobWritingReading ( ) { java . sql . Connection conn = dbResource . getConnection ( ) ; org . apache . empire . db . DBDatabaseDriver driver = dbResource . newDriver ( ) ; org . apache . empire . db . CompanyDB db = new org . apache . empire . db . CompanyDB ( ) ; db . open ( driver , dbResource . getConnection ( ...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 , 3 } , value )
testIllegalSpdySynReplyFrameStreamId ( ) { short type = 2 ; byte flags = 0 ; int length = 4 ; int streamId = 0 ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( ( ( io . netty . handler . codec . spdy . SpdyCodecUtil . SPDY_HEADER_SIZE ) + length ) ) ; io . netty . handler . codec . spdy ....
org . junit . Assert . assertFalse ( buf . isReadable ( ) )
test0Times0Matrix ( ) { org . ujmp . core . Matrix m1 = createMatrixWithAnnotation ( 5 , 7 ) ; org . ujmp . core . Matrix m2 = createMatrixWithAnnotation ( 5 , 7 ) ; org . ujmp . core . Matrix m3 = m1 . times ( m2 ) ; "<AssertPlaceHolder>" ; if ( m1 instanceof org . ujmp . core . interfaces . Erasable ) { ( ( org . ujm...
org . junit . Assert . assertTrue ( getLabel ( ) , m3 . isEmpty ( ) )
testGetIndirectMoveSq_ConstraintsA1_7 ( ) { resultSq = eubos . board . Direction . getIndirectMoveSq ( Direction . leftUp , inputSq ) ; "<AssertPlaceHolder>" ; } getIndirectMoveSq ( eubos . board . Direction , com . fluxchess . jcpi . models . GenericPosition ) { com . fluxchess . jcpi . models . GenericPosition retVal...
org . junit . Assert . assertTrue ( ( ( resultSq ) == null ) )
testHasResourceValueOPT2 ( ) { org . apache . jena . tools . schemagen . SchemagenOptions so0 = new org . apache . jena . tools . schemagen . SchemagenOptions ( ) ; org . apache . jena . tools . schemagen . SchemagenOptions so1 = new org . apache . jena . tools . schemagen . SchemagenOptions ( ) ; so0 . setParent ( so1...
org . junit . Assert . assertTrue ( so0 . hasResourceValue ( OPT . ROOT ) )
testGetVersionOfLastTableChangeNull ( ) { when ( mockTableTruthDao . getLastTableRowChange ( tableId ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } getVersionOfLastTableEntityChange ( java . lang . String ) { org . sagebionetworks . repo . model . table . TableRowChange change = tableTruthDao . getLastTableRowCh...
org . junit . Assert . assertEquals ( ( - 1 ) , manager . getVersionOfLastTableEntityChange ( tableId ) )
testGetProfileForNewUser ( ) { java . lang . String username = "another_new_user" ; try { java . lang . String accessToken = this . createAccessToken ( ) ; "<AssertPlaceHolder>" ; com . agiletec . aps . system . services . user . User user = new com . agiletec . aps . system . services . user . User ( ) ; user . setUse...
org . junit . Assert . assertNull ( this . userManager . getUser ( username ) )
testGetPOWER ( ) { java . lang . String actual = table . getPOWER ( ) ; java . lang . String expected = "power" ; "<AssertPlaceHolder>" ; } getPOWER ( ) { return "power" ; }
org . junit . Assert . assertEquals ( expected , actual )
testSchemaVersionLifeCycleStateMachineConfig ( ) { com . hortonworks . registries . schemaregistry . state . SchemaVersionLifecycleStateMachineInfo stateMachineInfo = com . hortonworks . registries . schemaregistry . avro . AvroSchemaRegistryClientTest . SCHEMA_REGISTRY_CLIENT . getSchemaVersionLifecycleStateMachineInf...
org . junit . Assert . assertEquals ( readStateMachineInfo , stateMachineInfo )
validateMandatoryAndNotEmpty ( ) { mandatorySubject . setValue ( 1234 ) ; "<AssertPlaceHolder>" ; } validate ( ) { if ( ( isMandatory ( ) ) && ( isEmpty ( ) ) ) { throw new java . lang . IllegalStateException ( java . lang . String . format ( "field<sp>%s<sp>is<sp>mandatory<sp>and<sp>empty" , name ( ) ) ) ; } return tr...
org . junit . Assert . assertEquals ( true , mandatorySubject . validate ( ) )
testAuthNotStrict ( ) { final org . apache . cloudstack . ca . provider . RootCACustomTrustManager trustManager = new org . apache . cloudstack . ca . provider . RootCACustomTrustManager ( clientIp , false , true , certMap , caCertificate , crlDao ) ; trustManager . checkClientTrusted ( null , null ) ; "<AssertPlaceHol...
org . junit . Assert . assertNull ( trustManager . getAcceptedIssuers ( ) )
StressTest ( ) { int numBarrierStressThreads = 100 ; int numSteps = 100 ; java . util . concurrent . CountDownLatch complete = new java . util . concurrent . CountDownLatch ( numBarrierStressThreads ) ; java . util . concurrent . CountDownLatch startLatch = new java . util . concurrent . CountDownLatch ( 1 ) ; org . go...
org . junit . Assert . assertTrue ( allBarriersCreated )
autorisatieOngeldigToegangLeveringsautorisatieDatumAanvangInToekomst ( ) { toegangLeveringsAutorisatie . setDatumIngang ( nl . bzk . algemeenbrp . util . common . DatumUtil . morgen ( ) ) ; final boolean isGeldig = service . isAutorisatieGeldig ( toegangLeveringsAutorisatie , dienst ) ; "<AssertPlaceHolder>" ; } isAuto...
org . junit . Assert . assertFalse ( isGeldig )
testRevertForbid2 ( ) { java . util . List < java . lang . String > newForbid = com . alibaba . dubbo . common . utils . UrlUtils . revertForbid ( null , null ) ; "<AssertPlaceHolder>" ; } revertForbid ( java . util . List , java . util . Set ) { if ( ( forbid != null ) && ( ( forbid . size ( ) ) > 0 ) ) { java . util ...
org . junit . Assert . assertNull ( newForbid )
createBoundingRectanglesFromQuadPointsTest01 ( ) { java . util . List < com . itextpdf . kernel . geom . Rectangle > actual ; java . util . List < com . itextpdf . kernel . geom . Rectangle > expected ; boolean areEqual = true ; float [ ] points = new float [ ] { 0 , 0 , 2 , 1 , 1 , 2 , - 2 , 1 , 0 , - 1 , 2 , 0 , 1 , ...
org . junit . Assert . assertTrue ( areEqual )
testStatus ( ) { de . sstoehr . harreader . model . HarResponse response = new de . sstoehr . harreader . model . HarResponse ( ) ; "<AssertPlaceHolder>" ; } getStatus ( ) { if ( ( status ) == null ) { status = HttpStatus . UNKNOWN_HTTP_STATUS ; } return status . getCode ( ) ; }
org . junit . Assert . assertEquals ( 0 , response . getStatus ( ) )
testBoolean3 ( ) { try { super . testBoolean3 ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . AssertionError a ) { System . out . println ( "Test<sp>failed,<sp>this<sp>was<sp>expected" ) ; } } testBoolean3 ( ) { try { super . testBoolean3 ( ) ; org . junit . Assert . assertTrue ( "This<sp>test<sp>should<sp>not<sp...
org . junit . Assert . assertTrue ( "This<sp>test<sp>should<sp>not<sp>pass<sp>on<sp>sql<sp>server" , false )
testExpanded_false ( ) { org . eclipse . reddeer . uiforms . impl . expandablecomposite . DefaultExpandableComposite composite = new org . eclipse . reddeer . uiforms . impl . expandablecomposite . DefaultExpandableComposite ( ) ; composite . setExpanded ( false ) ; "<AssertPlaceHolder>" ; new org . eclipse . reddeer ....
org . junit . Assert . assertFalse ( composite . isExpanded ( ) )
testConvertFoo ( ) { java . lang . Byte result = underTest . convert ( "foo" ) ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { if ( "S" . equalsIgnoreCase ( value ) ) { return Size . TINY ; } else if ( "M" . equalsIgnoreCase ( value ) ) { return Size . NORMAL ; } else if ( "L" . equalsIgnoreCase ( value ...
org . junit . Assert . assertNull ( result )
createAndAdHocRouteNotificationWorkflowDocument_defaultKEW ( ) { org . kuali . rice . ken . bo . NotificationBo notification = services . getNotificationService ( ) . getNotification ( TestConstants . NOTIFICATION_1 ) ; notification . setDocTypeName ( NotificationConstants . KEW_CONSTANTS . NOTIFICATION_DOC_TYPE ) ; or...
org . junit . Assert . assertEquals ( NotificationConstants . KEW_CONSTANTS . NOTIFICATION_DOC_TYPE , document . getDocumentTypeName ( ) )
testConstructor ( ) { java . util . List < org . openscience . cdk . renderer . generators . IGenerator < org . openscience . cdk . interfaces . IAtomContainer > > generators = new java . util . ArrayList < org . openscience . cdk . renderer . generators . IGenerator < org . openscience . cdk . interfaces . IAtomContai...
org . junit . Assert . assertNotNull ( renderer )
checkShowJsonItemNameTest ( ) { "<AssertPlaceHolder>" ; } checkShowJsonItemName ( ) { return false ; }
org . junit . Assert . assertTrue ( response . checkShowJsonItemName ( ) )
test1 ( ) { com . querydsl . core . types . Predicate crit = qDoc . id . eq ( 3L ) ; java . util . List < com . querydsl . collections . Document > expResult = com . querydsl . collections . CollQueryFactory . from ( qDoc , doc1 , doc2 , doc3 ) . where ( crit ) . fetch ( ) ; "<AssertPlaceHolder>" ; } contains ( T ) { r...
org . junit . Assert . assertTrue ( expResult . contains ( doc3 ) )
testOnMessageSuccessful ( ) { com . dremio . exec . dfs . proto . DFS . RenameResponse response = getResponse ( true ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return extractValue ( input . getValue ( ) ) ; }
org . junit . Assert . assertEquals ( true , response . getValue ( ) )
testSplitDeletedRegion ( ) { org . apache . hadoop . hbase . wal . TestWALSplit . REGIONS . clear ( ) ; java . lang . String region = "region_that_splits" ; org . apache . hadoop . hbase . wal . TestWALSplit . REGIONS . add ( region ) ; generateWALs ( 1 ) ; useDifferentDFSClient ( ) ; org . apache . hadoop . fs . Path ...
org . junit . Assert . assertFalse ( fs . exists ( regiondir ) )
testExtractMoreFields ( ) { java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap ( ) ; expected . put ( "eventSource" , "Application" ) ; expected . put ( "eventID" , "1011" ) ; expected . put ( "iut" , "3" ) ; expected . put ( "sequenceId" , "1" ) ; java . util . Map <...
org . junit . Assert . assertEquals ( expected , result )
doesNotHaveNextIfFinishedReversingIterator ( ) { testsupport . Mocking . mockIteratorToHaveValues ( iterator , 1 , 2 , 3 ) ; reversingIterator . next ( ) ; reversingIterator . next ( ) ; reversingIterator . next ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return iterator . hasNext ( ) ; }
org . junit . Assert . assertThat ( reversingIterator . hasNext ( ) , org . hamcrest . core . Is . is ( false ) )
testListSubitem ( ) { java . lang . String content = "\t\t*<sp>subitem" ; java . lang . String expected = "**<sp>subitem" ; java . lang . String actual = _translate ( content ) ; "<AssertPlaceHolder>" ; } _translate ( com . liferay . portal . kernel . exception . PortalException ) { if ( portalException instanceof com ...
org . junit . Assert . assertEquals ( expected , actual )
sharedFieldsAreCopiedWithTheSameReference ( ) { org . libreplan . business . util . deepcopy . EntityExamples . EntityA entityA = new org . libreplan . business . util . deepcopy . EntityExamples . EntityA ( ) ; java . util . Date originalDate = new java . util . Date ( ) ; entityA . setSharedProperty ( originalDate ) ...
org . junit . Assert . assertSame ( originalDate , copy . getSharedProperty ( ) )
ADSfalse ( ) { com . fujitsu . dc . core . model . impl . es . repair . RepairAds repair = com . fujitsu . dc . core . model . impl . es . repair . RepairAds . getInstance ( ) ; com . fujitsu . dc . common . ads . AdsWriteFailureLogWriter writer = com . fujitsu . dc . common . ads . AdsWriteFailureLogWriter . getInstan...
org . junit . Assert . assertFalse ( ( ( java . lang . Boolean ) ( method . invoke ( repair ) ) ) )
filterCollectionByVisibilityForwardsCalls ( ) { org . phenotips . data . permissions . EntityPermissionsManager internal = this . mocker . getInstance ( org . phenotips . data . permissions . EntityPermissionsManager . class ) ; java . util . Collection < ? extends org . phenotips . entities . PrimaryEntity > input = n...
org . junit . Assert . assertSame ( input , result )