input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
runTestVirtualDispatch1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "GeneralJava/VirtualDispatch1.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( this . results ) == null ? 0 : this . results . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
sendIdempotent ( ) { io . fixprotocol . silverflash . fixp . UdpSessionTest . TestReceiver serverReceiver = new io . fixprotocol . silverflash . fixp . UdpSessionTest . TestReceiver ( ) ; io . fixprotocol . silverflash . transport . Transport serverTransport = new io . fixprotocol . silverflash . transport . UdpTranspo...
org . junit . Assert . assertEquals ( bytesSent , serverReceiver . getBytesReceived ( ) )
testNotDuplicatedDisplayedMnemonic ( ) { es . gob . afirma . ui . wizardmultifirmacofirma . PanelCofirmaAccessibilityTest . logger . info ( "testNotDuplicatedDisplayedMnemonic" ) ; try { final es . gob . afirma . ui . wizardmultifirmacofirma . PanelCofirma panelCofirma = new es . gob . afirma . ui . wizardmultifirmacof...
org . junit . Assert . assertTrue ( ( ( keyCodesSet . size ( ) ) == ( keyCodes . size ( ) ) ) )
testDefaultHasNullComponentManagerAndNullLifecycleAndAdaptingInjection ( ) { java . lang . Object actual = new com . picocontainer . PicoBuilder ( ) . build ( ) ; java . lang . Object expected = new com . picocontainer . DefaultPicoContainer ( parent , lifecycle , ai ) ; "<AssertPlaceHolder>" ; } toXml ( java . lang . ...
org . junit . Assert . assertEquals ( toXml ( expected ) , toXml ( actual ) )
testInsertChunkHeaderSuccessfull3 ( ) { ichunk . setGroup ( null ) ; org . goodoldai . jeff . report . pdf . RTFChunkUtility . insertChunkHeader ( ichunk , doc ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] event =...
org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 3 ) )
testPersonEntity ( ) { org . apache . uima . jcas . JCas jCas = uk . gov . dstl . baleen . uima . testing . JCasSingleton . getJCasInstance ( ) ; java . lang . Class < ? extends uk . gov . dstl . baleen . types . semantic . Entity > c = uk . gov . dstl . baleen . uima . utils . TypeUtils . getEntityClass ( "Person" , j...
org . junit . Assert . assertEquals ( uk . gov . dstl . baleen . types . common . Person . class , c )
testAddTwoArguments ( ) { final org . apache . commons . exec . CommandLine userAddCL1 = new org . apache . commons . exec . CommandLine ( "useradd" ) ; userAddCL1 . addArgument ( "-g" ) ; userAddCL1 . addArgument ( "tomcat" ) ; userAddCL1 . addArgument ( "foo" ) ; final org . apache . commons . exec . CommandLine user...
org . junit . Assert . assertEquals ( userAddCL1 . toString ( ) , userAddCL2 . toString ( ) )
countDifferentPossibilitiesOfDependencies ( ) { com . github . mauricioaniche . ck . CKClassResult a = com . github . mauricioaniche . ck . metric . CBOTest . report . get ( "cbo.Coupling1" ) ; "<AssertPlaceHolder>" ; } getCbo ( ) { return cbo ; }
org . junit . Assert . assertEquals ( 6 , a . getCbo ( ) )
testParseInterlanguageLinksDe ( ) { java . util . Map < java . lang . String , java . lang . String > expected = reader . readCsv ( dictionary . InterlanguageLinksParserTest . SAMPLE_OUTPUT_DE ) ; java . util . Map < java . lang . String , java . lang . String > actual = interlanguage . parse ( dictionary . Interlangua...
org . junit . Assert . assertEquals ( expected , actual )
testCreateQueueConnectionGoodProviderString ( ) { try ( org . apache . qpid . jms . test . testpeer . TestAmqpPeer testPeer = new org . apache . qpid . jms . test . testpeer . TestAmqpPeer ( ) ) { testPeer . setSuppressReadExceptionOnClose ( true ) ; testPeer . expectSaslAnonymous ( ) ; org . apache . qpid . jms . JmsC...
org . junit . Assert . assertNotNull ( connection )
testEqualityReduceVariableVsNotPrimitive ( ) { java . util . List < net . sourceforge . pmd . lang . java . typeresolution . typeinference . BoundOrConstraint > result = new net . sourceforge . pmd . lang . java . typeresolution . typeinference . Constraint ( alpha , number , EQUALITY ) . reduce ( ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testEquals_3 ( ) { final boolean result = requestMock . equals ( null ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . apache . shindig . gadgets . uri . ProxyUriBase ) ) { return false ; } org . apache . shindig . gadgets . uri . Pro...
org . junit . Assert . assertFalse ( result )
testCreateOs ( ) { System . out . println ( "createOs" ) ; com . intel . mtwilson . datatypes . OsData osData = getOsData ( ) ; com . intel . mtwilson . wlm . business . OsBO instance = new com . intel . mtwilson . wlm . business . OsBO ( ) ; boolean found = false ; java . util . List < com . intel . mtwilson . datatyp...
org . junit . Assert . assertEquals ( expResult , result )
testUnmarshallingNullDate ( ) { java . lang . String stringifiedTestObject = "<test><date></date></test>" ; com . fiveamsolutions . plc . util . JAXBDateAdapterTest . ATestClass testObject = unmarshall ( stringifiedTestObject ) ; "<AssertPlaceHolder>" ; } getDate ( ) { return date ; }
org . junit . Assert . assertNull ( testObject . getDate ( ) )
first_builder_returns_result_is_the_return_value ( ) { java . lang . Object request = new java . lang . Object ( ) ; java . lang . Object builderAResult = new java . lang . Object ( ) ; when ( mockBuilderA . create ( request , mockContext ) ) . thenReturn ( builderAResult ) ; java . lang . Object result = compositeBuil...
org . junit . Assert . assertSame ( builderAResult , result )
testConverteerBijhoudingOpgeschortBuitenland ( ) { final nl . bzk . migratiebrp . conversie . model . lo3 . Lo3Stapel < nl . bzk . migratiebrp . conversie . model . lo3 . categorie . Lo3InschrijvingInhoud > lo3InschrijvingStapel = buildInschrijving ( Lo3RedenOpschortingBijhoudingCodeEnum . OVERLIJDEN , new nl . bzk . m...
org . junit . Assert . assertEquals ( 2 , migratieBijhoudingStapel . size ( ) )
testHashCode003 ( ) { javax . naming . ldap . Rdn rdn1 = new javax . naming . ldap . Rdn ( "CN=commonName" ) ; javax . naming . ldap . Rdn rdn2 = new javax . naming . ldap . Rdn ( "t=test" ) ; java . util . LinkedList < javax . naming . ldap . Rdn > test = new java . util . LinkedList < javax . naming . ldap . Rdn > ( ...
org . junit . Assert . assertEquals ( ( ( rdn1 . hashCode ( ) ) + ( rdn2 . hashCode ( ) ) ) , ln . hashCode ( ) )
shouldNotAddNameToMergedNamedViewsListIfNameIsTheSameAsTheNamedViewName ( ) { final java . lang . String namedViewName = "namedViewName" ; final uk . gov . gchq . gaffer . data . elementdefinition . view . NamedView namedViewToMerge = new uk . gov . gchq . gaffer . data . elementdefinition . view . NamedView . Builder ...
org . junit . Assert . assertFalse ( namedViewMerged . getMergedNamedViewNames ( ) . contains ( namedViewName ) )
testConnectionIsClosedOnOutOfDateError ( ) { final org . tmatesoft . svn . test . TestOptions options = org . tmatesoft . svn . test . TestOptions . getInstance ( ) ; final org . tmatesoft . svn . test . Sandbox sandbox = org . tmatesoft . svn . test . Sandbox . createWithCleanup ( ( ( getTestName ( ) ) + ".testConnect...
org . junit . Assert . assertEquals ( 1 , svnRepository . getLatestRevision ( ) )
oneBitOneExchangeTwoEntryRunLogical ( ) { org . apache . drill . exec . server . RemoteServiceSet serviceSet = org . apache . drill . exec . server . RemoteServiceSet . getLocalServiceSet ( ) ; try ( org . apache . drill . exec . server . Drillbit bit1 = new org . apache . drill . exec . server . Drillbit ( CONFIG , se...
org . junit . Assert . assertEquals ( 100 , count )
test_set_values_item ( ) { java . lang . String str = "SELECT<sp>*<sp>WHERE<sp>{<sp>VALUES<sp>?o<sp>{?objs}<sp>?s<sp>?p<sp>?o<sp>}" ; org . apache . jena . query . ParameterizedSparqlString pss = new org . apache . jena . query . ParameterizedSparqlString ( str ) ; pss . setValues ( "objs" , org . apache . jena . query...
org . junit . Assert . assertEquals ( exp , res )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . social . kernel . model . SocialActivityAchievement . class , _dynamicQueryClassLoader ) ; dynamicQuery ....
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
sampleIncludedUpdates ( ) { org . neo4j . internal . kernel . api . schema . LabelSchemaDescriptor schemaDescriptor = org . neo4j . kernel . api . schema . SchemaDescriptorFactory . forLabel ( 1 , 1 ) ; populator = newPopulator ( ) ; java . util . List < org . neo4j . kernel . api . index . IndexEntryUpdate < ? > > upd...
org . junit . Assert . assertEquals ( new org . neo4j . storageengine . api . schema . IndexSample ( 4 , 4 , 4 ) , sample )
whenAddSixElementsThenSizeThree ( ) { final int expectedSize = 5 ; for ( int index = 0 ; index < expectedSize ; index ++ ) { arraySet . add ( index ) ; } arraySet . add ( 2 ) ; for ( int index = expectedSize - 1 ; index > 0 ; index -- ) { arraySet . add ( index ) ; } arraySet . add ( 1 ) ; "<AssertPlaceHolder>" ; } siz...
org . junit . Assert . assertThat ( arraySet . size ( ) , org . hamcrest . core . Is . is ( expectedSize ) )
testRemoveValidatorLongitudeNonExist ( ) { "<AssertPlaceHolder>" ; } removeValidator ( com . tech . configurations . tools . ValidationScopes , int ) { if ( i == 0 ) { return false ; } switch ( scope ) { case ROOM_NAME : if ( ( com . tech . models . dtos . MessageDTO . CHATROOM_NAME_VALIDATORS . size ( ) ) >= ( i + 1 )...
org . junit . Assert . assertFalse ( com . tech . models . dtos . MessageDTO . removeValidator ( ValidationScopes . LONGITUDE , 10 ) )
shouldDefaultIntegerFieldsToZeroWhenValueIsNotInteger ( ) { org . ei . drishti . domain . Mother mother = new org . ei . drishti . domain . Mother ( "phc" 6 , "150" 4 , "thayi<sp>card<sp>number<sp>1" ) . withLMP ( org . joda . time . LocalDate . parse ( "150" 0 ) ) . withDetails ( create ( "wifeName" 6 , "phc" 7 ) . pu...
org . junit . Assert . assertEquals ( expectedRegister , register )
testOneChangeWithError ( ) { java . io . File [ ] files = initFiles ( 1 , monitoredDirectory , "file00" ) ; observer . checkAndNotify ( ) ; init ( ) ; int toFail = 2 ; timesToFail . set ( toFail ) ; java . util . stream . Stream . of ( files ) . forEach ( this :: changeData ) ; for ( int i = 0 ; i < 4 ; i ++ ) { observ...
org . junit . Assert . assertThat ( failures , org . hamcrest . Matchers . is ( toFail ) )
testCreate ( ) { org . oscarehr . common . model . DemographicPharmacy entity = new org . oscarehr . common . model . DemographicPharmacy ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( entity ) ; dao . persist ( entity ) ; "<AssertPlaceHolder>" ; } getId ( ) { return...
org . junit . Assert . assertNotNull ( entity . getId ( ) )
testIntegerDefinition ( ) { org . eclipse . tracecompass . ctf . core . event . types . IntegerDeclaration declaration = org . eclipse . tracecompass . ctf . core . event . types . IntegerDeclaration . createDeclaration ( 1 , false , 1 , ByteOrder . BIG_ENDIAN , Encoding . ASCII , "" , 8 ) ; org . eclipse . tracecompas...
org . junit . Assert . assertNotNull ( result )
testConvertSiple ( ) { final java . lang . String inputFile = "/input-simple.xml" ; final java . lang . String outputFile = "/output-simple.csv" ; final java . io . Writer writer = new java . io . StringWriter ( ) ; com . fordfrog . xml2csv . Convertor . convert ( this . getClass ( ) . getResourceAsStream ( inputFile )...
org . junit . Assert . assertEquals ( expected , writer . toString ( ) )
testShouldNotHandleAlertInAnotherWindow ( ) { java . lang . String mainWindow = driver . getWindowHandle ( ) ; java . util . Set < java . lang . String > currentWindowHandles = driver . getWindowHandles ( ) ; java . lang . String onloadWindow = null ; try { driver . findElement ( org . openqa . selenium . By . id ( "op...
org . junit . Assert . assertTrue ( gotException )
getAdellijkeTitelPredikaatNOkTest ( ) { final java . lang . String code = "X" ; final java . lang . String expected = code ; final java . lang . String resultNat = lo3StamtabelService . getAdellijkeTitelPredikaat ( code ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expected , resultNat )
test_failonwarn_true_warn ( ) { try { org . switchyard . transform . Transformer transformer = getTransformer ( "xslt-config-failonwarn-true-warn.xml" ) ; org . junit . Assert . fail ( "No<sp>SwitchYardException<sp>has<sp>been<sp>thrown" ) ; } catch ( org . switchyard . SwitchYardException e ) { boolean exceptionMatch ...
org . junit . Assert . assertTrue ( exceptionMatch )
testGetRDotJavaPackageWhenPackageIsSpecified ( ) { com . facebook . buck . io . filesystem . ProjectFilesystem projectFilesystem = com . facebook . buck . io . filesystem . impl . FakeProjectFilesystem . createRealTempFilesystem ( ) ; com . facebook . buck . core . model . BuildTarget buildTarget = com . facebook . buc...
org . junit . Assert . assertEquals ( "com.example.android" , androidResource . getRDotJavaPackage ( ) )
canAddSpecs ( ) { org . gradle . api . specs . AndSpec < java . lang . Object > spec = new org . gradle . api . specs . AndSpec < java . lang . Object > ( createAtomicElements ( true ) ) ; spec = spec . and ( createAtomicElements ( false ) ) ; "<AssertPlaceHolder>" ; } isSatisfiedBy ( T ) { org . gradle . api . specs ....
org . junit . Assert . assertFalse ( spec . isSatisfiedBy ( new java . lang . Object ( ) ) )
testIdResultNameCanBeCustomized ( ) { com . graphaware . es . gas . filter . SearchResultCypherFilter filter = getFilter ( ) ; java . util . Map < java . lang . String , java . lang . Object > map = getDefaultMap ( ) ; java . util . Map < java . lang . String , java . lang . String > gasFilter = ( ( java . util . Map <...
org . junit . Assert . assertEquals ( "uuid" , filter . getIdResultName ( ) )
testGetPolicyGroups_noEntityManager_assertException ( ) { final org . nhindirect . config . store . dao . impl . CertPolicyDaoImpl dao = new org . nhindirect . config . store . dao . impl . CertPolicyDaoImpl ( ) ; boolean exceptionOccured = false ; try { dao . getPolicyGroupDomainReltns ( ) ; } catch ( java . lang . Il...
org . junit . Assert . assertTrue ( exceptionOccured )
testGetContext ( ) { "<AssertPlaceHolder>" ; } getContext ( ) { return context ; }
org . junit . Assert . assertSame ( root , root . getContext ( ) )
shouldHandleOperationByDelegatingToAnExistingExporter ( ) { final uk . gov . gchq . gaffer . operation . impl . export . resultcache . GetGafferResultCacheExport export = new uk . gov . gchq . gaffer . operation . impl . export . resultcache . GetGafferResultCacheExport . Builder ( ) . key ( "key" ) . build ( ) ; final...
org . junit . Assert . assertSame ( results , handlerResult )
testFingerprint ( ) { org . openscience . cdk . smiles . SmilesParser parser = new org . openscience . cdk . smiles . SmilesParser ( org . openscience . cdk . silent . SilentChemObjectBuilder . getInstance ( ) ) ; org . openscience . cdk . fingerprint . IFingerprinter printer = new org . openscience . cdk . fingerprint...
org . junit . Assert . assertEquals ( bs1 , bs2 )
testRequestURIConverter ( ) { ch . qos . logback . access . pattern . RequestURIConverter converter = new ch . qos . logback . access . pattern . RequestURIConverter ( ) ; converter . start ( ) ; java . lang . String result = converter . convert ( event ) ; "<AssertPlaceHolder>" ; } getRequestURI ( ) { if ( ( requestUR...
org . junit . Assert . assertEquals ( request . getRequestURI ( ) , result )
empty ( ) { relationResolver = new org . drools . verifier . core . relations . RelationResolver ( new org . drools . verifier . core . maps . InspectorList ( configuration ) ) ; "<AssertPlaceHolder>" ; } isConflicting ( org . drools . verifier . core . maps . InspectorList ) { return resolveConflict ( otherCollection ...
org . junit . Assert . assertFalse ( relationResolver . isConflicting ( new org . drools . verifier . core . maps . InspectorList ( configuration ) ) )
testGetStashRoot ( ) { java . net . URI expectedStashURI = java . net . URI . create ( "s3://emodb-us-east-1/stash/ci" ) ; when ( _server . getStashRoot ( ) ) . thenReturn ( expectedStashURI ) ; java . net . URI actualStashURI = sorClient ( test . integration . sor . DataStoreJerseyTest . APIKEY_STANDARD ) . getStashRo...
org . junit . Assert . assertEquals ( actualStashURI , expectedStashURI )
convert_when_objectMessage_has_jmsTimestamp ( ) { long jmsTimestamp = 3600L ; javax . jms . ObjectMessage message = new org . apache . activemq . command . ActiveMQObjectMessage ( ) ; message . setJMSTimestamp ( jmsTimestamp ) ; javax . jms . ObjectMessage result = uut . convert ( message ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( jmsTimestamp , result . getJMSTimestamp ( ) )
pageZeroStartShouldBeZero ( ) { net . jforum . entities . util . Pagination p = this . newPagination ( 30 , 100 , 0 ) ; "<AssertPlaceHolder>" ; } getStart ( ) { return this . start ; }
org . junit . Assert . assertEquals ( 0 , p . getStart ( ) )
testSelectAllForSingle ( ) { tree = new org . eclipse . swt . widgets . Tree ( shell , org . eclipse . swt . SWT . SINGLE ) ; org . eclipse . swt . widgets . TreeItem item1 = new org . eclipse . swt . widgets . TreeItem ( tree , org . eclipse . swt . SWT . NONE ) ; new org . eclipse . swt . widgets . TreeItem ( item1 ,...
org . junit . Assert . assertSame ( item2 , tree . getSelection ( ) [ 0 ] )
validateWithMultiByteCharactersNoDelimiter ( ) { java . lang . String data = "THIS<sp>IS<sp>MY<sp>NEW<sp>TEXT.IT<sp>HAS<sp>A<sp>NEWLINE." ; java . io . InputStream contentStream = new java . io . ByteArrayInputStream ( data . getBytes ( StandardCharsets . UTF_8 ) ) ; java . lang . String topicName = "validateWithMultiB...
org . junit . Assert . assertEquals ( data , r )
test19_BigInteger_FastDivisionPerformance ( ) { cc . redberry . rings . bigint . BigInteger modulus = new cc . redberry . rings . bigint . BigInteger ( "1247842098624308285367648396697" ) ; org . apache . commons . math3 . random . RandomGenerator rnd = getRandom ( ) ; cc . redberry . rings . poly . univar . Univariate...
org . junit . Assert . assertArrayEquals ( qdPlain , qdNewton )
testExplainLiterals ( ) { org . batfish . datamodel . acl . MatchHeaderSpace matchHeaderSpace = org . batfish . datamodel . acl . AclLineMatchExprs . matchDstIp ( "1.2.3.4" ) ; org . batfish . datamodel . acl . AclLineMatchExpr notMatchHeaderSpace = org . batfish . datamodel . acl . AclLineMatchExprs . not ( matchHeade...
org . junit . Assert . assertThat ( expr , org . hamcrest . Matchers . equalTo ( org . batfish . datamodel . acl . AclLineMatchExprs . and ( matchHeaderSpace , matchSrcInterface , notMatchHeaderSpace ) ) )
noNorthSouthNode ( ) { getCrossFormedGraph ( ) ; int crossingCount = initCounterForLayerWithIndexAndCountInLayer ( 0 ) ; "<AssertPlaceHolder>" ; } initCounterForLayerWithIndexAndCountInLayer ( int ) { setUpIds ( ) ; int numPorts = 0 ; for ( org . eclipse . elk . alg . layered . graph . Layer l : getGraph ( ) ) { for ( ...
org . junit . Assert . assertThat ( crossingCount , org . hamcrest . CoreMatchers . is ( 0 ) )
test$CountAnd$Filter ( ) { java . lang . String expected = "SELECT<sp>COUNT(*)<sp>FROM<sp>PM1.G1<sp>AS<sp>g0<sp>WHERE<sp>g0.e3<sp><<sp>10" ; org . teiid . olingo . TestODataSQLBuilder . QueryState state = helpTest ( ( "/odata4/vdb/PM1/G1/$count?$filter=" + ( org . apache . olingo . commons . core . Encoder . encode ( "...
org . junit . Assert . assertEquals ( expected , state . arg1 . getValue ( ) . toString ( ) )
testVerwerkBerichtSuccesvolleStappen ( ) { final nl . bzk . brp . model . bericht . kern . ActieBericht actie = new nl . bzk . brp . model . bericht . kern . ActieRegistratieAdresBericht ( ) ; actie . setRootObject ( new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ) ; final nl . bzk . brp . model . ber...
org . junit . Assert . assertTrue ( resultaat . getMeldingen ( ) . isEmpty ( ) )
testGetNaam ( ) { final nl . moderniseringgba . migratie . conversie . model . brp . attribuut . BrpPartijCode brpPartijCode = new nl . moderniseringgba . migratie . conversie . model . brp . attribuut . BrpPartijCode ( nl . moderniseringgba . migratie . conversie . model . brp . attribuut . BrpPartijCodeTest . PARTIJ_...
org . junit . Assert . assertEquals ( nl . moderniseringgba . migratie . conversie . model . brp . attribuut . BrpPartijCodeTest . PARTIJ_NAAM , brpPartijCode . getNaam ( ) )
testContentTypeEvaluationNullMetadata ( ) { java . lang . String methodName = "testContentTypeEvaluationNullMetadata" ; ddf . catalog . pubsub . PredicateTest . LOGGER . debug ( ( ( "***************<sp>START:<sp>" + methodName ) + "<sp>*****************" ) ) ; ddf . catalog . pubsub . predicate . ContentTypePredicate c...
org . junit . Assert . assertTrue ( ctp . matches ( testEvent ) )
hashSetDoesNotAllowDupes ( ) { com . javafortesters . chap010collections . examples . Collection workdays = new com . javafortesters . chap010collections . examples . HashSet ( ) ; workdays . add ( "Monday" ) ; workdays . add ( "Monday" ) ; workdays . add ( "Monday" ) ; workdays . add ( "Monday" ) ; workdays . add ( "M...
org . junit . Assert . assertEquals ( 1 , workdays . size ( ) )
resolvesTransformersWithDifferentLength ( ) { org . mule . runtime . core . api . transformer . Converter xmlToInputStream = new org . mule . runtime . core . internal . transformer . builder . MockConverterBuilder ( ) . named ( "xmlToInputStream" ) . from ( org . mule . runtime . core . internal . transformer . graph ...
org . junit . Assert . assertEquals ( xmlToJson , transformer )
testExclusiveDatabasedGatewayNameEmpty ( ) { org . kie . workbench . common . stunner . bpmn . definition . ExclusiveGateway exclusiveGateway = new org . kie . workbench . common . stunner . bpmn . definition . ExclusiveGateway ( ) ; exclusiveGateway . getGeneral ( ) . setName ( new org . kie . workbench . common . stu...
org . junit . Assert . assertTrue ( violations . isEmpty ( ) )
taskShouldBeExecutedIfRequiredHostgroupsAreResolved ( ) { expect ( clusterConfigurationRequest . getRequiredHostGroups ( ) ) . andReturn ( java . util . Collections . emptyList ( ) ) ; expect ( clusterTopology . getHostGroupInfo ( ) ) . andReturn ( java . util . Collections . emptyMap ( ) ) ; expect ( clusterTopology ....
org . junit . Assert . assertTrue ( result )
test_getUserComponentFolder_setCustom ( ) { org . talend . updates . runtime . engine . component . LocalComponentsInstallComponent installComp = new org . talend . updates . runtime . engine . component . LocalComponentsInstallComponentTest . LocalComponentsInstallComponentTestClass ( ) ; installComp . setComponentFol...
org . junit . Assert . assertEquals ( tmpFolder , installingComponentFolder )
shouldAcceptSelfSignedSignature ( ) { net . ripe . rpki . commons . validation . objectvalidators . X509ResourceCertificateParentChildValidator validator = new net . ripe . rpki . commons . validation . objectvalidators . X509ResourceCertificateParentChildValidator ( options , result , root , rootCrl , root . getResour...
org . junit . Assert . assertFalse ( result . hasFailures ( ) )
UmlLinkType_NotFromLocalVariableDeclaration ( ) { java . lang . String fromClass = "domain.direct.violating.DeclarationVariableLocal" ; java . lang . String toClass = "technology.direct.dao.ProfileDAO" ; "<AssertPlaceHolder>" ; } isUmlLinkNotDetected ( java . lang . String , java . lang . String ) { boolean umlLinkDete...
org . junit . Assert . assertTrue ( isUmlLinkNotDetected ( fromClass , toClass ) )
validUri ( ) { org . eftp . ftpserver . business . hooks . entity . Hook cut = new org . eftp . ftpserver . business . hooks . entity . Hook ( "http://localhost" , org . eftp . events . FtpEventName . EVERYTHING ) ; "<AssertPlaceHolder>" ; } isValid ( ) { try { new java . net . URL ( this . uri ) ; } catch ( java . net...
org . junit . Assert . assertTrue ( cut . isValid ( ) )
whenReadingInstance_itShouldReadCorrectNuOfType1Vehicles ( ) { com . graphhopper . jsprit . core . problem . VehicleRoutingProblem . Builder vrpBuilder = VehicleRoutingProblem . Builder . newInstance ( ) ; new com . graphhopper . jsprit . instance . reader . VrphGoldenReader ( vrpBuilder , com . graphhopper . jsprit . ...
org . junit . Assert . assertEquals ( 4 , nuOfType1Vehicles )
testPDDeferredRespSetInboundPassthruMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha...
org . junit . Assert . assertEquals ( true , passthru )
testPing_Pipelines_Available ( ) { java . lang . String url = ( WebRESTUtils . REST_URL ) + "pipelines.json" ; startTest ( "testPing_Pipelines_Available" , url ) ; org . mitre . mpf . wfm . ITWebREST . JSONstring = org . mitre . mpf . wfm . WebRESTUtils . getJSON ( new java . net . URL ( url ) , WebRESTUtils . MPF_AUTH...
org . junit . Assert . assertTrue ( ( ( array . length ( ) ) >= 0 ) )
testGetAnnotationsWithMinLength ( ) { when ( config . getMinLength ( ) ) . thenReturn ( Integer . MAX_VALUE ) ; java . util . List < io . scigraph . annotation . EntityAnnotation > annotations = processor . getAnnotations ( io . scigraph . annotation . EntityProcessorImplTest . text , config ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertThat ( annotations , org . hamcrest . CoreMatchers . is ( org . hamcrest . Matchers . empty ( ) ) )
testGrantViewDataRecordPermissionToGuestUser ( ) { com . liferay . data . engine . model . DEDataRecord expectedDEDataRecord = com . liferay . data . engine . service . test . DEDataEngineTestUtil . insertDEDataRecord ( _adminUser , _group , _deDataDefinitionService , _deDataRecordCollectionService ) ; com . liferay . ...
org . junit . Assert . assertEquals ( expectedDEDataRecord , deDataRecord )
startBillingRun_WrongRole ( ) { container . login ( 1 , "WRONG_ROLE" ) ; try { operatorService . startBillingRun ( ) ; org . junit . Assert . fail ( ) ; } catch ( javax . ejb . EJBException ex ) { "<AssertPlaceHolder>" ; } } isAccessDenied ( ) { return new org . hamcrest . BaseMatcher < javax . ejb . EJBException > ( )...
org . junit . Assert . assertThat ( ex , isAccessDenied ( ) )
testFieldDoesNotExist ( ) { com . google . gson . JsonParser parser = new com . google . gson . JsonParser ( ) ; com . google . gson . JsonElement input = parser . parse ( getResourceString ( "filter_input.json" ) ) ; com . nextdoor . bender . deserializer . json . GenericJsonEvent devent = new com . nextdoor . bender ...
org . junit . Assert . assertFalse ( filter )
testLogSoftmaxVector ( ) { org . nd4j . linalg . api . ndarray . INDArray temp = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1.0 , 2.0 , 3.0 , 4.0 } ) ; org . nd4j . linalg . api . ndarray . INDArray logsoftmax = org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . exec ( new org . nd4j . li...
org . junit . Assert . assertEquals ( assertion , logsoftmax )
setStatus_chargePointStatus_statusIsSet ( ) { eu . chargetime . ocpp . model . core . ChargePointStatus chargePointStatus = eu . chargetime . ocpp . model . core . ChargePointStatus . Available ; request . setStatus ( chargePointStatus ) ; "<AssertPlaceHolder>" ; } getStatus ( ) { return status ; }
org . junit . Assert . assertThat ( request . getStatus ( ) , org . hamcrest . CoreMatchers . equalTo ( chargePointStatus ) )
generateOccurrencesFromAGivenDateWithNoEvents ( ) { java . util . List < com . stratelia . webactiv . almanach . model . EventDetail > events = new java . util . ArrayList < com . stratelia . webactiv . almanach . model . EventDetail > ( ) ; java . util . List < com . stratelia . webactiv . almanach . model . EventOccu...
org . junit . Assert . assertThat ( occurrences . isEmpty ( ) , is ( true ) )
removeParams ( ) { org . oscm . app . domain . ServiceInstance si = new org . oscm . app . domain . ServiceInstance ( ) ; java . util . ArrayList < org . oscm . app . domain . InstanceParameter > currentIpList = new java . util . ArrayList ( ) ; org . oscm . app . domain . InstanceParameter ip1 = new org . oscm . app ....
org . junit . Assert . assertEquals ( 1 , si . getInstanceParameters ( ) . size ( ) )
testFindByLanguageTag ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { int nChecks = 50000 ; long start = java . lang . System . currentTimeMillis ( ) ; for ( int i = 0 ; i < nChecks ; i ++ ) { com . gentics . mesh . core . data . root . LanguageRoot root = meshRoot ( ) . getLanguageRoot ( ) ; com . gentics...
org . junit . Assert . assertNotNull ( language )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . dynamic . data . mapping . model . DDMStorageLink > ddmStorageLinks = _persistence . fetc...
org . junit . Assert . assertTrue ( ddmStorageLinks . isEmpty ( ) )
testRemove2Arg_Present_Equal ( ) { map . put ( 123 , "abc" ) ; boolean v = map . remove ( 123 , "abc" ) ; "<AssertPlaceHolder>" ; } remove ( K , V ) { return cache . remove ( passingKeyTransformer . compact ( key ) , valueTransformer . compact ( oldValue ) ) ; }
org . junit . Assert . assertTrue ( v )
testRouteCandidates ( ) { net . java . cargotracker . application . BookingServiceTest . candidates = bookingService . requestPossibleRoutesForCargo ( net . java . cargotracker . application . BookingServiceTest . trackingId ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { if ( ( type ) != null ) { return false ; } if ( ( l...
org . junit . Assert . assertFalse ( net . java . cargotracker . application . BookingServiceTest . candidates . isEmpty ( ) )
positive ( ) { org . pdfsam . ui . selection . multiple . move . MoveSelectedEvent victim = new org . pdfsam . ui . selection . multiple . move . MoveSelectedEvent ( MoveType . DOWN ) ; "<AssertPlaceHolder>" ; } getType ( ) { return type ; }
org . junit . Assert . assertEquals ( MoveType . DOWN , victim . getType ( ) )
testSslContextFactory ( ) { final org . opendaylight . protocol . pcep . impl . tls . SslContextFactory sslContextFactory = new org . opendaylight . protocol . pcep . impl . tls . SslContextFactory ( org . opendaylight . protocol . pcep . impl . SslContextFactoryTest . createTlsConfig ( ) ) ; final javax . net . ssl . ...
org . junit . Assert . assertNotNull ( sslContext )
unexistentPreferenceDoesNotExistsInAScopeTest ( ) { final org . uberfire . preferences . shared . PreferenceScope scope = userEntireApplicationScope ; final java . lang . String key = "my.preference.key" ; final boolean preferenceExists = preferenceStorageServiceBackendImpl . exists ( scope , key ) ; "<AssertPlaceHolde...
org . junit . Assert . assertFalse ( preferenceExists )
unsatisfiedAllocationsAreIgnored ( ) { java . util . List < org . libreplan . business . planner . entities . ResourceAllocation < ? > > allocationsList = java . util . Collections . singletonList ( givenUnsatisfiedResourceAllocation ( ) ) ; org . libreplan . business . planner . entities . AggregateOfResourceAllocatio...
org . junit . Assert . assertTrue ( aggregate . isEmpty ( ) )
verifyValidateClusterStartupDoNotSuggestsUpdateToDynamicClusterIfReplicasLowerThanClusterSize ( ) { oracle . kubernetes . operator . wlsconfig . WlsDynamicServersConfig wlsDynamicServersConfig = oracle . kubernetes . operator . wlsconfig . WlsClusterConfigTest . createDynamicServersConfig ( 2 , 2 , "ms-" , "cluster1" )...
org . junit . Assert . assertEquals ( 0 , suggestedConfigUpdates . size ( ) )
testBuildDBNameOldEncoding ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIPostgreSQLSink.buildDBName]" ) ) + "--------<sp>The<sp>schema<sp>name<sp>is<sp>equals<sp>to<sp>the<sp>encoding<sp>of<sp>the<sp>notified/defaulted<sp>service" ) ) ; java . lang . String attrPersistence = null ; java . lang . String ba...
org . junit . Assert . assertEquals ( expectedDBName , builtSchemaName )
testGetTlvLength ( ) { tlvHeader . setTlvLength ( 2 ) ; "<AssertPlaceHolder>" ; } tlvLength ( ) { return tlvLength ; }
org . junit . Assert . assertThat ( tlvHeader . tlvLength ( ) , org . hamcrest . Matchers . is ( 2 ) )
testShutdown_Lock ( ) { final org . talend . commons . utils . threading . lockerbykey . ILockerByKey locker = createLockerInstance ( ) ; java . util . concurrent . ExecutorService poolRunnable1 = java . util . concurrent . Executors . newCachedThreadPool ( ) ; java . util . concurrent . ExecutorService poolRunnable2 =...
org . junit . Assert . assertThat ( result1 , org . hamcrest . CoreMatchers . is ( expectedResult ) )
Query13Test ( ) { org . verdictdb . core . sqlobject . BaseTable customer = new org . verdictdb . core . sqlobject . BaseTable ( "tpch" , "o" 1 , "o" 4 ) ; org . verdictdb . core . sqlobject . BaseTable orders = new org . verdictdb . core . sqlobject . BaseTable ( "tpch" , "count" 0 , "o" ) ; org . verdictdb . core . s...
org . junit . Assert . assertEquals ( expected , relation )
testNotBlankReturnValues2 ( ) { final java . lang . String str = "Hi" ; final java . lang . String test = org . apache . commons . lang3 . Validate . notBlank ( str , "Message" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertSame ( str , test )
testConnector ( ) { java . lang . String protocol = "SSL" ; int port = 21 ; java . lang . String domain = "localhost" ; java . lang . String username = "P" 2 ; java . lang . String password = "******" ; org . apache . commons . net . ftp . FTPSClient ftps = new org . apache . commons . net . ftp . FTPSClient ( protocol...
org . junit . Assert . assertEquals ( sent , true )
override_marshaller ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . setProductId ( "prod<sp>id" ) ; java . io . StringWriter sw = new java . io . StringWriter ( ) ; biweekly . io . text . ICalWriter writer = new biweekly . io . text . ICalWriter ( sw , biweekly . ICalVersion . V2_0 ) ; writer . ...
org . junit . Assert . assertEquals ( expected , actual )
getConnectionIdReturnsSavedConnectionId ( ) { java . lang . String expectedConnectionId = "1234" ; baseExpectations ( ) ; tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsIotHubConnection connection = new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amq...
org . junit . Assert . assertEquals ( expectedConnectionId , actualConnectionId )
testProgressIsReportedIfInputASeriesOfEmptyFiles ( ) { org . apache . hadoop . mapred . JobConf conf = new org . apache . hadoop . mapred . JobConf ( ) ; org . apache . hadoop . fs . Path [ ] paths = new org . apache . hadoop . fs . Path [ 3 ] ; java . io . File [ ] files = new java . io . File [ 3 ] ; long [ ] fileLen...
org . junit . Assert . assertFalse ( cfrr . nextKeyValue ( ) )
testGetTimeValue ( ) { org . wikidata . wdtk . datamodel . implementation . TimeValue o1 = new org . wikidata . wdtk . datamodel . implementation . TimeValueImpl ( 2007 , ( ( byte ) ( 5 ) ) , ( ( byte ) ( 12 ) ) , ( ( byte ) ( 10 ) ) , ( ( byte ) ( 45 ) ) , ( ( byte ) ( 0 ) ) , TimeValue . PREC_DAY , 0 , 1 , 60 , TimeV...
org . junit . Assert . assertEquals ( o1 , o2 )
testJackson2JsonSerializer ( ) { org . springframework . data . redis . Person person = new org . springframework . data . redis . PersonObjectFactory ( ) . instance ( ) ; "<AssertPlaceHolder>" ; } deserialize ( java . io . InputStream ) { java . io . ObjectInputStream ois = null ; try { ois = new java . io . ObjectInp...
org . junit . Assert . assertEquals ( person , serializer . deserialize ( serializer . serialize ( person ) ) )
testFindByEmail ( ) { final com . bahadirakin . model . User user = userRepository . findByEmail ( "bhdrkn@gmail.com" ) ; "<AssertPlaceHolder>" ; } findByEmail ( java . lang . String ) { final java . util . List < com . bahadirakin . dynamodb . model . User > users = dynamoDBMapper . scan ( com . bahadirakin . dynamodb...
org . junit . Assert . assertNotNull ( user )
testIsNederlandCode ( ) { final nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3LandCode landCode = new nl . moderniseringgba . migratie . conversie . model . lo3 . element . Lo3LandCode ( "6030" ) ; "<AssertPlaceHolder>" ; } isNederlandCode ( ) { return nl . moderniseringgba . migratie . conv...
org . junit . Assert . assertTrue ( landCode . isNederlandCode ( ) )
testJsonSerialization ( ) { org . batfish . datamodel . OspfInterAreaRoute r = org . batfish . datamodel . OspfInterAreaRoute . builder ( ) . setArea ( 0 ) . setNetwork ( Prefix . ZERO ) . build ( ) ; "<AssertPlaceHolder>" ; } clone ( java . lang . Object , java . lang . Class ) { return org . batfish . common . util ....
org . junit . Assert . assertThat ( org . batfish . common . util . BatfishObjectMapper . clone ( r , org . batfish . datamodel . OspfInterAreaRoute . class ) , org . hamcrest . Matchers . equalTo ( r ) )
testWhere ( ) { java . lang . String s = "SELECT<sp>SalesOrderID,<sp>test,<sp>*<sp>from<sp>dbo.test<sp>where<sp>id<sp>><sp>1<sp>and<sp>id2<sp><<sp>9" ; int result = calculate ( s ) ; "<AssertPlaceHolder>" ; } calculate ( java . lang . String ) { org . sonar . plugins . tsql . antlr . AntlrContext result = org . sonar ....
org . junit . Assert . assertEquals ( 6 , result )
testRemoveSimpleEqualFilterFromSimpleFilter ( ) { final org . apache . logging . log4j . core . Filter filterOriginal = new org . apache . logging . log4j . core . filter . AbstractFilterableTest . EqualFilter ( "test" ) ; final org . apache . logging . log4j . core . Filter filterCopy = new org . apache . logging . lo...
org . junit . Assert . assertNull ( filterable . getFilter ( ) )
evaluateSupportVectorMachineOzone ( ) { org . jpmml . rattle . Batch batch = new org . jpmml . rattle . RattleBatch ( "SupportVectorMachine" , "Ozone" ) ; "<AssertPlaceHolder>" ; } evaluate ( org . jpmml . evaluator . Batch ) { org . jpmml . evaluator . PMML pmml = org . jpmml . evaluator . IOUtil . unmarshal ( batch ....
org . junit . Assert . assertTrue ( org . jpmml . rattle . BatchUtil . evaluate ( batch ) )
testBenchmarkWithProto ( ) { int rc = org . apache . hadoop . util . ToolRunner . run ( new org . apache . hadoop . ipc . RPCCallBenchmark ( ) , new java . lang . String [ ] { "--clientThreads" , "30" , "--serverThreads" , "30" , "protobuf" 0 , "5" , "--serverReaderThreads" , "4" , "--messageSize" , "1024" , "--engine"...
org . junit . Assert . assertEquals ( 0 , rc )